25 lines
		
	
	
		
			1023 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			1023 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php declare(strict_types=1);
 | 
						|
 | 
						|
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>";
 | 
						|
}
 |