Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Sugar Network/API
(view source)
Revision as of 01:47, 19 December 2011
44 bytes added
,
01:47, 19 December 2011
→player
Line 87:
Line 87:
:** votes given to objects where the ''player'' is a creator;
:** votes given to objects where the ''player'' is a creator;
:* {{Code|vote}}, ''bool'', ''read'', ''write''<br>did url requester voted for the current object or not;
:* {{Code|vote}}, ''bool'', ''read'', ''write''<br>did url requester voted for the current object or not;
−
−
Events:
Actions:
Actions:
−
* ''
'create''' and '
''
destroy''' are not allowed
;
+
* ''
player
''
cannot be created or destroyed
;
−
* '''
update
'
'' is allowed
only
for
a user who is associated with
a ''player''
.
+
* ''
player
''
can be updated
only
by
a user who is associated with
it
.
POST /player/<GUID>/'''send'''
POST /player/<GUID>/'''send'''
Line 101:
Line 99:
Inputs:
Inputs:
: A dictionary with [[#event|event]] properties.
: A dictionary with [[#event|event]] properties.
+
+
Event types:
+
:* {{Code|message}}, direct event to the ''player''.
=== project ===
=== project ===
Alsroot
Bots
,
Bureaucrats
,
Check users
,
Administrators
,
Widget editors
5,705
edits