Ruby SDK for RingCentral.
gem install ringcentral-sdk
https://developer.ringcentral.com/api-docs/latest/index.html
require 'ringcentral'
rc = RingCentral.new(ENV['appKey'], ENV['appSecret'], ENV['server'])
rc.authorize(username: ENV['username'], extension: ENV['extension'], password: ENV['password'])
# get
r = rc.get('/restapi/v1.0/account/~/extension/~')
expect(r).not_to be_nil
expect('101').to eq(JSON.parse(r.body)['extensionNumber'])
For more sample code, please refer to the test cases.
Create .env
file with the following content:
production=false
server=https://platform.devtest.ringcentral.com
appKey=appKey
appSecret=appSecret
username=username
extension=extension
password=password
receiver=number-to-receiver-sms
Run rspec
MIT
- Travis CI
- Code coverage
- Batch requests
- Fax & SMS