This very small app demonstrates a simple OAuth authentication flow for RingCentral Events, allowing calling apps to access the API.
This is a ruby 3.0 app, which you'll need to install. If you use asdf then activating this plugin should install the correct version.
bundle
Run the script with the following environment variables set:
- RCE_CALLBACK_URL
- RCE_APP_ID
- RCE_APP_SECRET
RCE_CALLBACK_URL=http://localhost:3000/auth/callback RCE_APP_ID={your client id} RCE_APP_SECRET={your app secret} bundle exec rackup -p3000
Examples borrowed from https://github.com/assembly-edu/oauth-sample-sinatra