How to embed a video player when posting a message with Yammer API?

456 Views Asked by At

I can't figure it out how to embed a video player when posting a message with Yammer API.

I have been testing the Yammer API with postman:

screenshot: postman

As response, I got "400 bad request":

{
    "body": [
        "Please include a message"
    ],
    "code": "body_blank"
}

If I just paste the video url in "body", I will get "201 created". But in Yammer, the post looks like:

Screenshot:Yammer

I would like the post looks similar to this:

Screenshot: Yammer2

Does anyone know how to do it? Thanks!

1

There are 1 best solutions below

0
Ferry On BEST ANSWER

I figured it out by myself. Add following parameters in the request body:

Screenshot: postman

Result:

Screenshot: yammer