2017-08-18 12 views
0

Ich mache eine Locke, um einen POST in meiner Gruppe zu senden, und es funktioniert nicht, es postet auf dem All Company Network, auch wenn ich die group_id sendete.Ich kann nicht in einer bestimmten Yammer-Gruppe posten

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 

Ich schreibe die richtige group_id, und immer noch nicht das Argument zu lesen. Hat jemand dieses Problem auch?

Yammer der API-Dokumentation: https://developer.yammer.com/docs/messages-json-post

Antwort

0

Das Problem war, dass ich zitierte die URL -___-

Arbeitscode:

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' 
Verwandte Themen