Currently oauth clients are in alpha. Contact: support@stream.me
This is an example of a basic StreamMe OAuth2 client that requests access to protected StreamMe API resources on behalf of a user. It implements a simple Express server, using Passport and the Passport StreamMe Strategy for easy OAuth2 authentication.
- Clone this repo
- Run
npm install
- Start the server with
npm start
- Point your browser to http://localhost:3000
Follow the instructions on screen to login with StreamMe, authorize the demo for access to the 'message' and 'emoticon' scopes, and perform simple GET requests for your message feed and your custom emoticons.
To use your own OAuth2 client in this demo, simply update the parameters given to the passport-streamme-strategy in index.js with your client's ID, secret, and redirectURL, then restart the server. If you have not yet created and registered an OAuth2 application, you can do so at developers.stream.me/oauth.