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 +4 -4
- data/README.md +4 -4
- data/ringcentral-sdk.gemspec +1 -1
- data/spec/fax_spec.rb +1 -1
- data/spec/mms_spec.rb +1 -1
- data/spec/ringcentral_spec.rb +2 -2
- data/spec/subscription_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cb5bccec6e2f70742a2a3d61cc96a172f725fb3
|
4
|
+
data.tar.gz: dfe44e7e81c7682c1affeadd2cab5b478838bed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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['
|
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 =
|
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
|
-
|
107
|
-
|
106
|
+
clientId=clientId
|
107
|
+
clientSecret=clientSecret
|
108
108
|
username=username
|
109
109
|
extension=extension
|
110
110
|
password=password
|
data/ringcentral-sdk.gemspec
CHANGED
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['
|
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['
|
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',
|
data/spec/ringcentral_spec.rb
CHANGED
@@ -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['
|
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['
|
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
|
data/spec/subscription_spec.rb
CHANGED
@@ -4,7 +4,7 @@ require 'dotenv'
|
|
4
4
|
require 'rspec'
|
5
5
|
|
6
6
|
Dotenv.load
|
7
|
-
$rc = RingCentral.new(ENV['
|
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.
|
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-
|
11
|
+
date: 2018-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|