02-21-2018 03:28 AM
I faced with issue when i'm trying to post praise in Yammer group via Yammer rest api.
Headers:
Authorization: Bearer #Token;
yammer-capabilities: external-messaging,external-groups(and i've tried "external-messaging,parsed-body-only2,user-sidebar,external-groups");
Content-Type: application/json
Here is JSON that i'm trying to send
{ "body": "test body", "group_id": #groupId, "message_type": "praise", "title": "test title", "praise": { "comment": "test comment", "icon": "thumbsup", "praised_user_ids": [#PraisedUserId] } }
And that is my response:
{ "body": [ "Please include a message" ], "code": "body_blank" }
Explain me please what did i do wrong and finally how can i achieve my goal?
03-08-2018 10:15 AM - edited 03-08-2018 10:16 AM
I'd like to know if this is possible as well. We are looking at modernizing an app which currently has this capability within SharePoint activity feeds (on-premise). A way to make this work within Yammer would be helpful.
10-17-2018 12:33 AM
I don't know still it will be useful for you, but I tried with param skip_body_notification as true. It's worked and it 'll skip the body part.
But, even am looking how to add users email id instead of user's yammer id. Every time I can't call one more API to get user-id before I post Praise.
11-15-2019 01:55 AM
Using yammer rest API as mentioned in above conversations , posting praise in Yammer group . The response what I am getting is 500 Internal Server Error.
JSON that i'm trying to send
{ "body": "test body", "group_id": "12107481088", "message_type": "praise", "title": "title", "praise": { "comment": "test comment", "icon": "thumbsup", "praised_user_ids": [1548606417,120248147968] }, "skip_body_notifications" : "true" } |
Headers
Authorization: Bearer #Token;
Content-Type: application/json
Can anybody help me out to solve this issue ?