tsms 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/edit-list-member.json?list_id=55314&msisdn=61400124714
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:59:00 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":61400124714,"first_name":"Hugh","last_name":"Heller","created_at":"2014-11-19
47
+ 00:52:53","status":"active","error":{"code":"SUCCESS","description":"OK"}}'
48
+ http_version:
49
+ recorded_at: Tue, 28 Apr 2015 23:59:00 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/get-list.json?list_id=55314
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:59:33 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":108,"number":1},"members_total":1075,"id":55314,"name":"untitled
47
+ list","created":"2014-10-29 04:44:31","members_active":1075,"fields":[],"members":[{"list_id":55314,"msisdn":61400031418,"first_name":"Janice","last_name":"Florence","created_at":"2014-11-19
48
+ 00:52:54","status":"active"},{"list_id":55314,"msisdn":61400048835,"first_name":"Elizabeth","last_name":"McKenna","created_at":"2014-11-19
49
+ 00:52:53","status":"active"},{"list_id":55314,"msisdn":61400070667,"first_name":"Michael","last_name":"Karabatsos","created_at":"2014-11-19
50
+ 00:52:55","status":"active"},{"list_id":55314,"msisdn":61400077544,"first_name":"Vanessa","last_name":"Saccuzzo","created_at":"2014-11-19
51
+ 00:52:53","status":"active"},{"list_id":55314,"msisdn":61400088109,"first_name":"Aiden","last_name":"Murphy","created_at":"2014-11-19
52
+ 00:52:55","status":"active"},{"list_id":55314,"msisdn":61400103325,"first_name":"Dettsy","last_name":"Schopf","created_at":"2014-11-19
53
+ 00:52:54","status":"active"},{"list_id":55314,"msisdn":61400110195,"first_name":"Jasmine","last_name":"Smith","created_at":"2014-11-19
54
+ 00:52:53","status":"active"},{"list_id":55314,"msisdn":61400124714,"first_name":"Hugh","last_name":"Heller","created_at":"2014-11-19
55
+ 00:52:53","status":"active"},{"list_id":55314,"msisdn":61400201091,"first_name":"Marina","last_name":"Corda","created_at":"2014-11-19
56
+ 00:52:54","status":"active"},{"list_id":55314,"msisdn":61400233560,"first_name":"Filippo","last_name":"De
57
+ Santis","created_at":"2014-11-19 00:52:54","status":"active"}],"error":{"code":"SUCCESS","description":"OK"}}'
58
+ http_version:
59
+ recorded_at: Tue, 28 Apr 2015 07:59:33 GMT
60
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.transmitsms.com/get-lists.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 23:11:31 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":2,"number":1},"lists_total":12,"lists":[{"id":55214,"name":"test
47
+ list 2","created":"2013-11-06 04:23:27","members_active":2,"fields":[],"members_total":2},{"id":55218,"name":"My
48
+ Test List","created":"2013-11-10 22:03:55","members_active":0,"fields":[],"members_total":1},{"id":55219,"name":"fred","created":"2013-11-11
49
+ 00:47:06","members_active":9,"fields":[],"members_total":14},{"id":55225,"name":"moose1","created":"2013-11-21
50
+ 00:44:09","members_active":1,"fields":[],"members_total":1},{"id":55235,"name":"untitled
51
+ list","created":"2013-12-03 22:40:35","members_active":8,"fields":{"field_1":"Date
52
+ Added"},"members_total":13},{"id":55244,"name":"untitled list 7","created":"2014-01-28
53
+ 00:14:58","members_active":1075,"fields":{"field_1":"Last Name","field_2":"Date
54
+ of Birth","field_3":"Gender","field_4":"Email","field_10":"Address1"},"members_total":1103},{"id":55260,"name":"untitled
55
+ list 8","created":"2014-05-30 01:17:42","members_active":1,"fields":{"field_2":"message"},"members_total":2},{"id":55291,"name":"Virgin
56
+ List","created":"2014-07-23 01:57:03","members_active":104237,"fields":[],"members_total":104238},{"id":55292,"name":"Virgin
57
+ And None","created":"2014-07-23 04:54:11","members_active":1,"fields":[],"members_total":2},{"id":55293,"name":"for
58
+ victory","created":"2014-07-31 04:26:32","members_active":4,"fields":{"field_1":"BIrthday"},"members_total":4}],"error":{"code":"SUCCESS","description":"OK"}}'
59
+ http_version:
60
+ recorded_at: Tue, 28 Apr 2015 23:11:32 GMT
61
+ 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/optout-list-member.json?list_id=55314&msisdn=61400233560
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:55:49 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:55:49 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/remove-list.json?list_id=55329
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
+ - Mon, 20 Jul 2015 07:33:41 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.43-1+deb.sury.org~precise+1
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: '{"error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Mon, 20 Jul 2015 07:33:41 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/get-number.json?number=%2B61422222222
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 03:20: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: '{"number":61422222222,"price":17,"next_charge":null,"auto_renew":true,"status":"inactive","error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 03:20: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/get-numbers.json?filter=%2B61422222222
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 04:58:52 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},"numbers_total":4,"filter":61422222222,"numbers":[{"number":61428427232,"price":17},{"number":61522265444,"price":17},{"number":61454567890,"price":17},{"number":61444666777,"price":27}],"error":{"code":"SUCCESS","description":"OK"}}'
47
+ http_version:
48
+ recorded_at: Tue, 28 Apr 2015 04:58:52 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/lease-number.json?number=0422222213
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: 400
22
+ message: Bad Request
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Tue, 28 Apr 2015 05:14:28 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: '{"error":{"code":"FIELD_INVALID","description":"This number is not
47
+ available for lease."}}'
48
+ http_version:
49
+ recorded_at: Tue, 28 Apr 2015 05:14:28 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-client.json?email=my@clienttest13.com&msisdn=%2B61491570156&name=my_client_test_13&password=my_password
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: 400
22
+ message: Bad Request
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Mon, 14 Sep 2015 07: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.44-1+deb.sury.org~precise+1
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: '{"error":{"code":"KEY_EXISTS","description":"User already exists"}}'
47
+ http_version:
48
+ recorded_at: Mon, 14 Sep 2015 07:52:05 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://api.transmitsms.com/edit-client.json?client_id=2024
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: 411
22
+ message: Length Required
23
+ headers:
24
+ Server:
25
+ - nginx/1.1.19
26
+ Date:
27
+ - Mon, 14 Sep 2015 07:52:47 GMT
28
+ Content-Type:
29
+ - text/html
30
+ Content-Length:
31
+ - '181'
32
+ Connection:
33
+ - close
34
+ body:
35
+ encoding: UTF-8
36
+ string: "<html>\r\n<head><title>411 Length Required</title></head>\r\n<body
37
+ bgcolor=\"white\">\r\n<center><h1>411 Length Required</h1></center>\r\n<hr><center>nginx/1.1.19</center>\r\n</body>\r\n</html>\r\n"
38
+ http_version:
39
+ recorded_at: Mon, 14 Sep 2015 07:52:47 GMT
40
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.transmitsms.com/get-client.json?client_id=2024
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ - Mon, 14 Sep 2015 07:36: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.44-1+deb.sury.org~precise+1
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":2024,"name":"wefwefwef","contact":"wefwefwef","email":"fred@treial.com","msisdn":61422265404,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-07-10
47
+ 05:54:11","apikey":"3802a0cf6efd0eeba64ddfbd6ff4a8f8","apisecret":"","recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-01-01","balance":0,"error":{"code":"SUCCESS","description":"OK"}}'
48
+ http_version:
49
+ recorded_at: Mon, 14 Sep 2015 07:36:59 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.transmitsms.com/get-clients.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ - Mon, 14 Sep 2015 07:37:41 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.44-1+deb.sury.org~precise+1
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":2,"number":1},"clients_total":15,"clients":[{"id":2024,"name":"wefwefwef","contact":"wefwefwef","email":"fred@treial.com","msisdn":61422265404,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-07-10
47
+ 05:54:11","apikey":"3802a0cf6efd0eeba64ddfbd6ff4a8f8","apisecret":"","recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-01-01","balance":0},{"id":2026,"name":"refrestest1","contact":"refrestest1","email":"refrestest@test.com","msisdn":61422265404,"currency":"AUD","client_pays":true,"sms_margin":2,"timezone":"Africa\/Abidjan","created":"2014-08-19
48
+ 06:44:35","apikey":"75c0f8ee939dcaeff4ac29ace2bfe8e1","apisecret":"","recharge_amount":0,"total_lists":5,"total_sms":5,"total_contacts":0,"total_spend":0.37,"total_revenue":0.1,"credit_based":false,"trial":"no","trial_expiry_date":"2014-08-20","balance":14.63},{"id":2007,"name":"notrialuser88","contact":"notrialuser88","email":"notrialuser88@test.com","msisdn":61435666588,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-05-28
49
+ 05:27:53","apikey":"90569a17af06304982eb01ceb8a24911","apisecret":null,"recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-06-04","balance":0},{"id":2006,"name":"notrialuser57","contact":"notrialuser57","email":"notrialuser57@test.com","msisdn":61435666577,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-05-28
50
+ 05:27:24","apikey":"db22415877d16b0500b55888d302e38c","apisecret":null,"recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-06-04","balance":0},{"id":2005,"name":"notrialuser56","contact":"notrialuser56","email":"notrialuser56@test.com","msisdn":61435666556,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-05-28
51
+ 05:26:31","apikey":"f48f0693da4337c59753dae1481c16c9","apisecret":null,"recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-06-04","balance":0},{"id":2004,"name":"notrialuser55","contact":"notrialuser55","email":"notrialuser55@test.com","msisdn":61435666556,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-05-28
52
+ 05:25:49","apikey":"c751503d308ba96ff881c0683f3161e4","apisecret":null,"recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-06-04","balance":0},{"id":2018,"name":"notrialuser500","contact":"notrialuser500","email":"notrialuser500@test.com","msisdn":61435666555,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-07-08
53
+ 05:35:04","apikey":"570d5954ab8074a56822115a169b0931","apisecret":null,"recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-06-04","balance":0},{"id":2001,"name":"notrialuser5","contact":"notrialuser5","email":"notrialuser5@test.com","msisdn":61435666555,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2014-05-28
54
+ 05:23:17","apikey":"ad6b3a9bddce59e9e12b768186bde244","apisecret":null,"recharge_amount":0,"total_lists":0,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":"2014-06-04","balance":0},{"id":1988,"name":"notrialuser4","contact":"notrialuser4","email":"notrialuser4@test.com","msisdn":61422465444,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2013-11-04
55
+ 02:13:20","apikey":"488cef775f5af4951373bf06c577a0b2","apisecret":"","recharge_amount":0,"total_lists":3,"total_sms":0,"total_contacts":0,"total_spend":0,"total_revenue":0,"credit_based":false,"trial":"yes","trial_expiry_date":"2014-03-30","balance":0},{"id":1987,"name":"notrialuser3","contact":"notrialuser3","email":"notrialuser3@test.com","msisdn":61422288888,"currency":"AUD","client_pays":true,"sms_margin":0,"timezone":"Africa\/Abidjan","created":"2013-11-04
56
+ 01:15:29","apikey":"93e8f100fcb2ccdcc3add91feeeb4201","apisecret":"green","recharge_amount":0,"total_lists":3,"total_sms":2,"total_contacts":0,"total_spend":0.108,"total_revenue":0,"credit_based":false,"trial":"no","trial_expiry_date":null,"balance":55.892}],"error":{"code":"SUCCESS","description":"OK"}}'
57
+ http_version:
58
+ recorded_at: Mon, 14 Sep 2015 07:37:41 GMT
59
+ recorded_with: VCR 2.9.3