ringcentral-sdk 0.6.0 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbb5f69a24a6a8f835ff75324620bac5d813a602
4
- data.tar.gz: 3c2d9b887bd8118d50a0c0e8f24e69b4a6b8b7d0
3
+ metadata.gz: 0cb5bccec6e2f70742a2a3d61cc96a172f725fb3
4
+ data.tar.gz: dfe44e7e81c7682c1affeadd2cab5b478838bed3
5
5
  SHA512:
6
- metadata.gz: 4d4105624d9b70a661986e3f9eff290beab847559a5b202635724d86a0cbb03a72c63b0d8664fbcad99c563586ef617431c35db19b790af49ea680afcb72e023
7
- data.tar.gz: e27677e5cb71471c482484f973fd04c5ed35b3f24c11f2774bdfcce403438b53b767d242dfeb06ba0cd784c2da78cca9f67a1e6a53be37538dc0098f16f9105d
6
+ metadata.gz: 8f2475ac854dce6f45badba43a46437724261f8ff009000a581a287f1a4c0290db0114fb6c06e2aab5867dbce9b70a1593ec4998a890e30e70f23b402080770b
7
+ data.tar.gz: 9261cd651e7402c4858462dad1d4cba6e47ad86361f8ba61b9698e1387b4070d598b114656d5d8e94dc847fc405ed4acd3c5588ae9be8a2c9af2acb1f56483af
data/README.md CHANGED
@@ -23,7 +23,7 @@ https://developer.ringcentral.com/api-docs/latest/index.html
23
23
  ```ruby
24
24
  require 'ringcentral'
25
25
 
26
- rc = RingCentral.new(ENV['appKey'], ENV['appSecret'], ENV['server'])
26
+ rc = RingCentral.new(ENV['clientId'], ENV['clientSecret'], ENV['server'])
27
27
  rc.authorize(username: ENV['username'], extension: ENV['extension'], password: ENV['password'])
28
28
 
29
29
  # get
@@ -80,7 +80,7 @@ def createSubscription(callback)
80
80
  events = [
81
81
  '/restapi/v1.0/account/~/extension/~/message-store',
82
82
  ]
83
- subscription = rc.subscription(events, lambda { |message|
83
+ subscription = PubNub.new(rc, events, lambda { |message|
84
84
  callback.call(message)
85
85
  })
86
86
  subscription.subscribe()
@@ -103,8 +103,8 @@ Create `.env` file with the following content:
103
103
  ```
104
104
  production=false
105
105
  server=https://platform.devtest.ringcentral.com
106
- appKey=appKey
107
- appSecret=appSecret
106
+ clientId=clientId
107
+ clientSecret=clientSecret
108
108
  username=username
109
109
  extension=extension
110
110
  password=password
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'ringcentral-sdk'
3
- gem.version = '0.6.0'
3
+ gem.version = '0.6.4'
4
4
  gem.authors = ['Tyler Liu']
5
5
  gem.email = ['tyler.liu@ringcentral.com']
6
6
  gem.description = 'Ruby SDK for you to access RingCentral platform API.'
data/spec/fax_spec.rb CHANGED
@@ -5,7 +5,7 @@ RSpec.describe 'Fax' do
5
5
  describe 'send fax' do
6
6
  it 'should send a fax' do
7
7
  Dotenv.load
8
- rc = RingCentral.new(ENV['appKey'], ENV['appSecret'], ENV['server'])
8
+ rc = RingCentral.new(ENV['clientId'], ENV['clientSecret'], ENV['server'])
9
9
  rc.authorize(username: ENV['username'], extension: ENV['extension'], password: ENV['password'])
10
10
 
11
11
  r = rc.post('/restapi/v1.0/account/~/extension/~/fax',
data/spec/mms_spec.rb CHANGED
@@ -5,7 +5,7 @@ RSpec.describe 'MMS' do
5
5
  describe 'send MMS' do
6
6
  it 'should send an MMS' do
7
7
  Dotenv.load
8
- rc = RingCentral.new(ENV['appKey'], ENV['appSecret'], ENV['server'])
8
+ rc = RingCentral.new(ENV['clientId'], ENV['clientSecret'], ENV['server'])
9
9
  rc.authorize(username: ENV['username'], extension: ENV['extension'], password: ENV['password'])
10
10
 
11
11
  r = rc.post('/restapi/v1.0/account/~/extension/~/sms',
@@ -22,7 +22,7 @@ RSpec.describe 'RingCentral' do
22
22
 
23
23
  it 'test_password_flow' do
24
24
  Dotenv.load
25
- rc = RingCentral.new(ENV['appKey'], ENV['appSecret'], ENV['server'])
25
+ rc = RingCentral.new(ENV['clientId'], ENV['clientSecret'], ENV['server'])
26
26
  expect(rc.token).to be_nil
27
27
 
28
28
  # create token
@@ -40,7 +40,7 @@ RSpec.describe 'RingCentral' do
40
40
 
41
41
  it 'test_http_methods' do
42
42
  Dotenv.load
43
- rc = RingCentral.new(ENV['appKey'], ENV['appSecret'], ENV['server'])
43
+ rc = RingCentral.new(ENV['clientId'], ENV['clientSecret'], ENV['server'])
44
44
  rc.authorize(username: ENV['username'], extension: ENV['extension'], password: ENV['password'])
45
45
 
46
46
  # get
@@ -4,7 +4,7 @@ require 'dotenv'
4
4
  require 'rspec'
5
5
 
6
6
  Dotenv.load
7
- $rc = RingCentral.new(ENV['appKey'], ENV['appSecret'], ENV['server'])
7
+ $rc = RingCentral.new(ENV['clientId'], ENV['clientSecret'], ENV['server'])
8
8
  $rc.authorize(username: ENV['username'], extension: ENV['extension'], password: ENV['password'])
9
9
 
10
10
  def createSubscription(callback)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ringcentral-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Liu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-07 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable