Search code examples
yammeryammer-api

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


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!


Solution

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

    Screenshot: postman

    Result:

    Screenshot: yammer