UDP API DEV: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(→‎Misc Commands: user + codes)
mNo edit summary
Line 73: Line 73:
=== [[UDP_API_Definition#FILE:_Retrieve_File_Data|FILE]] ===
=== [[UDP_API_Definition#FILE:_Retrieve_File_Data|FILE]] ===
'''Possible return codes:'''
'''Possible return codes:'''
* XXX MULTIPLE FILES FOUND
* 322 MULTIPLE FILES FOUND
: fid|state
: {int4 fid 0}|{int4 fid 1}|...|{int4 fid n}
'''Comments:'''<br>
'''Comments:'''<br>
Selection by anime, group and episode number is not unique. As an example: FILE aid=22&gid=41&tag=tag0002&epno=1 <br>
Selection by anime, group and episode number is not unique. As an example: FILE aid=22&gid=41&tag=tag0002&epno=1 <br>
Line 91: Line 91:


'''Possible Replies:'''
'''Possible Replies:'''
* XXX PRODUCER
* 245 PRODUCER
: {int4 id}|{str name}|{str short name}|{str other name}|{str type}|{str picture name}|{str home page url}
: {int4 id}|{str name}|{str short name}|{str other name}|{str type}|{str picture name}|{str home page url}
* 345 NO SUCH PRODUCER
'''Example:'''
'''Example:'''
   > PRODUCER pid=1
   > PRODUCER pid=1
Line 106: Line 107:
* BUDDYADD uname={int4 buddy name}
* BUDDYADD uname={int4 buddy name}
'''Possible Replies:'''
'''Possible Replies:'''
* XXX BUDDY ADDED
* 394 NO SUCH USER
* XXX NO SUCH USER
* 255 BUDDY ADDED
* XXX USER IS ALREADY A BUDDY
* 355 BUDDY ALREADY ADDED


=== BUDDYDEL ===
=== BUDDYDEL ===
Line 114: Line 115:
* BUDDYDEL uid={int4 buddy uid}
* BUDDYDEL uid={int4 buddy uid}
'''Possible Replies:'''
'''Possible Replies:'''
* XXX BUDDY DELETED
* 356 NO SUCH BUDDY
* XXX NO SUCH BUDDY
* 256 BUDDY DELETED
* XXX YOU GOT NO FRIENDS


=== BUDDYACCEPT ===
=== BUDDYACCEPT ===
'''Command String:'''
'''Command String:'''
* BUDDYACCEPT uid=NNN
* BUDDYACCEPT uid={int4 user uid}
'''Possible Replies:'''
'''Possible Replies:'''
* XXX BUDDY ACCEPTED
* 356 NO SUCH BUDDY
* XXX NO SUCH BUDDY
* 257 BUDDY ACCEPTED
* XXX BUDDY ALREADY ACCEPTED
* 357 BUDDY ALREADY ACCEPTED


=== BUDDYDENY ===
=== BUDDYDENY ===
Line 130: Line 130:
* BUDDYDENY uid={int4 buddy uid}
* BUDDYDENY uid={int4 buddy uid}
'''Possible Replies:'''
'''Possible Replies:'''
* XXX BUDDY DENIED
* 394 NO SUCH USER
* XXX NO SUCH USER
* 258 BUDDY DENIED
* XXX BUDDY ALREADY DENIED
* 358 BUDDY ALREADY DENIED


=== BUDDYLIST ===
=== BUDDYLIST ===
Line 138: Line 138:
* BUDDYLIST startat={int2 start at #}
* BUDDYLIST startat={int2 start at #}
'''Possible Replies:'''
'''Possible Replies:'''
* NNN {int2 start} {int2 end} {int2 total} BUDDY LIST
* 253 {int2 start} {int2 end} {int2 total} BUDDY LIST
: {int4 uid}|{str username}|{int2 state}
: {int4 uid}|{str username}|{int2 state}
: ...
: ...
Line 151: Line 151:
* BUDDYSTATE startat={int2 start at #}
* BUDDYSTATE startat={int2 start at #}
'''Possible Replies:'''
'''Possible Replies:'''
* XXX {int2 start} {int2 end} {int2 total} BUDDY STATE
* 254 {int2 start} {int2 end} {int2 total} BUDDY STATE
: {int4 uid}|{int2 onlinestate}
: {int4 uid}|{int2 onlinestate}
: ...
: ...
Line 237: Line 237:
* Default [http://en.wikipedia.org/wiki/MTU_(networking) ''mtu''] is 1400. Min = 400, Max = 1400.
* Default [http://en.wikipedia.org/wiki/MTU_(networking) ''mtu''] is 1400. Min = 400, Max = 1400.


== USER: Retrieve uid ==
=== USER: Retrieve user uid ===
'''Command String:'''
'''Command String:'''
* USER user={str user name}
* USER user={str user name}
546

edits

Navigation menu

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