ruby-bandwidth-iris 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -12
- data/lib/bandwidth-iris/version.rb +1 -1
- data/ruby-bandwidth-iris.gemspec +3 -3
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c3d3a94981e3e3ec40dad3670799281a661d200e80614973326c4cb059a8adb
|
4
|
+
data.tar.gz: d986dd6e52fc04e7f1f648c3a9e45560326da65a5c91208c89f33d09b1eda811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b0429508a83ff431fc0b29708a78fd64e280650677d1421a08c30e9773224f82f2dc902205c75ceefc46df861104c5d665c0f385c5fdf70d4db79d3f74bb4c0
|
7
|
+
data.tar.gz: 93e9df992af04de3221534fda2c8dac0d74f0e6472322b05e75f8685a313734f9851f157d068bd6f69113d1ce3cc796c02d3efac8ab151f538e5fd16d2887385
|
data/README.md
CHANGED
@@ -10,6 +10,7 @@ Ruby Client library for IRIS / BBS API
|
|
10
10
|
|--|--|
|
11
11
|
| 1.0.5 | Fixed incorrect generation of XML for a Disconnect request |
|
12
12
|
| 2.0.0 | Added `importTnOrders`, `removeImportedTnOrders`, `inserviceNumbers`, and `importTnChecker` endpoints. This release also changed the response body of `BandwidthIris::InServiceNumber.list()`. Please make sure to update your code to include this change. |
|
13
|
+
| 2.0.1 | Updated gem dependencies to be less restrictive |
|
13
14
|
|
14
15
|
## Install
|
15
16
|
|
@@ -67,7 +68,7 @@ ruby covered_rate_centers.rb
|
|
67
68
|
If the examples take command line parameters, you will get the usage by just executing the individual script.
|
68
69
|
|
69
70
|
|
70
|
-
## API Objects
|
71
|
+
## API Objects
|
71
72
|
### General principles
|
72
73
|
When fetching objects from the API, it will always return an object that has the client
|
73
74
|
instantiated so that you can call dependent methods as well as update, delete.
|
@@ -84,7 +85,7 @@ site = BandwidthIris::Site.create(client, {siteObject})
|
|
84
85
|
|
85
86
|
Each entity has a get, list, create, update and delete method if appropriate.
|
86
87
|
|
87
|
-
All properties are underscored and low-cased for Ruby readability, and are converted on the fly to the proper
|
88
|
+
All properties are underscored and low-cased for Ruby readability, and are converted on the fly to the proper
|
88
89
|
case by the internals of the API when converted to XML.
|
89
90
|
|
90
91
|
## Available Numbers
|
@@ -114,7 +115,7 @@ Retrieves a list of disconnected numbers for an account
|
|
114
115
|
BandwidthIris::DiscNumber.list({:area_code => "919"})
|
115
116
|
```
|
116
117
|
|
117
|
-
## Disconnect Numbers
|
118
|
+
## Disconnect Numbers
|
118
119
|
The Disconnect object is used to disconnect numbers from an account. Creates a disconnect order that can be tracked
|
119
120
|
|
120
121
|
### Create Disconnect
|
@@ -297,7 +298,7 @@ order_data = {
|
|
297
298
|
{
|
298
299
|
:telephone_number => ["9195551212"]
|
299
300
|
}
|
300
|
-
|
301
|
+
|
301
302
|
}
|
302
303
|
}
|
303
304
|
|
@@ -311,7 +312,7 @@ order = BandwidthIris::Order.get("order_id")
|
|
311
312
|
```ruby
|
312
313
|
BandwidthIris::Order.list(query)
|
313
314
|
```
|
314
|
-
### Order Instance Methods
|
315
|
+
### Order Instance Methods
|
315
316
|
```ruby
|
316
317
|
// get Area Codes
|
317
318
|
order.get_area_codes()
|
@@ -353,7 +354,7 @@ data = {
|
|
353
354
|
:state_code => "NC",
|
354
355
|
:county => "Wake"
|
355
356
|
}
|
356
|
-
},
|
357
|
+
},
|
357
358
|
:loa_authorizing_person => "Joe Blow",
|
358
359
|
:list_of_phone_numbers => {
|
359
360
|
:phone_number => ["9195551212"]
|
@@ -415,9 +416,9 @@ BandwidthIris::RateCenter.list(query)
|
|
415
416
|
```ruby
|
416
417
|
data = {
|
417
418
|
:peer_name => "A New SIP Peer",
|
418
|
-
:is_default_peer => false,
|
419
|
+
:is_default_peer => false,
|
419
420
|
:short_messaging_protocol =>"SMPP",
|
420
|
-
:site_id => selectedSite,
|
421
|
+
:site_id => selectedSite,
|
421
422
|
:voice_hosts =>
|
422
423
|
{
|
423
424
|
:host => [{
|
@@ -430,14 +431,14 @@ data = {
|
|
430
431
|
:host_name => "1.1.1.1"
|
431
432
|
}]
|
432
433
|
},
|
433
|
-
:termination_hosts =>
|
434
|
+
:termination_hosts =>
|
434
435
|
{
|
435
436
|
:termination_host =>[{
|
436
437
|
:host_name => "1.1.1.1",
|
437
438
|
:port => 5060
|
438
439
|
}]
|
439
440
|
}
|
440
|
-
|
441
|
+
|
441
442
|
}
|
442
443
|
|
443
444
|
BandwidthIris::SipPeer.create(data)
|
@@ -474,7 +475,7 @@ sipPeer.move_tns(numbers_to_move)
|
|
474
475
|
## Sites
|
475
476
|
|
476
477
|
### Create A Site
|
477
|
-
A site is what is called Location in the web UI.
|
478
|
+
A site is what is called Location in the web UI.
|
478
479
|
```ruby
|
479
480
|
site = {
|
480
481
|
:name =>"A new site",
|
@@ -528,7 +529,7 @@ site.create_sip_peer(sipPeer)
|
|
528
529
|
subscription = {
|
529
530
|
:order_type => "orders",
|
530
531
|
:callback_subcription => {
|
531
|
-
:
|
532
|
+
:URL => "http://mycallbackurl.com",
|
532
533
|
:user => "userid",
|
533
534
|
:expiry => 12000
|
534
535
|
}
|
data/ruby-bandwidth-iris.gemspec
CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.add_dependency "faraday"
|
19
19
|
spec.add_dependency "faraday_middleware"
|
20
20
|
spec.add_dependency "nori"
|
21
|
-
spec.add_dependency "activesupport","4.2.7"
|
21
|
+
spec.add_dependency "activesupport",">= 4.2.7"
|
22
22
|
spec.add_dependency "certified"
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "
|
25
|
-
spec.add_development_dependency "rake", "11.1.0"
|
24
|
+
spec.add_development_dependency "bundler", ">= 1.3"
|
25
|
+
spec.add_development_dependency "rake", ">= 11.1.0"
|
26
26
|
spec.add_development_dependency "yard"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-bandwidth-iris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Belchikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
name: activesupport
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 4.2.7
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 4.2.7
|
83
83
|
- !ruby/object:Gem::Dependency
|
@@ -98,28 +98,28 @@ dependencies:
|
|
98
98
|
name: bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '1.3'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 11.1.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 11.1.0
|
125
125
|
- !ruby/object:Gem::Dependency
|