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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -