How to upload files to yammer using REST API?

200 Views Asked by At

I wanted an API to upload files to yammer.

Initially I was using https://www.yammer.com/api/v1/pending_attachments API which now gives DEPRECATED API response.

Then I moved to https://filesng.yammer.com/v4/uploadSmallFile API which was working earlier but now it gives 500 status code.

Can someone please help me on this?

1

There are 1 best solutions below

1
Ria Rana On

500 status code typically means you have the wrong authentication credentials or you don't have access, and the second API that you've listed requires AAD credentials. Once the correct AAD credentials are established, it should work.