ruby-transmitsms 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +49 -0
- data/LICENSE +22 -0
- data/README.md +62 -0
- data/Rakefile +7 -0
- data/fixtures/vcr_cassettes/account_api_get_balance.yml +49 -0
- data/fixtures/vcr_cassettes/email_sms_api_add_email.yml +49 -0
- data/fixtures/vcr_cassettes/email_sms_api_delete_email.yml +49 -0
- data/fixtures/vcr_cassettes/keywords_api_add_keyword.yml +49 -0
- data/fixtures/vcr_cassettes/keywords_api_edit_keyword.yml +49 -0
- data/fixtures/vcr_cassettes/keywords_api_get_keywords.yml +50 -0
- data/fixtures/vcr_cassettes/lists_api_add_list.yml +49 -0
- data/fixtures/vcr_cassettes/lists_api_add_to_list.yml +50 -0
- data/fixtures/vcr_cassettes/lists_api_delete_from_list.yml +49 -0
- data/fixtures/vcr_cassettes/lists_api_edit_list_member.yml +50 -0
- data/fixtures/vcr_cassettes/lists_api_get_list.yml +60 -0
- data/fixtures/vcr_cassettes/lists_api_get_lists.yml +61 -0
- data/fixtures/vcr_cassettes/lists_api_optout_list_member.yml +49 -0
- data/fixtures/vcr_cassettes/lists_api_remove_list.yml +49 -0
- data/fixtures/vcr_cassettes/numbers_api_get_number.yml +49 -0
- data/fixtures/vcr_cassettes/numbers_api_get_numbers.yml +49 -0
- data/fixtures/vcr_cassettes/numbers_api_lease_number.yml +50 -0
- data/fixtures/vcr_cassettes/resellers_api_add_client.yml +49 -0
- data/fixtures/vcr_cassettes/resellers_api_edit_client.yml +40 -0
- data/fixtures/vcr_cassettes/resellers_api_get_client.yml +50 -0
- data/fixtures/vcr_cassettes/resellers_api_get_clients.yml +59 -0
- data/fixtures/vcr_cassettes/resellers_api_get_transaction.yml +51 -0
- data/fixtures/vcr_cassettes/resellers_api_get_transactions.yml +61 -0
- data/fixtures/vcr_cassettes/sms_api_test_cancel_sms.yml +50 -0
- data/fixtures/vcr_cassettes/sms_api_test_format_number.yml +49 -0
- data/fixtures/vcr_cassettes/sms_api_test_format_number_fail_in_missing_msisdn.yml +50 -0
- data/fixtures/vcr_cassettes/sms_api_test_get_message_log.yml +50 -0
- data/fixtures/vcr_cassettes/sms_api_test_get_sms_info.yml +49 -0
- data/fixtures/vcr_cassettes/sms_api_test_get_sms_info_fail_for_not_existing_message_id.yml +50 -0
- data/fixtures/vcr_cassettes/sms_api_test_get_sms_responses.yml +53 -0
- data/fixtures/vcr_cassettes/sms_api_test_get_sms_sent.yml +50 -0
- data/fixtures/vcr_cassettes/sms_api_test_get_user_sms_responses.yml +49 -0
- data/fixtures/vcr_cassettes/sms_api_test_message_reply.yml +49 -0
- data/fixtures/vcr_cassettes/sms_api_test_send.yml +49 -0
- data/fixtures/vcr_cassettes/sms_api_test_send_missing_to_and_list_id.yml +50 -0
- data/fixtures/vcr_cassettes/sms_api_test_send_with_list_id.yml +50 -0
- data/geminstall.sh +1 -0
- data/lib/account_api.rb +80 -0
- data/lib/email_api.rb +137 -0
- data/lib/keywords_api.rb +224 -0
- data/lib/lists_api.rb +523 -0
- data/lib/monkey.rb +90 -0
- data/lib/numbers_api.rb +188 -0
- data/lib/resellers_api.rb +379 -0
- data/lib/ruby-transmitsms.rb +16 -0
- data/lib/sms_api.rb +550 -0
- data/lib/swagger.rb +84 -0
- data/lib/swagger/configuration.rb +22 -0
- data/lib/swagger/request.rb +212 -0
- data/lib/swagger/response.rb +70 -0
- data/lib/swagger/version.rb +4 -0
- data/ruby-transmitsms.gemspec +33 -0
- data/runtest.sh +8 -0
- data/setup.sh +1 -0
- data/spec/.resellers_api_spec.rb.swp +0 -0
- data/spec/account_api_spec.rb +30 -0
- data/spec/email_sms_api_spec.rb +40 -0
- data/spec/keywords_api_spec.rb +56 -0
- data/spec/lists_api_spec.rb +117 -0
- data/spec/numbers_api_spec.rb +53 -0
- data/spec/resellers_api_spec.rb +85 -0
- data/spec/sms_api_spec.rb +174 -0
- data/spec/spec.opts +4 -0
- metadata +219 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.burst.dev.local/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.burst.dev.local/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.burst.dev.local/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.burst.dev.local/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.burst.dev.local/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.burst.dev.local/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
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.burst.dev.local/get-transaction.json?id=17389227
|
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:55:45 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":17389227,"user_id":2026,"description":"Credit Top Up - $5.00
|
47
|
+
(+ $1 card processing fee)","amount":6,"balance_standing":10.63,"created":"2015-09-10
|
48
|
+
06:32:44","message_id":0,"type_description":"","type_id":23,"error":{"code":"SUCCESS","description":"OK"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 14 Sep 2015 07:55:45 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.burst.dev.local/get-transactions.json?client_id=2026
|
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:53: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.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":1,"number":1},"transactions_total":6,"transactions":[{"id":17389230,"user_id":2026,"description":"card
|
47
|
+
processing fee","amount":-1,"balance_standing":"$14.630","created":"2015-09-10
|
48
|
+
06:33:43","type_description":"","type_id":3},{"id":17389229,"user_id":2026,"description":"Credit
|
49
|
+
Top Up - $5.00 (+ $1 card processing fee)","amount":6,"balance_standing":"$15.630","created":"2015-09-10
|
50
|
+
06:33:43","type_description":"","type_id":23},{"id":17389228,"user_id":2026,"description":"card
|
51
|
+
processing fee","amount":-1,"balance_standing":"$9.630","created":"2015-09-10
|
52
|
+
06:32:45","type_description":"","type_id":3},{"id":17389227,"user_id":2026,"description":"Credit
|
53
|
+
Top Up - $5.00 (+ $1 card processing fee)","amount":6,"balance_standing":"$10.630","created":"2015-09-10
|
54
|
+
06:32:44","type_description":"","type_id":23},{"id":17389226,"user_id":2026,"description":"card
|
55
|
+
processing fee","amount":-1,"balance_standing":"$4.630","created":"2015-09-10
|
56
|
+
06:25:45","type_description":"","type_id":3},{"id":17389225,"user_id":2026,"description":"Credit
|
57
|
+
Top Up - $5.00 (+ $1 card processing fee)","amount":6,"balance_standing":"$5.630","created":"2015-09-10
|
58
|
+
06:25:45","type_description":"","type_id":23}],"error":{"code":"SUCCESS","description":"OK"}}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Mon, 14 Sep 2015 07:53:09 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.burst.dev.local/cancel-sms.json?id=27741
|
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: 400
|
22
|
+
message: Bad Request
|
23
|
+
headers:
|
24
|
+
Server:
|
25
|
+
- nginx/1.1.19
|
26
|
+
Date:
|
27
|
+
- Mon, 14 Sep 2015 07:36: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":"ALREADY_SENT","description":"This message is already
|
47
|
+
sent or can not be cancelled"}}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Mon, 14 Sep 2015 07:36:05 GMT
|
50
|
+
recorded_with: VCR 2.9.3
|