cpaas-sdk 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bd743f490632a5245f1c0cd2baf7187cf8623f38ded092fe0f020470445e419
4
- data.tar.gz: 4b9bfcd28a1bf3c555686f79eea6e6c10fd276a2192f4dbf28cffc3ee9d87fd4
3
+ metadata.gz: 965127ceeaf94c8385981dbd7d753f142c1b7b5368dc2e78711a168dbab479d3
4
+ data.tar.gz: 0e3a404bf31367bde1b2b86784d0ea626fde09402ec07e2260f0183ace07f66b
5
5
  SHA512:
6
- metadata.gz: 202495f68be89189d7336ce9d1a282aa35832a7699d621935d366e08d4ce720d72afcd002ee59bf0f7c5fba4e8f0e70a655fba247781c4f9b4a06b365f1e9a19
7
- data.tar.gz: 9f69c5ce0195a0dc4e88eeb2e41770d897a390bf3328218f28ae676216b4ddfa4601afbbbc223b3111ed5e145961b8ffcea78c8b44afd81e4d85d4baa729b625
6
+ metadata.gz: b0efa0dee87f22cc9c3ff5c5e9f7ae5058c165d60f6bac3250f426f7a7607f57eef4f60248acbdfb1836a8600ae7d11782e96bd1bca92d7d36f79f87827274d1
7
+ data.tar.gz: 1fa7be4903c92cfe531b1c25aa42e5256bd8434200ed3300a157a1cf819f45a11387a3e6668cb762bc0e45370bdcadf955c17703dc3d57f87d1cdf0b20021c33
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  + This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
  + The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) recommendations.
7
7
 
8
+ ## 1.2.0 - 2020-05-12
9
+
10
+ ### Added
11
+ - Added client authentication with CPaaS account credentials.
12
+
8
13
  ## 1.1.0 - 2019-12-10
9
14
 
10
15
  ### Added
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # cpaas-ruby
1
+ # Kandy CPaaS Ruby SDK
2
2
 
3
- ## Installation
3
+ ## Install
4
4
 
5
5
  Add this line to your application's Gemfile:
6
6
 
@@ -16,10 +16,13 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install cpaas-sdk
18
18
 
19
- ## Reference
19
+ ## Documentation
20
20
 
21
21
  The information about tutorials and documents can be found in the links below
22
22
 
