forked from LockerProject/Locker
-
Notifications
You must be signed in to change notification settings - Fork 0
(Core API) at
temas edited this page Apr 6, 2011
·
7 revisions
Schedule a callback for core to send an installed service at the given time. If a service is not running it will be spawned for the callback being fired. Further callbacks are maintained if the locker goes down and will then be fired as soon as possible. The time is only provided within a one second resolution, and the call is only guaranteed to fire at or after the specified time.
GET
- at: The time to run the callback specified as POSIX time in seconds.
- id: The service id that hosts the callback to call.
- cb: The URL to call against the service specified by id. URI encoded,if a leading / is not given it is added.
/at?at=1302099087&id=0c3f17c4ded7b27c6872d727b55336a4&cb=callback
Sets up a callback to the service installed as 0c3f17c4ded7b27c6872d727b55336a4 calling /callback at 2011-04-06 14:11:27Z.
application/json
- 200: true meaning a successful scheduling.
- 400: An argument was invalid.
- 404: The specified id is not an installed service.