Sugar Network/API: Difference between revisions
Actualize API, s/player/user/g |
|||
| Line 106: | Line 106: | ||
== Resources == | == Resources == | ||
=== | === user === | ||
Actions: | Actions: | ||
* '' | * ''user'' cannot be created or destroyed; | ||
* '' | * ''user'' can be updated only by a user who is associated with it. | ||
POST / | POST /user/<GUID>/'''message''' | ||
Send private message to the '' | Send private message to the ''user''. | ||
Sends: | Sends: | ||
| Line 121: | Line 121: | ||
Events: | Events: | ||
: Direct event to the '' | : Direct event to the ''user'': | ||
:* {{Code|type: message}}. | :* {{Code|type: message}}. | ||
| Line 132: | Line 132: | ||
* [[#Wiki_actions|Wiki related actions]] to manage object description. | * [[#Wiki_actions|Wiki related actions]] to manage object description. | ||
POST /context/<GUID/'''add_member'''?member=< | POST /context/<GUID/'''add_member'''?member=<USER> | ||
Make a '' | Make a ''USER'' the ''team'' member. Only ''team'' members can call this action. | ||
Events: | Events: | ||
| Line 140: | Line 140: | ||
:* {{Code|memeber: GUID}}. | :* {{Code|memeber: GUID}}. | ||
POST /context/GUID/'''remove_member'''?member=< | POST /context/GUID/'''remove_member'''?member=<USER> | ||
Remove '' | Remove ''USER'' from the to the ''team''. Only ''team'' member can call this action if he is not the ''USER'' and ''USER'' is not the same as ''creator''. | ||
Events: | Events: | ||