Skip to content

Instantly share code, notes, and snippets.

@brianly
Created October 3, 2013 22:47
Show Gist options
  • Save brianly/6818300 to your computer and use it in GitHub Desktop.
Save brianly/6818300 to your computer and use it in GitHub Desktop.
POST https://www.yammer.com/api/v1/activity.json HTTP/1.1
Authorization: Bearer REMOVED
Content-Type: application/json; charset=utf-8
Host: www.yammer.com
Content-Length: 392
Expect: 100-continue
Connection: Keep-Alive
{"activity":{"actor":{"name":"Brian Lyttle","email":"[email protected]"},"action":"yammermvc:publish","object":{"url":"https://bing.com/?233334","description":"This is a cool image","video":{"width":1,"height":1},"type":"yammermvc:photo","title":"Cool image","image":"http://news.bbcimg.co.uk/media/images/68853000/jpg/_68853657_ac86edof.jpg"},"private":"false","message":"","users":null}}
HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 03 Oct 2013 22:41:33 GMT
Content-Type: application/json; charset=utf-8
Connection: close
Status: 400 Bad Request
X-Date: 1380840093933
Cache-Control: no-cache
X-UA-Compatible: IE=Edge,chrome=1
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Runtime: 0.365527
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Robots-Tag: none
Content-Length: 182
{"warnings":["Open graph object properties could not be updated: Unknown object type: 'yammermvc:photo'"],"errors":["Activity could not be saved: Open graph action type is invalid"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment