Sugar Network/API: Difference between revisions
No edit summary |
|||
| Line 34: | Line 34: | ||
* {{Code|mtime}}, ''int''<br>the UNIX seconds in UTC timezone of the time when object was modified; optional, will be set on a server side otherwise; | * {{Code|mtime}}, ''int''<br>the UNIX seconds in UTC timezone of the time when object was modified; optional, will be set on a server side otherwise; | ||
* {{Code|creator}}, ''guid'', ''read''<br>the ''player'' who created the object. | * {{Code|creator}}, ''guid'', ''read''<br>the ''player'' who created the object. | ||
Resources that can be voted (everything except ''player'', ''comment'' and ''event''), have these additional properties: | |||
:* {{Code|respect}}, ''guid'', ''read'', ''create''<br>what ''player'' needs to be respected on getting vote to this object, if empty, the associated ''project'' itself will be voted. | |||
And calculated ones: | |||
:* {{Code|reputation}}, ''int'', ''read''<br>current object's reputation; | |||
:* {{Code|vote}}, ''bool'', ''read'', ''write''<br>did url requester voted for the current object or not. | |||
=== Common actions === | === Common actions === | ||