How to upload files to Yammer using JS SDK

Unfortunately at the time of this post the documentation on the yammer developer site is very poor, while it has the REST API reference, the JS...