Skip to content

Instantly share code, notes, and snippets.

@dalyons
Created February 3, 2012 03:21
Show Gist options
  • Save dalyons/1727422 to your computer and use it in GitHub Desktop.
Save dalyons/1727422 to your computer and use it in GitHub Desktop.
notification format
POST /conversations/:id/invitations (current_user = 5)
{
{
":type": "application/vnd.playup.conversation.invitation+json",
"to": {
":self": "friend-999",
":type": "application/vnd.playup.friend+json",
":uid":
},
"details": {
":type": "application/vnd.playup.textual.summary+json",
"message":
"title":
"subtitle":
}
}
/notifications GET
{
":self": http://..../users/me/notifications
":type": "application/vnd.playup.collection+json",
":uid": "user-12-notifications"
"items:" [
{
":self": http://..../users/me/notifications/5
":type": "application/vnd.playup.notification+json",
":uid":
subject:{
":type": "application/vnd.playup.conversation.invitation+json",
"from": {
":self": "fan-5",
":type": "application/vnd.playup.fan+json",
":uid":
...fan...
},
"details": {
":type": "application/vnd.playup.textual.summary+json",
"message":
"title":
"subtitle":
}
"conversation":{
":self":
":type":
":uid":
}
},
read: false,
timestamp: 20120101Z10:30
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment