rest - Can't post in a specific Yammer's group -


i'm doing curl send post in group, , doesn't works, posts on company network if sent group_id.

curl -h "accept: application/json" -h "content-type: application/json" -h "authorization: bearer oauthtokenhere" -x post -d '{"activity":{"actor":{"email":"myemail"},"action":"create"}}' https://www.yammer.com/api/v1/messages.json?body=testingfromyammersapi&group_id=groupid 

i'm writing right group_id, , still not reading argument. has problem too?

yammer's api docs: https://developer.yammer.com/docs/messages-json-post

the problem wasn't quoting url -___-

working code:

curl -h 'accept: application/json' -h 'authorization: bearer oauthtokenhere' -h 'content-type: application/json' -x post -d ' ' 'https://www.yammer.com/api/v1/messages.json?body=message_here&group_id=group_id' 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -