WebAPI/PushAPI: Difference between revisions

No change in size ,  27 September 2012
Line 137: Line 137:


* '''messageType''': "notification". <b>Mandatory</b>
* '''messageType''': "notification". <b>Mandatory</b>
* '''message''': Main body. This could contain a maximum of 1024 bytes. Can be anything that fits in UTF8. <b>Mandatory</b>
* '''signature''': The text message signed with the Private Key that is verified and, if fails, the notification is thrown away and not accepted. <b>Mandatory</b>
* '''signature''': The text message signed with the Private Key that is verified and, if fails, the notification is thrown away and not accepted. <b>Mandatory</b>
* '''id''': a server side generated id to identify the notification. <i>Optional</i>.
* '''id''': a server side generated id to identify the notification. <b>Mandatory</b>.
* '''message''': Main body. This could contain a maximum of 1024 bytes. Can be anything that fits in UTF8. <i>Optional</i>
* '''ttl''': Maximum time of live of the notification. The server will discard any notification in a maximum time or in the ttl time, whatever first occurs. <i>Optional</i>.
* '''ttl''': Maximum time of live of the notification. The server will discard any notification in a maximum time or in the ttl time, whatever first occurs. <i>Optional</i>.
* '''timestamp''': Time when the notification was sent. <i>Optional</i>.
* '''timestamp''': Time when the notification was sent. <i>Optional</i>.
Confirmed users
120

edits