You need to have a user that is able to to access Yammer via their browser to acquire an OAuth token. Once this has been acquired that token is long lived and will be killed off if a user is suspended, or they manually revoke the token.
If I was developing an application that did some kind of background processing:
- I'd present the user with a way to authenticate in the app.
- Then I would take the user through the OAuth flow and acquire a token.
- Finally I'd persist the token acquired for this background user.
This might require you to setup a "service" account in a Yammer network, but that's generally not too big a problem. I guess it depends on what you are trying to build.