sharepoint online – post message with attachments to yammer

Hi I am using console application to upload a document to yammer using Yammer REST API.

For access token I am using developer token generated from a registered app in yammer (

Can you please guide me on how to achieve this functionality or post any useful links

I have tried the following links and it is not working (not getting any response)