This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/shimmie_api/info.php

34 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/*
* Name: [Beta] Shimmie JSON API
* Author: Shish <webmaster@shishnet.org>
* Description: A JSON interface to shimmie data [WARNING]
* Documentation:
*
*/
class ShimmieApiInfo extends ExtensionInfo
{
public const KEY = "shimmie_api";
public $key = self::KEY;
public $name = "Shimmie JSON API";
public $url = self::SHIMMIE_URL;
public $authors = self::SHISH_AUTHOR;
public $description = "A JSON interface to shimmie data [WARNING]";
public $documentation =
"<b>Admin Warning -</b> this exposes private data, eg IP addresses
<p><b>Developer Warning -</b> the API is unstable; notably, private data may get hidden
<p><b><u>Usage:</b></u>
<p><b>get_tags</b> - List of all tags. (May contain unused tags)
<br><ul>tags - <i>Optional</i> - Search for more specific tags (Searchs TAG*)</ul>
<p><b>get_image</b> - Get image via id.
<br><ul>id - <i>Required</i> - User id. (Defaults to id=1 if empty)</ul>
<p><b>find_images</b> - List of latest 12(?) images.
<p><b>get_user</b> - Get user info. (Defaults to id=2 if both are empty)
<br><ul>id - <i>Optional</i> - User id.</ul>
<ul>name - <i>Optional</i> - User name.</ul>";
}