Skip to content

Instantly share code, notes, and snippets.

@brianly
Created July 19, 2013 03:47
Show Gist options
  • Save brianly/6034981 to your computer and use it in GitHub Desktop.
Save brianly/6034981 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: text/plain; charset=utf-8
Host: www.yammer.com
Content-Length: 494
Expect: 100-continue
Connection: Keep-Alive
{"activity":{"actor":{"name":"Jim Martin","email":"jim@seyammer.com"},"action":"yammermvc:publish","object":{"url":"https://dox.com/file/abc123.pdf","description":"A set of charts showing the ROI of deploying Yammer over time.","video":{"width":1,"height":1},"type":"yammermvc:photo","title":"Yammer ROI.pdf","image":"https://dox.com/file/abc123.pdf"},"private":"false","message":"This is the updated version for the conference.","users":[{"name":"Brian Davis","email":"bdavis@seyammer.com"}]}}
HTTP/1.1 400 Bad Request
Server: nginx
Date: Fri, 19 Jul 2013 03:38:04 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Status: 400 Bad Request
Access-Control-Allow-Headers: Content-Type, X-Requested-With, NETWORK_ID, Authorization, X-CSRF-Token
Access-Control-Allow-Methods: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK, VERSION-CONTROL, REPORT, CHECKOUT, CHECKIN, UNCHECKOUT, MKWORKSPACE, UPDATE, LABEL, MERGE, BASELINE-CONTROL, MKACTIVITY, ORDERPATCH, ACL, SEARCH, PATCH
X-Robots-Tag: none
X-Date: 1374205084391
X-Runtime: 0.146166
X-UA-Compatible: IE=Edge,chrome=1
Access-Control-Allow-Origin: https://ymodules.yammer.com
Access-Control-Allow-Credentials: true
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache
Content-Length: 50
{"errors":["Missing required param \"activity\""]}
@pwnedDesal
Copy link

do you fixed this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment