tsms 0.1.3

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.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +60 -0
  4. data/LICENSE +22 -0
  5. data/README.md +107 -0
  6. data/Rakefile +7 -0
  7. data/fixtures/vcr_cassettes/account_api_get_balance.yml +49 -0
  8. data/fixtures/vcr_cassettes/email_sms_api_add_email.yml +49 -0
  9. data/fixtures/vcr_cassettes/email_sms_api_delete_email.yml +49 -0
  10. data/fixtures/vcr_cassettes/keywords_api_add_keyword.yml +49 -0
  11. data/fixtures/vcr_cassettes/keywords_api_edit_keyword.yml +49 -0
  12. data/fixtures/vcr_cassettes/keywords_api_get_keywords.yml +50 -0
  13. data/fixtures/vcr_cassettes/lists_api_add_list.yml +49 -0
  14. data/fixtures/vcr_cassettes/lists_api_add_to_list.yml +50 -0
  15. data/fixtures/vcr_cassettes/lists_api_delete_from_list.yml +49 -0
  16. data/fixtures/vcr_cassettes/lists_api_edit_list_member.yml +50 -0
  17. data/fixtures/vcr_cassettes/lists_api_get_list.yml +60 -0
  18. data/fixtures/vcr_cassettes/lists_api_get_lists.yml +61 -0
  19. data/fixtures/vcr_cassettes/lists_api_optout_list_member.yml +49 -0
  20. data/fixtures/vcr_cassettes/lists_api_remove_list.yml +49 -0
  21. data/fixtures/vcr_cassettes/numbers_api_get_number.yml +49 -0
  22. data/fixtures/vcr_cassettes/numbers_api_get_numbers.yml +49 -0
  23. data/fixtures/vcr_cassettes/numbers_api_lease_number.yml +50 -0
  24. data/fixtures/vcr_cassettes/resellers_api_add_client.yml +49 -0
  25. data/fixtures/vcr_cassettes/resellers_api_edit_client.yml +40 -0
  26. data/fixtures/vcr_cassettes/resellers_api_get_client.yml +50 -0
  27. data/fixtures/vcr_cassettes/resellers_api_get_clients.yml +59 -0
  28. data/fixtures/vcr_cassettes/resellers_api_get_transaction.yml +51 -0
  29. data/fixtures/vcr_cassettes/resellers_api_get_transactions.yml +61 -0
  30. data/fixtures/vcr_cassettes/sms_api_test_cancel_sms.yml +50 -0
  31. data/fixtures/vcr_cassettes/sms_api_test_format_number.yml +49 -0
  32. data/fixtures/vcr_cassettes/sms_api_test_format_number_fail_in_missing_msisdn.yml +50 -0
  33. data/fixtures/vcr_cassettes/sms_api_test_get_message_log.yml +50 -0
  34. data/fixtures/vcr_cassettes/sms_api_test_get_sms_info.yml +49 -0
  35. data/fixtures/vcr_cassettes/sms_api_test_get_sms_info_fail_for_not_existing_message_id.yml +50 -0
  36. data/fixtures/vcr_cassettes/sms_api_test_get_sms_responses.yml +53 -0
  37. data/fixtures/vcr_cassettes/sms_api_test_get_sms_sent.yml +50 -0
  38. data/fixtures/vcr_cassettes/sms_api_test_get_user_sms_responses.yml +49 -0
  39. data/fixtures/vcr_cassettes/sms_api_test_message_reply.yml +49 -0
  40. data/fixtures/vcr_cassettes/sms_api_test_send.yml +49 -0
  41. data/fixtures/vcr_cassettes/sms_api_test_send_missing_to_and_list_id.yml +50 -0
  42. data/fixtures/vcr_cassettes/sms_api_test_send_with_list_id.yml +50 -0
  43. data/geminstall.sh +1 -0
  44. data/lib/account_api.rb +80 -0
  45. data/lib/email_api.rb +137 -0
  46. data/lib/keywords_api.rb +224 -0
  47. data/lib/lists_api.rb +523 -0
  48. data/lib/monkey.rb +90 -0
  49. data/lib/numbers_api.rb +188 -0
  50. data/lib/resellers_api.rb +379 -0
  51. data/lib/ruby-transmitsms.rb +16 -0
  52. data/lib/sms_api.rb +550 -0
  53. data/lib/swagger/configuration.rb +22 -0
  54. data/lib/swagger/request.rb +212 -0
  55. data/lib/swagger/response.rb +70 -0
  56. data/lib/swagger/version.rb +4 -0
  57. data/lib/swagger.rb +84 -0
  58. data/ruby-transmitsms.gemspec +34 -0
  59. data/runtest.sh +8 -0
  60. data/setup.sh +1 -0
  61. data/spec/account_api_spec.rb +30 -0
  62. data/spec/email_sms_api_spec.rb +40 -0
  63. data/spec/keywords_api_spec.rb +56 -0
  64. data/spec/lists_api_spec.rb +117 -0
  65. data/spec/numbers_api_spec.rb +53 -0
  66. data/spec/resellers_api_spec.rb +85 -0
  67. data/spec/sms_api_spec.rb +174 -0
  68. data/spec/spec.opts +4 -0
  69. metadata +233 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2f94948c91145ba3e36f4859d3f10dead0ea40959d064fd3864becbb01a24031
