plivo 4.16.0 → 4.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/unitTests.yml +32 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +225 -0
- data/Dockerfile +12 -0
- data/Gemfile +1 -0
- data/Makefile +18 -0
- data/README.md +389 -20
- data/docker-compose.yml +18 -0
- data/examples/tollfree_verification.rb +42 -0
- data/lib/plivo/base/resource.rb +30 -0
- data/lib/plivo/base/resource_interface.rb +18 -2
- data/lib/plivo/base.rb +3 -3
- data/lib/plivo/base_client.rb +9 -9
- data/lib/plivo/interactive.rb +139 -0
- data/lib/plivo/location.rb +22 -0
- data/lib/plivo/resources/brand.rb +98 -0
- data/lib/plivo/resources/call_feedback.rb +0 -1
- data/lib/plivo/resources/calls.rb +183 -29
- data/lib/plivo/resources/campaign.rb +168 -0
- data/lib/plivo/resources/messages.rb +392 -58
- data/lib/plivo/resources/multipartycalls.rb +637 -0
- data/lib/plivo/resources/numbers.rb +40 -7
- data/lib/plivo/resources/profile.rb +93 -0
- data/lib/plivo/resources/recordings.rb +29 -2
- data/lib/plivo/resources/token.rb +66 -0
- data/lib/plivo/resources/tollfree_verification.rb +178 -0
- data/lib/plivo/resources/verify_caller_id.rb +110 -0
- data/lib/plivo/resources/verify_session.rb +106 -0
- data/lib/plivo/resources.rb +8 -0
- data/lib/plivo/rest_client.rb +14 -1
- data/lib/plivo/template.rb +102 -0
- data/lib/plivo/utils.rb +112 -1
- data/lib/plivo/version.rb +1 -1
- data/lib/plivo/xml/cont.rb +13 -0
- data/lib/plivo/xml/dial.rb +1 -1
- data/lib/plivo/xml/element.rb +9 -2
- data/lib/plivo/xml/emphasis.rb +1 -1
- data/lib/plivo/xml/lang.rb +1 -1
- data/lib/plivo/xml/multipartycall.rb +216 -0
- data/lib/plivo/xml/p.rb +1 -1
- data/lib/plivo/xml/plivo_xml.rb +2 -2
- data/lib/plivo/xml/prosody.rb +1 -1
- data/lib/plivo/xml/response.rb +1 -1
- data/lib/plivo/xml/s.rb +1 -1
- data/lib/plivo/xml/speak.rb +1 -1
- data/lib/plivo/xml/stream.rb +27 -0
- data/lib/plivo/xml/w.rb +1 -1
- data/lib/plivo/xml.rb +3 -1
- data/plivo.gemspec +1 -2
- data/setup_sdk.sh +47 -0
- metadata +24 -19
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcdea3382ce47522a95bff0850bcc67a582ebb54
|
4
|
+
data.tar.gz: 77652b31e99304dc2166f94fa9e7b5384d0c5fe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dda1d4228d6a950a364da677d7fc561a090e79cf83991c4a14659bf1f37f56229c029fd3f12a1f0e8e6dfc3d3a38237d54dca200095c0e7873025d924285e9ec
|
7
|
+
data.tar.gz: e7e0832bb62f63262843787afc5a2107474c4e1133e3ef8b6cb088b8e0d32b15eb3de8afa2731b243af720fc26a908946539051140f8f134f9516c5027d130d1
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: UnitTest
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ unitTests ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: UnitTest
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby-version: [ '2.6' ,'2.7', '3.0' ]
|
16
|
+
|
17
|
+
steps:
|
18
|
+
- name: Checkout
|
19
|
+
uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
- name: Dependencies Installation
|
25
|
+
run: |
|
26
|
+
bundle install --without development
|
27
|
+
- name: Run Tests
|
28
|
+
run: |
|
29
|
+
ruby --version
|
30
|
+
bundle exec rake
|
31
|
+
rm Gemfile.lock
|
32
|
+
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,230 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [4.58.0](https://github.com/plivo/plivo-ruby/tree/v4.58.0) (2023-05-17)
|
4
|
+
**Feature - Adding support for location whatsapp messages**
|
5
|
+
- Added new param `location` to [send message API](https://www.plivo.com/docs/sms/api/message#send-a-message) to support location `whatsapp` messages
|
6
|
+
- Added new param `location` in templates to support location based templated messages
|
7
|
+
|
8
|
+
## [4.57.0](https://github.com/plivo/plivo-ruby/tree/v4.57.0) (2023-05-07)
|
9
|
+
**Feature - Adding support for interactive whatsapp messages**
|
10
|
+
- Added new param `interactive` to [send message API](https://www.plivo.com/docs/sms/api/message#send-a-message) to support interactive `whatsapp` messages
|
11
|
+
|
12
|
+
## [4.56.0](https://github.com/plivo/plivo-ruby/tree/v4.56.0) (2023-04-18)
|
13
|
+
**Feature - Support for dynamic button components when sending a templated WhatsApp message**
|
14
|
+
- Added new param `payload` in templates to support dynamic payload in templates
|
15
|
+
|
16
|
+
## [4.55.2](https://github.com/plivo/plivo-ruby/tree/v4.55.2) (2024-02-28)
|
17
|
+
**Feature - Log Redaction Enhancement**
|
18
|
+
- Added log attribute in GET and List MDR response
|
19
|
+
- Change log field from bool to string in send SMS
|
20
|
+
|
21
|
+
## [4.55.1](https://github.com/plivo/plivo-ruby/tree/v4.55.1) (2024-01-08)
|
22
|
+
**Feature - Added New Param 'type' for Speak Api**
|
23
|
+
- Added new param "type" for speak api
|
24
|
+
|
25
|
+
## [4.55.0](https://github.com/plivo/plivo-ruby/tree/v4.55.0) (2023-11-20)
|
26
|
+
**Feature - Added New Param 'registration_status' for Campaign List**
|
27
|
+
- Added new query param "registration_status" for campaign list
|
28
|
+
|
29
|
+
## [4.54.0](https://github.com/plivo/plivo-ruby/tree/v4.54.0) (2023-11-17)
|
30
|
+
**Feature - Verify Caller Id API support**
|
31
|
+
- API support for verifying, updating, getting and deleting caller IDs.
|
32
|
+
|
33
|
+
## [4.53.1](https://github.com/plivo/plivo-ruby/tree/v4.53.1) (2023-11-09)
|
34
|
+
**Feature - Verify Service**
|
35
|
+
-Added Support for Verify Service Public API
|
36
|
+
-Create Session API : To create a verify session. Allowed params recipient, method, channel, callback_url, app_uuid
|
37
|
+
-Get Session API: To retrieve a particular session
|
38
|
+
-List Sessions : To retrieve all the sessions
|
39
|
+
-Validate Session : To validate OTP for a particular session
|
40
|
+
|
41
|
+
## [4.52.0](https://github.com/plivo/plivo-ruby/tree/v4.52.0) (2023-11-08)
|
42
|
+
**[BETA] Feature - TollFree Verification API Support**
|
43
|
+
- API support for Create, Update, Get, Delete, and List Tollfree Verification.
|
44
|
+
- Added New Param `toll_free_sms_verification_id` and `toll_free_sms_verification_order_status` in to the response of the [list all numbers API], [list single number API]
|
45
|
+
- Added `toll_free_sms_verification_order_status` filter to AccountPhoneNumber - list all my numbers API.
|
46
|
+
|
47
|
+
## [4.51.0](https://github.com/plivo/plivo-ruby/tree/v4.51.0) (2023-10-16)
|
48
|
+
**Introducing campaign_source & import partner camapign API**
|
49
|
+
- New field campaign_source introduced
|
50
|
+
- Import partner campaign API added
|
51
|
+
|
52
|
+
## [4.50.0](https://github.com/plivo/plivo-ruby/tree/v4.50.0) (2023-10-13)
|
53
|
+
**Feature - WhatsApp message support**
|
54
|
+
- Added new params `template` and new message_type `whatsapp` to [send message API](https://www.plivo.com/docs/sms/api/message#send-a-message)
|
55
|
+
- Added new `message_state` (`read`), `message_type`(`whatsapp`), `conversation_id`, `conversation_origin`, `conversation_expiration_timestamp` in [list all messages API](https://www.plivo.com/docs/sms/api/message#list-all-messages) and [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) response
|
56
|
+
|
57
|
+
## [4.49.0](https://github.com/plivo/plivo-ruby/tree/v4.49.0) (2023-09-13)
|
58
|
+
**Removing the faraday_middleware dependency and upgrade to farady latest version
|
59
|
+
|
60
|
+
## [4.48.0](https://github.com/plivo/plivo-ruby/tree/v4.48.0) (2023-08-25)
|
61
|
+
**Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs**
|
62
|
+
- Added new params on message get and list response
|
63
|
+
|
64
|
+
|
65
|
+
## [4.47.0](https://github.com/plivo/plivo-ruby/tree/v4.47.0) (2023-08-03)
|
66
|
+
**Feature - DLT parameters**
|
67
|
+
- Added new params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory` to the [send message API](https://www.plivo.com/docs/sms/api/message/send-a-message/)
|
68
|
+
- Added new params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
|
69
|
+
|
70
|
+
## [4.46.0](https://github.com/plivo/plivo-ruby/tree/v4.46.0) (2023-06-28)
|
71
|
+
**Feature - Audio Streaming**
|
72
|
+
- Added functionality to start, stop and fetch audio streams
|
73
|
+
- Added functionality to create stream XML
|
74
|
+
|
75
|
+
## [4.45.0](https://github.com/plivo/plivo-ruby/tree/v4.45.0) (2023-05-02)
|
76
|
+
**Feature - CNAM Lookup**
|
77
|
+
- Added New Param `cnam_lookup` in to the response of the [list all numbers API], [list single number API]
|
78
|
+
- Added `cnam_lookup` filter to AccountPhoneNumber - list all my numbers API.
|
79
|
+
- Added `cnam_lookup` parameter to buy number[Buy a Phone Number] to configure CNAM Lookup while buying a US number
|
80
|
+
- Added `cnam_lookup` parameter to update number[Update an account phone number] to configure CNAM Lookup while buying a US number
|
81
|
+
|
82
|
+
|
83
|
+
## [4.44.0](https://github.com/plivo/plivo-ruby/tree/v4.38.2) (2023-03-16)
|
84
|
+
**Feature : Added new param in getCallDetail api**
|
85
|
+
- From now on we can see CNAM(Caller_id name) details at CDR level.
|
86
|
+
|
87
|
+
## [4.43.0](https://github.com/plivo/plivo-ruby/tree/v4.43.0) (2023-05-29)
|
88
|
+
**Feature - Recording API changes**
|
89
|
+
- Added `monthly_recording_storage_amount`, `recording_storage_rate`, `rounded_recording_duration`, and `recording_storage_duration` parameters to the response for [get single recording API](https://www.plivo.com/docs/voice/api/recording#retrieve-a-recording) and [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings)
|
90
|
+
- Added `recording_storage_duration` parameter as a filter option for [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings)
|
91
|
+
|
92
|
+
## [4.42.0](https://github.com/plivo/plivo-ruby/tree/v4.42.0) (2023-05-04)
|
93
|
+
**Adding new attribute - 'renewalDate' in Get Number and List Number APIs**
|
94
|
+
- Add New Param `renewalDate` to the response of the [list all numbers API], [list single number API]
|
95
|
+
- Add 3 new filters to AccountPhoneNumber - list all my numbers API:`renewal_date`, `renewal_date__gt`, `renewal_date__gte`,`renewal_date__lt` and `renewal_date__lte` (https://www.plivo.com/docs/numbers/api/account-phone-number#list-all-my-numbers)
|
96
|
+
|
97
|
+
## [4.41.0](https://github.com/plivo/plivo-ruby/tree/v4.41.0) (2023-04-25)
|
98
|
+
**Adding new attribute - 'replaced_sender' in Get Message and List Message APIs**
|
99
|
+
- Add `replaced_sender` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
|
100
|
+
|
101
|
+
## [4.40.0](https://github.com/plivo/plivo-ruby/tree/v4.37.0) (2023-04-11)
|
102
|
+
**Feature - Added New Param 'source_ip' in GetCall and ListCalls**
|
103
|
+
- Add `source_ip` to the response for the [retrieve a call details API](https://www.plivo.com/docs/voice/api/call#retrieve-a-call) and the [retreive all call details API](https://www.plivo.com/docs/voice/api/call#retrieve-all-calls)
|
104
|
+
|
105
|
+
## [4.39.0](https://github.com/plivo/plivo-ruby/tree/v4.39.0) (2023-03-17)
|
106
|
+
**Adding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs**
|
107
|
+
- dding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs
|
108
|
+
|
109
|
+
## [4.38.1](https://github.com/plivo/plivo-ruby/tree/v4.38.1) (2023-03-06)
|
110
|
+
**Bug fix on create message**
|
111
|
+
- Bulk send message fix
|
112
|
+
|
113
|
+
## [4.38.0](https://github.com/plivo/plivo-ruby/tree/v4.38.0) (2023-03-03)
|
114
|
+
**Adding new attribute - 'is_domestic' in Get Message and List Message APIs**
|
115
|
+
- Add `is_domestic` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
|
116
|
+
|
117
|
+
## [4.37.1](https://github.com/plivo/plivo-ruby/tree/v4.37.1) (2023-02-23)
|
118
|
+
**Bug fix on Messaging object **
|
119
|
+
-
|
120
|
+
## [4.37.0](https://github.com/plivo/plivo-ruby/tree/v4.37.0) (2023-02-23)
|
121
|
+
**Feature - Enhance MDR filtering capabilities **
|
122
|
+
- Added new fields on MDR object response
|
123
|
+
|
124
|
+
## [4.37.0](https://github.com/plivo/plivo-ruby/tree/v4.37.0) (2023-02-06)
|
125
|
+
**Feature - Added New Param 'source_ip' in GetCall and ListCalls**
|
126
|
+
- Add `source_ip` to the response for the [retrieve a call details API](https://www.plivo.com/docs/voice/api/call#retrieve-a-call) and the [retreive all call details API](https://www.plivo.com/docs/voice/api/call#retrieve-all-calls)
|
127
|
+
|
128
|
+
## [4.36.0](https://github.com/plivo/plivo-ruby/tree/v4.36.0) (2022-01-25)
|
129
|
+
**Adding new attribute - 'requester_ip' in Get Message and List Mssage APIs**
|
130
|
+
- Add `requester_ip` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
|
131
|
+
|
132
|
+
## [4.35.0](https://github.com/plivo/plivo-ruby/tree/v4.35.0) (2022-01-18)
|
133
|
+
**Adding new attribute - 'message_expiry' in Send Message API**
|
134
|
+
- Added new attribute - message_expiry in Send Message API
|
135
|
+
|
136
|
+
## [4.34.0](https://github.com/plivo/plivo-ruby/tree/v4.34.0) (2022-12-16)
|
137
|
+
**10DLC: Update Campaign API**
|
138
|
+
- Added Update Campaign API
|
139
|
+
|
140
|
+
## [4.33.0](https://github.com/plivo/plivo-ruby/tree/v4.33.0) (2022-12-06)
|
141
|
+
**10DLC: Delete Campaign and Brand API**
|
142
|
+
- Added Delete campaign and brand API
|
143
|
+
|
144
|
+
## [4.32.0](https://github.com/plivo/plivo-ruby/tree/v4.32.0) (2022-11-03)
|
145
|
+
**10DLC: Brand Usecase API**
|
146
|
+
- Added Brand Usecase API
|
147
|
+
|
148
|
+
## [4.31.0](https://github.com/plivo/plivo-ruby/tree/v4.31.0) (2022-10-14)
|
149
|
+
**Adding new attributes to Account PhoneNumber object**
|
150
|
+
-Added 3 new keys to AccountPhoneNumber object:`tendlc_registration_status`, `tendlc_campaign_id` and `toll_free_sms_verification` (https://www.plivo.com/docs/numbers/api/account-phone-number#the-accountphonenumber-object)
|
151
|
+
-Added 3 new filters to AccountPhoneNumber - list all my numbers API:`tendlc_registration_status`, `tendlc_campaign_id` and `toll_free_sms_verification` (https://www.plivo.com/docs/numbers/api/account-phone-number#list-all-my-numbers)
|
152
|
+
|
153
|
+
## [4.30.2](https://github.com/plivo/plivo-ruby/tree/v4.30.2) (2022-09-28)
|
154
|
+
**10DLC: Campaign request**
|
155
|
+
- Added more attributes to create campaign request
|
156
|
+
|
157
|
+
## [4.30.1](https://github.com/plivo/plivo-ruby/tree/v4.30.1) (2022-09-20)
|
158
|
+
**stability - faraday upgrade**
|
159
|
+
- faraday version upgrade
|
160
|
+
|
161
|
+
## [4.30.0](https://github.com/plivo/plivo-ruby/tree/v4.30.0) (2022-08-26)
|
162
|
+
**Feature - 10DLC APIs**
|
163
|
+
- Added new 10DLC APIs
|
164
|
+
|
165
|
+
## [4.29.0](https://github.com/plivo/plivo-ruby/tree/v4.29.0) (2022-08-01)
|
166
|
+
**Feature - Token Creation**
|
167
|
+
- `JWT Token Creation API` added functionality to create a new JWT token.
|
168
|
+
|
169
|
+
## [4.28.0](https://github.com/plivo/plivo-ruby/tree/v4.28.0) (2022-07-11)
|
170
|
+
**Feature - STIR Attestation**
|
171
|
+
- Add stir attestation param as part of Get CDR and Get live call APIs Response
|
172
|
+
|
173
|
+
## [4.27.1](https://github.com/plivo/plivo-ruby/tree/v4.27.1) (2022-06-30)
|
174
|
+
- `from_number`, `to_number` and `stir_verification` added to filter param [Retrieve all calls] (https://www.plivo.com/docs/voice/api/call#retrieve-all-calls)
|
175
|
+
|
176
|
+
## [4.27.0](https://github.com/plivo/plivo-ruby/tree/v4.27.0) (2022-05-05)
|
177
|
+
**Feature - List all recordings**
|
178
|
+
- `from_number` and `to_number` added to filter param [List all recordings](https://www.plivo.com/docs/voice/api/recording#list-all-recordings)
|
179
|
+
- `record_min_member_count` param added to [Add a participant to a multiparty call using API](https://www.plivo.com/docs/voice/api/multiparty-call/participants#add-a-participant)
|
180
|
+
|
181
|
+
## [4.26.0](https://github.com/plivo/plivo-ruby/tree/v4.26.0) (2022-03-24)
|
182
|
+
**Feature - DialElement**
|
183
|
+
- `confirmTimeout` parameter added to [The Dial element](https://www.plivo.com/docs/voice/xml/dial/)
|
184
|
+
|
185
|
+
## [4.25.1](https://github.com/plivo/plivo-ruby/tree/v4.25.1) (2022-02-02)
|
186
|
+
**Bugfix - Recording**
|
187
|
+
- Fix for Start Recording API response issue
|
188
|
+
|
189
|
+
## [4.25.0](https://github.com/plivo/plivo-ruby/tree/v4.25.0) (2022-01-27)
|
190
|
+
**Features - MPCStartCallRecording**
|
191
|
+
- parameter name change from statusCallback to recordingCallback
|
192
|
+
|
193
|
+
## [4.24.0](https://github.com/plivo/plivo-ruby/tree/v4.24.0) (2021-12-14)
|
194
|
+
**Features - Voice**
|
195
|
+
- Routing SDK traffic through Akamai endpoints for all the [Voice APIs](https://www.plivo.com/docs/voice/api/overview/)
|
196
|
+
|
197
|
+
## [4.23.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.23.0) (2021-12-02)
|
198
|
+
**Features - Messaging: 10 DLC**
|
199
|
+
- 10DLC API's for brand and campaign support.
|
200
|
+
|
201
|
+
## [4.22.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.22.0) (2021-11-11)
|
202
|
+
**Features - Voice: Multiparty call**
|
203
|
+
- The [Add Multiparty Call API](https://www.plivo.com/docs/voice/api/multiparty-call/participants#add-a-participant) allows for greater functionality by accepting options like `start recording audio`, `stop recording audio`, and their HTTP methods.
|
204
|
+
- [Multiparty Calls](https://www.plivo.com/docs/voice/api/multiparty-call/) now has new APIs to `stop` and `play` audio.
|
205
|
+
|
206
|
+
## [4.21.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.21.0) (2021-10-11)
|
207
|
+
**Features - Messaging**
|
208
|
+
- This version includes advancements to the Messaging Interface that deals with the [Send SMS/MMS](https://www.plivo.com/docs/sms/api/message#send-a-message) interface, Creating a standard structure for `request/input` arguments to make implementation easier and incorporating support for the older interface.
|
209
|
+
|
210
|
+
Example for [send SMS](https://github.com/plivo/plivo-ruby#send-a-message)
|
211
|
+
|
212
|
+
## [4.20.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.20.0) (2021-08-04)
|
213
|
+
- Added continue speak XML element support.
|
214
|
+
|
215
|
+
## [4.19.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.19.0) (2021-07-19)
|
216
|
+
- Add support for Voice MultiPartyCall APIs (includes retry) and XML, validate voice UTs
|
217
|
+
|
218
|
+
## [4.18.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.18.0) (2021-07-13)
|
219
|
+
- Power pack ID has been included to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message).
|
220
|
+
- Support for filtering messages by Power pack ID has been added to the [list all messages API](https://www.plivo.com/docs/sms/api/message#list-all-messages).
|
221
|
+
|
222
|
+
## [4.17.1](https://github.com/plivo/plivo-ruby/releases/tag/v4.17.1) (2021-06-18)
|
223
|
+
- **WARNING**: Remove total_count field from meta data for list MDR response
|
224
|
+
|
225
|
+
## [4.17.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.17.0) (2021-06-15)
|
226
|
+
- Added stir verification param as part of Get CDR and live call APIs response.
|
227
|
+
|
3
228
|
## [4.16.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.16.0) (2021-02-08)
|
4
229
|
- Add support for Regulatory Compliance APIs.
|
5
230
|
|
data/Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
FROM ruby:3.0.1-alpine
|
2
|
+
|
3
|
+
RUN apk update && apk add git vim bash make gcc musl-dev
|
4
|
+
|
5
|
+
WORKDIR /usr/src/app
|
6
|
+
RUN gem install json --source 'https://rubygems.org/'
|
7
|
+
|
8
|
+
# Copy setup script
|
9
|
+
COPY setup_sdk.sh /usr/src/app/
|
10
|
+
RUN chmod a+x /usr/src/app/setup_sdk.sh
|
11
|
+
|
12
|
+
ENTRYPOINT [ "/usr/src/app/setup_sdk.sh" ]
|
data/Gemfile
CHANGED
data/Makefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
.PHONY: build test
|
2
|
+
|
3
|
+
build:
|
4
|
+
docker-compose up --build --remove-orphans
|
5
|
+
|
6
|
+
start:
|
7
|
+
docker-compose up --build --remove-orphans --detach
|
8
|
+
docker attach $(shell docker-compose ps -q rubySDK)
|
9
|
+
|
10
|
+
test:
|
11
|
+
@[ "${CONTAINER}" ] && \
|
12
|
+
docker exec -it $$CONTAINER /bin/bash -c "bundle exec rake" || \
|
13
|
+
bundle exec rake
|
14
|
+
|
15
|
+
run:
|
16
|
+
@[ "${CONTAINER}" ] && \
|
17
|
+
(docker exec -it $$CONTAINER /bin/bash -c 'cd /usr/src/app/ruby-sdk-test/ && ruby test.rb') || \
|
18
|
+
(cd /usr/src/app/ruby-sdk-test/ && ruby test.rb)
|