Skip to content

Instantly share code, notes, and snippets.

@brianly
Last active December 24, 2015 12:39
Show Gist options
  • Save brianly/6799446 to your computer and use it in GitHub Desktop.
Save brianly/6799446 to your computer and use it in GitHub Desktop.
Example post showing a story being posted to the Activity Stream.
POST https://www.yammer.com/api/v1/activity.json HTTP/1.1
Authorization: Bearer REMOVED_TOKEN
Content-Type: application/json; charset=utf-8
Host: www.yammer.com
Content-Length: 405
Expect: 100-continue
{
"activity": {
"actor": {
"name": "Brian Lyttle",
"email": "[email protected]"
},
"action": "yammermvc:publish",
"object": {
"url": "http://localhost:33128/media/detail?id=34",
"description": "dfdgfdgf",
"video": {
"width": 1,
"height": 1
},
"type": "yammermvc:photo",
"title": "fdgfdgf",
"image": "https://mug0.assets-yammer.com/mugshot/images/75x75/LBZq1qTjmSd9XkzdkNJnRKCVGQD38MF6"
},
"private": "false",
"message": "",
"users": null
}
}
HTTP/1.1 202 Accepted
Server: nginx
Date: Wed, 02 Oct 2013 19:41:10 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Status: 202 Accepted
X-Robots-Tag: none
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: no-cache
X-UA-Compatible: IE=Edge,chrome=1
X-Date: 1380742870215
X-XSS-Protection: 1; mode=block
X-Runtime: 0.330480
Content-Length: 71
{
"action_id": 1145749,
"object_id": 353470174751746,
"actor_id": 1491478840
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment