UDP API DEV: Difference between revisions

1,258 bytes added ,  25 November 2005
Line 8: Line 8:
== Data ==
== Data ==
=== ANIME : new ? high ===
=== ANIME : new ? high ===
'''Command String:'''
'''Description:'''<br>
: by aid
Retrieves most info available for a specific anime defined by either id or name.
:* ANIME aid={int4 id}
 
: by title
'''Command String:'''<br>
:* ANIME title={str title}
by aid
* ANIME aid={int4 id}
by name
* ANIME name={str name}


'''Possible Replies:'''
'''Possible Replies:'''
:* XXX NO SUCH ANIME
* XXX NO SUCH ANIME
:* XXX ANIME
* XXX ANIME
:* XXX ANIME BEST MATCH
: {int4 aid}|{int2 type}|{int4 eps}|{int4 ep count}|{int4 special cnt}|{int4 rating}|{int4 votes}|{int4 tmprating}|{int4 tmpvotes}|{int4 review rating average}|{int4 reviews}|{str year}|{str romaji}|{str kanji}|{str english}|{str other}|{str synonyms}|{str short names}{str genre list}
:: {int4 aid}|{int2 type}|{int4 eps}|{int last ep}|{int4 rating}|{int4 votes}|{int4 atts}|{int4 attavg}|{str year}|{str title}|{str kanji}|{str romaji}|{str genre}
* XXX ANIME BEST MATCH
 
: {int4 aid}|{int2 type}|{int4 eps}|{int4 ep count}|{int4 special cnt}|{int4 rating}|{int4 votes}|{int4 tmprating}|{int4 tmpvotes}|{int4 review rating average}|{int4 reviews}|{str year}|{str romaji}|{str kanji}|{str english}|{str other}|{str synonyms}|{str short names}{str genre list}
'''Example:''' (html escaped code intended)
  > ANIME name=tmm&s=xxxxx
  < 230 ANIME
  161|52|50|0|715|57|777|35|816|1|2002-2003|TV|Tokyo Mew Mew|&#26481;&#20140;&#12511;&#12517;&#12454;&#12511;&#12517;&#12454;||||TMM§mew|Cat Girls
  > ANIME name=&#12490;&#12523;&#12488;&s=xxxxx
  < 230 ANIME
  239|0|140|2|1000|10|855|3750|803|36|2002-2005|TV|Naruto|&#12490;&#12523;&#12488;||&#1504;&#1488;&#1512;&#1493;&#1496;&#1493;|NARUTO§&#1606;&#1575;&#1585;&#1608;&#1578;&#1608;|naruto tv§ntv|Action,Shounen,Past,...(cut)
'''Info:'''
'''Info:'''
:* Relations?
* Login is required. (?)
:* Genre as ids? "Action, Drama" vs "1,4". or bitwise with two ints
* Synonyms and short names are separated with '§'
:* Cat?
* Genre names are separated with ',' and ordered by weight (desc).
:* by title: pri: short>romaji>kanji>eng>syn, returns the most likely anime, i.e. only one
* Categories?
:* syn, short?
* By title: returns the most likely anime, i.e. only one


'''Comments:'''<br>
I'd like this command to cope with a couple of different encodings when passed a title, and be explicit over whether it finds only one result or does a best-match guess. --[[User:Rar|Rar]] 04:51, 30 Oct 2005 (CET)
I'd like this command to cope with a couple of different encodings when passed a title, and be explicit over whether it finds only one result or does a best-match guess. --[[User:Rar|Rar]] 04:51, 30 Oct 2005 (CET)
: On second thought, is a wide search really wanted or is 'WHERE lower(name)=' good enough?. About encodings, do you care to elaborate? --[[User:Epoximator|Epoximator]] 18:24, 25 November 2005 (CET)


=== EPISODE : new / extend ? high ===
=== EPISODE : new / extend ? high ===
546

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.