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.
You have to do it in two part
Note: I will use here the Guzzle library for the REST calls.
1. Send the picture to the Azure cloud
Of course, you have to replace class variables with your owns. And the content type by your file's one.
2. Send your message