UDP API DEV: Difference between revisions

Jump to navigation Jump to search
(id/name split)
Line 220: Line 220:
=== VOTE : new ===
=== VOTE : new ===
'''Description:'''<br>
'''Description:'''<br>
Votes for a specifed anime, episode or group defined by id or name.  
Votes for a specifed anime, episode or group defined by id or name (epno).  


'''Command String:'''<br>
'''Command String:'''<br>
by id
by id
* VOTE type={int2 type}&id={int4 id}&value={int4 vote value}
* VOTE type={int2 type}&id={int4 id}[&value={int4 vote value}&epno={int4 episode number}]
by name
by name
* VOTE type={int2 type}&name={string name}&value={int4 vote value}
* VOTE type={int2 type}&name={string name}[&value={int4 vote value}&epno={int4 episode number}]


'''Possible Replies:'''
'''Possible Replies:'''
Line 246: Line 246:


'''Info:'''
'''Info:'''
* type: 1=anime, 2=anime tmpvote, 3=episode, 4=group
* type: 1=anime, 2=anime tmpvote, 3=group
* value: negative number means revoke, 0 means retrieve, 100-1000 are valid vote values, rest is illegal
* for episode voting add epno on type=1
* votes will be updated automatically (that is no questions asked)
* value: negative number means revoke, 0 means retrieve (default), 100-1000 are valid vote values, rest is illegal
* votes will be updated automatically (no questions asked)
* tmpvoting when there exist a perm vote is not possible
* tmpvoting when there exist a perm vote is not possible
* ename is '{str anime name}|{int4 epno}'


=== RANDOM : new ===
=== RANDOM : new ===
546

edits

Navigation menu

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