This is a quick 3-legged OAuth demo that runs using Sinatra.
$ git clone https://github.com/grokify/ringcentral-sdk-ruby
$ cd ringcentral-sdk-ruby/scripts/oauth2-sinatra
$ bundle$ gem install ringcentral_sdk
$ gem install sinatra
$ git clone https://github.com/grokify/ringcentral-sdk-rubyEdit the oauth2.rb file to add your application key and application secret.
$ cd ringcentral-sdk-ruby/scripts/oauth2-sinatra
$ vi oauth2.rbOpen the web page:
$ ruby oauth2.rbThen click the button to authorize the demo app and view the access token.