yammer-api

How to upload files on Yammer API via the Azure Upload Small File API

眉间皱痕 提交于 2021-02-15 07:13:18
问题 How to upload an attachment along with a Yammer message? Any legacy method through attachment1 etc. fields of the /messages.json endpoint won't work anymore. The new method is not so well documented: https://developer.yammer.com/docs/upload-files-into-yammer-groups I'm giving here an example in PHP below, but you can do the same in any language. 回答1: You have to do it in two part First upload the picture to https://filesng.yammer.com/v4/uploadSmallFile and get the picture's id. Send your