23
- * `Documents`: [docs](https://kandy-io.github.io/kandy-cpaas-ruby-sdk/docs)
23
+ * `Documents`: [API Docs](https://kandy-io.github.io/kandy-cpaas-ruby-sdk/docs)
24
24
 
25
- * `Tutorials`: [Get Started](https://Kandy-IO.github.io/kandy-cpaas-ruby-sdk/tutorials/?KANDY=Kandy&KANDYFQDN=https://oauth-cpaas.att.com#/GetStarted)
25
+ * `Tutorials`: [User Guide](https://Kandy-IO.github.io/kandy-cpaas-ruby-sdk/tutorials/?KANDY=Kandy&KANDYFQDN=oauth-cpaas.att.com#/GetStarted)
26
+
27
+ ## Compatibility
28
+ - Ruby 2.0.0 or higher
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 2.0'
24
- spec.add_development_dependency 'rake', '~> 10.0'
24
+ spec.add_development_dependency 'rake', '>= 12.3.3'
25
25
  spec.add_development_dependency 'rspec', '~> 3.0'
26
26
  spec.add_development_dependency 'webmock', '~> 3.6.2'
27
27
  spec.add_development_dependency 'yard', '~> 0.9.20'
@@ -0,0 +1,9 @@
1
+ # Developer Notes
2
+
3
+ ## Documentation
4
+ YARD is used for documentation.
5
+
6
+ To generate, run the following command
7
+ ```bash
8
+ yardoc --no-private --readme docs/_index.md --output-dir docs
9
+ ```
@@ -78,8 +78,8 @@
78
78
 
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
- <dd>lib/cpaas.rb<span class="defines">,<br />
82
- lib/cpaas/api.rb,<br /> lib/cpaas/config.rb,<br /> lib/cpaas/version.rb,<br /> lib/cpaas/resources/twofactor.rb,<br /> lib/cpaas/resources/conversation.rb,<br /> lib/cpaas/resources/notification.rb,<br /> lib/cpaas/resources/notification_channel.rb</span>
81
+ <dd>lib/cpaas-sdk.rb<span class="defines">,<br />
82
+ lib/cpaas-sdk/api.rb,<br /> lib/cpaas-sdk/config.rb,<br /> lib/cpaas-sdk/version.rb,<br /> lib/cpaas-sdk/resources/twofactor.rb,<br /> lib/cpaas-sdk/resources/conversation.rb,<br /> lib/cpaas-sdk/resources/notification.rb,<br /> lib/cpaas-sdk/resources/notification_channel.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
@@ -107,7 +107,7 @@
107
107
  <dt id="VERSION-constant" class="">VERSION =
108
108
 
109
109
  </dt>
110
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
110
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
111
111
 
112
112
  </dl>
113
113
 
@@ -249,7 +249,7 @@
249
249
  10</pre>
250
250
  </td>
251
251
  <td>
252
- <pre class="code"><span class="info file"># File 'lib/cpaas.rb', line 8</span>
252
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk.rb', line 8</span>
253
253
 
254
254
  <span class='kw'>def</span> <span class='id identifier rubyid_api'>api</span>
255
255
  <span class='ivar'>@api</span>
@@ -292,7 +292,7 @@
292
292
  10</pre>
293
293
  </td>
294
294
  <td>
295
- <pre class="code"><span class="info file"># File 'lib/cpaas.rb', line 8</span>
295
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk.rb', line 8</span>
296
296
 
297
297
  <span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
298
298
  <span class='ivar'>@config</span>
@@ -332,11 +332,20 @@
332
332
  <p class="tag_title">Examples:</p>
333
333
 
334
334
 
335
- <pre class="example code"><code>Cpaas.configure do |config|
336
- config.client_id: &#39;&lt;private project key&gt;&#39;,
337
- config.client_secret: &#39;&lt;private project secret&gt;&#39;,
338
- config.base_url: &#39;&lt;base url&gt;&#39;
339
- end</code></pre>
335
+ <pre class="example code"><code><span class='const'><span class='object_link'><a href="" title="Cpaas (module)">Cpaas</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
336
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_client_id'>client_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>&lt;private project key&gt;</span><span class='tstring_end'>&#39;</span></span>
337
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_client_secret'>client_secret</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>&lt;private project secret&gt;</span><span class='tstring_end'>&#39;</span></span>
338
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_base_url'>base_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>https://$KANDYFQDN$</span><span class='tstring_end'>&#39;</span></span>
339
+ <span class='kw'>end</span>
340
+
341
+ <span class='comment'># or
342
+ </span>
343
+ <span class='const'><span class='object_link'><a href="" title="Cpaas (module)">Cpaas</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
344
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_client_id'>client_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>&lt;account client ID&gt;</span><span class='tstring_end'>&#39;</span></span>
345
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_email'>email</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>&lt;account email&gt;</span><span class='tstring_end'>&#39;</span></span>
346
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>&lt;account password&gt;</span><span class='tstring_end'>&#39;</span></span>
347
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_base_url'>base_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>https://$KANDYFQDN$</span><span class='tstring_end'>&#39;</span></span>
348
+ <span class='kw'>end</span></code></pre>
340
349
 
341
350
  </div>
342
351
  <p class="tag_title">Parameters:</p>
@@ -353,7 +362,25 @@ end</code></pre>
353
362
 
354
363
  &mdash;
355
364
  <div class='inline'>
356
- <p>Private project secret</p>
365
+ <p>Private project key / Account client ID. If Private project key is used
366
+ then client_secret is mandatory. If account client ID is used then email
367
+ and password are mandatory.</p>
368
+ </div>
369
+
370
+ </li>
371
+
372
+ <li>
373
+
374
+ <span class='name'>base_url</span>
375
+
376
+
377
+ <span class='type'>(<tt>String</tt>)</span>
378
+
379
+
380
+
381
+ &mdash;
382
+ <div class='inline'>
383
+ <p>URL of the server to be used.</p>
357
384
  </div>
358
385
 
359
386
  </li>
@@ -369,14 +396,14 @@ end</code></pre>
369
396
 
370
397
  &mdash;
371
398
  <div class='inline'>
372
- <p>Private project secret</p>
399
+ <p>+optional Private project secret</p>
373
400
  </div>
374
401
 
375
402
  </li>
376
403
 
377
404
  <li>
378
405
 
379
- <span class='name'>base_url</span>
406
+ <span class='name'>email</span>
380
407
 
381
408
 
382
409
  <span class='type'>(<tt>String</tt>)</span>
@@ -385,7 +412,23 @@ end</code></pre>
385
412
 
386
413
  &mdash;
387
414
  <div class='inline'>
388
- <p>JSON URL of the server to be used.</p>
415
+ <p>+optional Account login email</p>
416
+ </div>
417
+
418
+ </li>
419
+
420
+ <li>
421
+
422
+ <span class='name'>password</span>
423
+
424
+
425
+ <span class='type'>(<tt>String</tt>)</span>
426
+
427
+
428
+
429
+ &mdash;
430
+ <div class='inline'>
431
+ <p>+optional Account login password</p>
389
432
  </div>
390
433
 
391
434
  </li>
@@ -412,18 +455,22 @@ end</code></pre>
412
455
  <pre class="lines">
413
456
 
414
457
 
415
- 25
416
- 26
417
- 27
418
- 28
419
- 29</pre>
458
+ 36
459
+ 37
460
+ 38
461
+ 39
462
+ 40
463
+ 41
464
+ 42</pre>
420
465
  </td>
421
466
  <td>
422
- <pre class="code"><span class="info file"># File 'lib/cpaas.rb', line 25</span>
467
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk.rb', line 36</span>
423
468
 
424
469
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span>
425
470
  <span class='kw'>yield</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="Cpaas (module)">Cpaas</a></span></span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
426
471
 
472
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_validate'>validate</span>
473
+
427
474
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_api'>api</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="Cpaas (module)">Cpaas</a></span></span><span class='op'>::</span><span class='const'>Api</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='rparen'>)</span>
428
475
  <span class='kw'>end</span></pre>
429
476
  </td>
@@ -436,7 +483,7 @@ end</code></pre>
436
483
  </div>
437
484
 
438
485
  <div id="footer">
439
- Generated on Thu Oct 17 17:28:29 2019 by
486
+ Generated on Wed May 6 19:02:40 2020 by
440
487
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
441
488
  0.9.20 (ruby-2.5.0).
442
489
  </div>
@@ -94,7 +94,7 @@
94
94
 
95
95
  <dl>
96
96
  <dt>Defined in:</dt>
97
- <dd>lib/cpaas/resources/conversation.rb</dd>
97
+ <dd>lib/cpaas-sdk/resources/conversation.rb</dd>
98
98
  </dl>
99
99
 
100
100
  </div>
@@ -398,7 +398,7 @@
398
398
  </span>
399
399
 
400
400
  &mdash; <div class='inline'>
401
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
401
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
402
402
  Conversation.types for more options</p>
403
403
  </div>
404
404
 
@@ -427,6 +427,10 @@ let CPaaS uses the default assigned DID number, this field can either has
427
427
 
428
428
  </span>
429
429
 
430
+ &mdash; <div class='inline'>
431
+ <p>Indicates which DID number(s) used as destination for this SMS.</p>
432
+ </div>
433
+
430
434
  </li>
431
435
 
432
436
  <li>
@@ -437,7 +441,7 @@ let CPaaS uses the default assigned DID number, this field can either has
437
441
  </span>
438
442
 
439
443
  &mdash; <div class='inline'>
440
- <p>text message</p>
444
+ <p>SMS text message</p>
441
445
  </div>
442
446
 
443
447
  </li>
@@ -482,7 +486,7 @@ let CPaaS uses the default assigned DID number, this field can either has
482
486
  45</pre>
483
487
  </td>
484
488
  <td>
485
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 18</span>
489
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 18</span>
486
490
 
487
491
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_message'>create_message</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
488
492
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -565,7 +569,7 @@ let CPaaS uses the default assigned DID number, this field can either has
565
569
  </span>
566
570
 
567
571
  &mdash; <div class='inline'>
568
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
572
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
569
573
  Conversation.types for more options</p>
570
574
  </div>
571
575
 
@@ -635,7 +639,7 @@ passsed then the conversation thread is deleted with all messages.</p>
635
639
  105</pre>
636
640
  </td>
637
641
  <td>
638
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 97</span>
642
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 97</span>
639
643
 
640
644
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delete_message'>delete_message</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
641
645
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -699,7 +703,7 @@ passsed then the conversation thread is deleted with all messages.</p>
699
703
  </span>
700
704
 
701
705
  &mdash; <div class='inline'>
702
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
706
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
703
707
  Conversation.types for more options</p>
704
708
  </div>
705
709
 
@@ -898,7 +902,7 @@ gathered from the previous query results.</p>
898
902
  86</pre>
899
903
  </td>
900
904
  <td>
901
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 64</span>
905
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 64</span>
902
906
 
903
907
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_messages'>get_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
904
908
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -976,7 +980,7 @@ gathered from the previous query results.</p>
976
980
  </span>
977
981
 
978
982
  &mdash; <div class='inline'>
979
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
983
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
980
984
  Conversation.types for more options</p>
981
985
  </div>
982
986
 
@@ -1092,7 +1096,7 @@ that are sent/received after provided Epoch time</p>
1092
1096
  132</pre>
1093
1097
  </td>
1094
1098
  <td>
1095
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 119</span>
1099
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 119</span>
1096
1100
 
1097
1101
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_messages_in_thread'>get_messages_in_thread</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
1098
1102
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -1161,7 +1165,7 @@ that are sent/received after provided Epoch time</p>
1161
1165
  </span>
1162
1166
 
1163
1167
  &mdash; <div class='inline'>
1164
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
1168
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
1165
1169
  Conversation.types for more options</p>
1166
1170
  </div>
1167
1171
 
@@ -1227,7 +1231,7 @@ conversation thread is deleted with all messages.</p>
1227
1231
  147</pre>
1228
1232
  </td>
1229
1233
  <td>
1230
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 143</span>
1234
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 143</span>
1231
1235
 
1232
1236
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_status'>get_status</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
1233
1237
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -1287,7 +1291,7 @@ conversation thread is deleted with all messages.</p>
1287
1291
  </span>
1288
1292
 
1289
1293
  &mdash; <div class='inline'>
1290
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
1294
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
1291
1295
  Conversation.types for more options</p>
1292
1296
  </div>
1293
1297
 
@@ -1333,7 +1337,7 @@ Conversation.types for more options</p>
1333
1337
  193</pre>
1334
1338
  </td>
1335
1339
  <td>
1336
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 179</span>
1340
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 179</span>
1337
1341
 
1338
1342
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_subscription'>get_subscription</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
1339
1343
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -1408,7 +1412,7 @@ Conversation.types for more options</p>
1408
1412
  </span>
1409
1413
 
1410
1414
  &mdash; <div class='inline'>
1411
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
1415
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
1412
1416
  Conversation.types for more options</p>
1413
1417
  </div>
1414
1418
 
@@ -1442,7 +1446,7 @@ Conversation.types for more options</p>
1442
1446
  170</pre>
1443
1447
  </td>
1444
1448
  <td>
1445
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 155</span>
1449
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 155</span>
1446
1450
 
1447
1451
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_subscriptions'>get_subscriptions</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
1448
1452
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -1513,7 +1517,7 @@ Conversation.types for more options</p>
1513
1517
  </span>
1514
1518
 
1515
1519
  &mdash; <div class='inline'>
1516
- <p>Type of conversation. Possible values - &#39;sms&#39;. Check
1520
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
1517
1521
  Conversation.types for more options</p>
1518
1522
  </div>
1519
1523
 
@@ -1527,9 +1531,9 @@ Conversation.types for more options</p>
1527
1531
  </span>
1528
1532
 
1529
1533
  &mdash; <div class='inline'>
1530
- <p>The notification channel ID that has been acquired during
1531
- /notificationchannel API subscription, either websockets, mobile push or
1532
- webhooks type, which the incoming notifications supposed to be sent to.</p>
1534
+ <p>HTTPS URL that is present in your application server which is accessible
1535
+ from the public web where the notifications should be sent to. Note: Should
1536
+ be a POST endpoint.</p>
1533
1537
  </div>
1534
1538
 
1535
1539
  </li>
@@ -1591,7 +1595,7 @@ formatted DID number within this parameter.</p>
1591
1595
  232</pre>
1592
1596
  </td>
1593
1597
  <td>
1594
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 204</span>
1598
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 204</span>
1595
1599
 
1596
1600
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_subscribe'>subscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
1597
1601
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -1669,6 +1673,20 @@ formatted DID number within this parameter.</p>
1669
1673
  <p class="tag_title">Options Hash (<tt>params</tt>):</p>
1670
1674
  <ul class="option">
1671
1675
 
1676
+ <li>
1677
+ <span class="name">:type</span>
1678
+ <span class="type">(<tt>String</tt>)</span>
1679
+ <span class="default">
1680
+
1681
+ </span>
1682
+
1683
+ &mdash; <div class='inline'>
1684
+ <p>Type of conversation. Possible value(s) - &#39;sms&#39;. Check
1685
+ Conversation.types for more options</p>
1686
+ </div>
1687
+
1688
+ </li>
1689
+
1672
1690
  <li>
1673
1691
  <span class="name">:subscription_id</span>
1674
1692
  <span class="type">(<tt>String</tt>)</span>
@@ -1692,7 +1710,6 @@ formatted DID number within this parameter.</p>
1692
1710
  <pre class="lines">
1693
1711
 
1694
1712
 
1695
- 241
1696
1713
  242
1697
1714
  243
1698
1715
  244
@@ -1704,10 +1721,11 @@ formatted DID number within this parameter.</p>
1704
1721
  250
1705
1722
  251
1706
1723
  252
1707
- 253</pre>
1724
+ 253
1725
+ 254</pre>
1708
1726
  </td>
1709
1727
  <td>
1710
- <pre class="code"><span class="info file"># File 'lib/cpaas/resources/conversation.rb', line 241</span>
1728
+ <pre class="code"><span class="info file"># File 'lib/cpaas-sdk/resources/conversation.rb', line 242</span>
1711
1729
 
1712
1730
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_unsubscribe'>unsubscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1713
1731
  <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='symbol'>:SMS</span><span class='rbracket'>]</span>
@@ -1732,7 +1750,7 @@ formatted DID number within this parameter.</p>
1732
1750
  </div>
1733
1751
 
1734
1752
  <div id="footer">
1735
- Generated on Thu Oct 17 17:28:29 2019 by
1753
+ Generated on Wed May 6 19:02:40 2020 by
1736
1754
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1737
1755
  0.9.20 (ruby-2.5.0).
1738
1756
  </div>