4
+ data.tar.gz: 2349f2d56d16c4c86431cd05606d285b7307988dff5a7b7c3384c540de13e890
5
+ SHA512:
6
+ metadata.gz: 82d08f4264b290951db6058fc874e09bb4ba0ec21674aead04881eb2240c9b27990f633e06e87409929c6530220678e2715b5a59f9e0609e20c0248de6e02850
7
+ data.tar.gz: a6979488fcb6487866d25718cedc77ad8dc6555aa36e6fb14123278ee304e41512a6f5a47cecd81d7816c9116757bebcc4364ef38c3b43d1841c49a2ae571f31
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify dependencies in swagger.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ruby-transmitsms (0.1.1)
5
+ addressable (>= 2.2.4)
6
+ json (>= 2.0.0)
7
+ typhoeus (>= 0.2.1)
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ addressable (2.5.1)
13
+ public_suffix (~> 2.0, >= 2.0.2)
14
+ crack (0.4.3)
15
+ safe_yaml (~> 1.0.0)
16
+ diff-lcs (1.3)
17
+ ethon (0.10.1)
18
+ ffi (>= 1.3.0)
19
+ ffi (1.9.18)
20
+ hashdiff (0.3.2)
21
+ json (2.1.0)
22
+ power_assert (0.4.1)
23
+ public_suffix (2.0.5)
24
+ rspec (3.5.0)
25
+ rspec-core (~> 3.5.0)
26
+ rspec-expectations (~> 3.5.0)
27
+ rspec-mocks (~> 3.5.0)
28
+ rspec-core (3.5.4)
29
+ rspec-support (~> 3.5.0)
30
+ rspec-expectations (3.5.0)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.5.0)
33
+ rspec-mocks (3.5.0)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.5.0)
36
+ rspec-support (3.5.0)
37
+ safe_yaml (1.0.4)
38
+ test-unit (3.2.3)
39
+ power_assert
40
+ typhoeus (1.1.2)
41
+ ethon (>= 0.9.0)
42
+ vcr (3.0.3)
43
+ webmock (3.0.1)
44
+ addressable (>= 2.3.6)
45
+ crack (>= 0.3.2)
46
+ hashdiff
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ rspec (>= 2.5.0)
53
+ rspec-mocks
54
+ ruby-transmitsms!
55
+ test-unit (>= 3.0.0)
56
+ vcr (>= 2.9.3)
57
+ webmock (>= 1.21.0)
58
+
59
+ BUNDLED WITH
60
+ 1.14.6
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Transmitsms
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/README.md ADDED
@@ -0,0 +1,107 @@
1
+ ruby-transmitsms
2
+ ================
3
+
4
+ Ruby gem to easily access TransmitSMS RESTful APIs
5
+
6
+ [![Gem Version](https://badge.fury.io/rb/ruby-transmitsms.svg)](http://badge.fury.io/rb/ruby-transmitsms)
7
+
8
+ ### Sample Usage
9
+ ```ruby
10
+ require 'ruby-transmitsms'
11
+
12
+ # Create new Sms instance using API key and secret
13
+ sms = SmsApi.new("15eg266c832fb23c4d90f01055aef355", "bluebird")
14
+
15
+ # Send a message
16
+ response = sms.send("Hello, world", "61455123456")
17
+
18
+ # Show the result
19
+ puts response.code
20
+ puts response.body
21
+ ```
22
+
23
+ ### Installation
24
+ ```sh
25
+ gem install ruby-transmitsms
26
+ ```
27
+
28
+ ### Installation with `bundler`'s Gemfile
29
+ gem "ruby-transmitsms"
30
+
31
+ ## Development
32
+
33
+ ### To install the required gems:
34
+ ```sh
35
+ $ ./setup.sh
36
+ ```
37
+
38
+ ### To run the tests:
39
+ ```sh
40
+ $ ./runtest.sh
41
+ ```
42
+ ## API
43
+
44
+ ### SmsApi
45
+
46
+ Instance method parameter documentation: [SmsApi Method Params Doc](http://support.burstsms.com/hc/en-us/sections/200421838-SMS)
47
+
48
+ * send
49
+ * format_number
50
+ * get_sms
51
+ * get_sms_responses
52
+ * get_user_sms_responses
53
+ * get_sms_sent
54
+ * cancel_sms
55
+
56
+ ### ListsApi
57
+
58
+ Instance method parameter documentation: [ListsApi Method Params Doc](http://support.burstsms.com/hc/en-us/sections/200423538-Lists)
59
+
60
+ * remove_list
61
+ * get_list
62
+ * get_lists
63
+ * add_list
64
+ * add_to_list
65
+ * delete_from_list
66
+ * optout_list_member
67
+ * edit_list_member
68
+
69
+ ### NumbersApi
70
+
71
+ Instance method parameter documentation: [NumbersApi Method Params Doc](http://support.burstsms.com/hc/en-us/sections/200434387-Numbers)
72
+
73
+ * get_number
74
+ * get_numbers
75
+ * lease_number
76
+
77
+ ### EmailApi
78
+
79
+ Instance method parameter documentation: [EmailApi Method Params Doc](http://support.burstsms.com/hc/en-us/sections/200434397-Email-SMS)
80
+
81
+ * add_email
82
+ * delete_email
83
+
84
+ ### KeywordsApi
85
+
86
+ Instance method parameter documentation: [KeywordsApi Method Params Doc](http://support.burstsms.com/hc/en-us/sections/200434407-Keywords)
87
+
88
+ * add_keyword
89
+ * edit_keyword
90
+ * get_keywords
91
+
92
+ ### ResellersApi
93
+
94
+ Instance method parameter documentation: [ResellersApi Method Params Doc](http://support.burstsms.com/hc/en-us/sections/200423648-Resellers)
95
+
96
+ * get_client
97
+ * get_clients
98
+ * add_client
99
+ * edit_client
100
+ * get_transactions
101
+ * get_transaction
102
+
103
+ ### AccountApi
104
+
105
+ Instance method parameter documentation: [AccountApi Method Params Doc](http://support.burstsms.com/hc/en-us/sections/200204619-Account)
106
+
107
+ * get_balance
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rspec/core/rake_task'
5
+ require 'swagger'
6
+
7
+ RSpec::Core::RakeTask.new('spec')
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/get-balance.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 06:58:09 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"balance":496227.614,"currency":"SGD","error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 06:58:09 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/add-email.json?email=test@email.com
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 05:52:05 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"success":true,"error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 05:52:05 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/delete-email.json?email=test@email.com
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 06:07:55 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"success":true,"error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 06:07:55 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/add-keyword.json?keyword=NEWS&number=61422222222
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 07:10:59 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"keyword":"NEWS","reference":"","number":61422222222,"list_id":0,"welcome_message":"","member_message":"","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2015-05-28","error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 07:10:59 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/edit-keyword.json?keyword=NEWS&number=61422222222
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 07:15:37 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"keyword":"NEWS","reference":"","number":61422222222,"list_id":0,"welcome_message":"","member_message":"","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2015-05-28","error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 07:15:37 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/get-keywords.json?number=61422222222
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 07:18:06 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"page":{"count":1,"number":1},"keywords_total":6,"keywords":[{"keyword":"","reference":"wefwefwefwef","number":61422222222,"list_id":0,"welcome_message":"","member_message":"","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2014-12-19"},{"keyword":"","reference":"23r23r23r23r","number":61422222222,"list_id":0,"welcome_message":"","member_message":"","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2014-12-19"},{"keyword":"FWEFWEFWEF","reference":"wefwefwefwef","number":61422222222,"list_id":55214,"welcome_message":"wefwefwef","member_message":"wefwefwe","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2014-12-19"},{"keyword":"MOOSE","reference":"moosey3","number":61422222222,"list_id":0,"welcome_message":"","member_message":"","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2014-12-19"},{"keyword":"MOOSE
47
+ MOOSE","reference":"MOOSE","number":61422222222,"list_id":0,"welcome_message":"","member_message":"","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2014-12-19"},{"keyword":"NEWS","reference":"","number":61422222222,"list_id":0,"welcome_message":"","member_message":"","forward_url":"","forward_sms":"","forward_email":"","status":"open","billing_date":"2015-05-28"}],"error":{"code":"SUCCESS","description":"OK"}}'
48
+ http_version:
49
+ recorded_at: Tue, 28 Apr 2015 07:18:06 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/add-list.json?name=my_list
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 23:16:24 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"id":55320,"name":"my_list","created":"2015-04-28 23:16:24","members_active":0,"fields":[],"error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 23:16:25 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/add-to-list.json?list_id=55314&msisdn=61491570158
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 23:21:50 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"list_id":55314,"msisdn":61491570158,"first_name":null,"last_name":null,"created_at":"2015-04-28
47
+ 23:21:50","status":"active","error":{"code":"SUCCESS","description":"OK"}}'
48
+ http_version:
49
+ recorded_at: Tue, 28 Apr 2015 23:21:51 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/delete-from-list.json?list_id=55314&msisdn=61491570158
6
+ body:
7
+ encoding: UTF-8
8
+ string: 'null'
9
+ headers:
10
+ User-Agent:
11
+ - ruby-swagger-4.06.08
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Api-Key:
15
+ - ''
16
+ Authorization:
17
+ - |
18
+ Basic MTVhZDI2NmM1MzhmYjM2YzRkOTBmMDEwNTVhZWY0OTQ6bW9vc2U=
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 23:31:50 GMT
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ X-Powered-By:
35
+ - PHP/5.4.39-1+deb.sury.org~precise+2
36
+ Expires:
37
+ - Thu, 19 Nov 1981 08:52:00 GMT
38
+ Cache-Control:
39
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
40
+ Pragma:
41
+ - no-cache
42
+ X-Mashape-Billing:
43
+ - Queries=1
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"list_ids":[55314],"error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 23:31:51 GMT
49
+ recorded_with: VCR 2.9.3