User:Ommina: Difference between revisions

From AniDB
Jump to navigation Jump to search
Line 57: Line 57:
* ''dateflags'' values: [Look them up]
* ''dateflags'' values: [Look them up]


Example:
=== REVIEW: Get Anime Review ===
Retrieves the review scores and text for an anime review.  Like ANIMEDESC, it will likely take multiple calls to this comment to retrieve a complete review - almost all reviews will overflow the size limits of a UDP packet.


  CHARACTER charid=488&s=DChan
'''Command String:'''
  235 CHARACTER
* REVIEW rid={int4 id}
  488|ニコ・ロビン|Nico Robin|14789.jpg|4097,2,1900,1'69,2,1901,0'6199,0,1900,1'5691,0,1900,1'2644,0,,'4851,0,1900,1||1236938094
 
'''Possible Replies:'''
* 234 REVIEW
: {int4 current part}|{int4 max parts}|{int4 review id}|{int4 author uid}|{int4 score_animation}|{int4 score_sound}|{int4 score_story}|{int4 score_character}|{int4 score_value}|{int4 score_enjoyment}|{str review_text}
* 234 REVIEW
: {int4 current part}|{int4 max parts}|{str review_text}
 
* 334 NO SUCH REVIEW
 
'''Info:'''
* IDs and scores are returned with part zero only.  Parts one through max exclude the scores and return the text block only.
 
 
 
 
 
[Maybe exchange author uid for author name.  Or a uid->name lookup via USER?]


=== WISHLIST: Retrieve Wishlist Data  ===
=== WISHLIST: Retrieve Wishlist Data  ===

Revision as of 06:13, 5 August 2009





ANIME Relationship Types

1 => 'sequel', 2 => 'prequel',

11 => 'same setting', 12 => 'same setting',

21 => 'alternative setting', 22 => 'alternative setting',

31 => 'alternative version', 32 => 'alternative version',

41 => 'character', 42 => 'character',

51 => 'side story', 52 => 'parent story',

61 => 'summary', 62 => 'full story',

100 => 'other'


CATEGORY: Retrieve Category Data

CALENDAR: Get Upcoming Titles

Returns the anime ids of the next ten anime due to be aired / released, ordered by start date.

Command String:

  • CALENDAR

Possible Replies:

  • 296 CALENDAR

{int aid}|{int startdate}|{int dateflags}/n

..repeated nine times

  • 396 CALENDAR EMPTY

Info:

  • Takes no parameters (other than the session string)
  • Titles returned are filtered by the 'show adult' preference of the logged in user. That is, users who have elected to hide adult content will have it hidden here as well.
  • Date flags are used to indicated an unknown value (unknown month, unknown day)
  • dateflags values: [Look them up]

REVIEW: Get Anime Review

Retrieves the review scores and text for an anime review. Like ANIMEDESC, it will likely take multiple calls to this comment to retrieve a complete review - almost all reviews will overflow the size limits of a UDP packet.

Command String:

  • REVIEW rid={int4 id}

Possible Replies:

  • 234 REVIEW
{int4 current part}|{int4 max parts}|{int4 review id}|{int4 author uid}|{int4 score_animation}|{int4 score_sound}|{int4 score_story}|{int4 score_character}|{int4 score_value}|{int4 score_enjoyment}|{str review_text}
  • 234 REVIEW
{int4 current part}|{int4 max parts}|{str review_text}
  • 334 NO SUCH REVIEW

Info:

  • IDs and scores are returned with part zero only. Parts one through max exclude the scores and return the text block only.



[Maybe exchange author uid for author name. Or a uid->name lookup via USER?]

WISHLIST: Retrieve Wishlist Data

WISHLISTADD: Add Anime to Wishlist

WISHLISTDEL: Remove Anime from Wishlist

NOTIFICATION: Retrieve Notification Date

NOTIFICATIONADD: Add Anime or Group to Notify List

NOTIFICATIONDEL: Remove Anime or Group from Notify List

Empty Table

Byte 1
Bit Decimal Data Field
0 1 String
1 2 String
2 4 String
3 8 String
4 16 String
5 32 String
6 64 String
7 128 String