bitreserve 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.rubocop.yml +3 -0
- data/.travis.yml +13 -0
- data/Gemfile +7 -1
- data/README.md +5 -0
- data/Rakefile +2 -3
- data/bitreserve.gemspec +2 -0
- data/lib/bitreserve.rb +16 -6
- data/lib/bitreserve/api.rb +22 -0
- data/lib/bitreserve/api/auth_token.rb +16 -0
- data/lib/bitreserve/api/card.rb +36 -0
- data/lib/bitreserve/api/contact.rb +34 -0
- data/lib/bitreserve/api/endpoints.rb +26 -0
- data/lib/bitreserve/api/private_transaction.rb +58 -0
- data/lib/bitreserve/api/public_transaction.rb +23 -0
- data/lib/bitreserve/api/ticker.rb +23 -0
- data/lib/bitreserve/api/transparency.rb +10 -0
- data/lib/bitreserve/api/user.rb +23 -0
- data/lib/bitreserve/client.rb +22 -0
- data/lib/bitreserve/entities/asset.rb +7 -0
- data/lib/bitreserve/entities/auth_token.rb +7 -0
- data/lib/bitreserve/entities/base_entity.rb +28 -0
- data/lib/bitreserve/entities/card.rb +8 -0
- data/lib/bitreserve/entities/contact.rb +7 -0
- data/lib/bitreserve/entities/phone.rb +7 -0
- data/lib/bitreserve/entities/ticker.rb +7 -0
- data/lib/bitreserve/entities/transaction.rb +7 -0
- data/lib/bitreserve/entities/user.rb +19 -0
- data/lib/bitreserve/helpers.rb +23 -0
- data/lib/bitreserve/request.rb +31 -14
- data/lib/bitreserve/request_data.rb +7 -0
- data/lib/bitreserve/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/me.yml +185 -0
- data/spec/fixtures/vcr_cassettes/me/card.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/cards.yml +67 -0
- data/spec/fixtures/vcr_cassettes/me/contact.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/contacts.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/created_card.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/created_contact.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/phones.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/cancel.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/commit.yml +62 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/create.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/create_waiting_cancel.yml +118 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/create_waiting_resend.yml +118 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/resend.yml +61 -0
- data/spec/fixtures/vcr_cassettes/reserve/transaction.yml +60 -0
- data/spec/fixtures/vcr_cassettes/reserve/transactions.yml +60 -0
- data/spec/fixtures/vcr_cassettes/tickers.yml +60 -0
- data/spec/fixtures/vcr_cassettes/transparency.yml +60 -0
- data/spec/integration/api/card_spec.rb +47 -0
- data/spec/integration/api/contact_spec.rb +53 -0
- data/spec/integration/api/private_transactions_spec.rb +74 -0
- data/spec/integration/api/public_transaction_spec.rb +34 -0
- data/spec/integration/api/ticker_spec.rb +21 -0
- data/spec/integration/api/transparency_spec.rb +21 -0
- data/spec/integration/api/user_spec.rb +32 -0
- data/spec/spec_helper.rb +19 -1
- data/spec/support/vcr.rb +8 -0
- data/spec/support/webmock.rb +24 -0
- data/spec/unit/api/auth_spec.rb +22 -0
- data/spec/unit/api/card_spec.rb +47 -0
- data/spec/unit/api/contact_spec.rb +53 -0
- data/spec/unit/api/private_transaction_spec.rb +114 -0
- data/spec/unit/api/public_transaction_spec.rb +34 -0
- data/spec/unit/api/ticker_spec.rb +34 -0
- data/spec/unit/api/transparency_spec.rb +21 -0
- data/spec/unit/api/user_spec.rb +33 -0
- data/spec/unit/auth_request_spec.rb +32 -0
- data/spec/unit/client_spec.rb +23 -0
- data/spec/unit/entities/base_entity_spec.rb +32 -0
- data/spec/unit/entities/user_spec.rb +26 -0
- data/spec/unit/helper_spec.rb +37 -0
- data/spec/unit/request_spec.rb +58 -0
- metadata +136 -8
- data/lib/bitreserve/endpoints.rb +0 -5
- data/lib/bitreserve/ticker.rb +0 -7
- data/spec/request_spec.rb +0 -37
- data/spec/ticker_spec.rb +0 -15
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bitreserve.org/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: card_id=a4feff08-2977-40f8-a339-4f546ae5c7e2&denomination[currency]=BTC&denomination[amount]=0.0001&destination=a0e20123-47c8-4784-9e71-0defb34d18a7
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 202
|
15
|
+
message: Accepted
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:17:57 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '728'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d1a4b1ce786bc8db4b5c6c29748ec7a521422451077; expires=Thu, 28-Jan-16
|
29
|
+
13:17:57 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
X-Frame-Options:
|
43
|
+
- DENY
|
44
|
+
X-Bitreserve-Request-Id:
|
45
|
+
- 2e8345c2-eca1-4fa8-ae13-63e029ee064d
|
46
|
+
X-Ratelimit-Limit:
|
47
|
+
- '300'
|
48
|
+
X-Ratelimit-Remaining:
|
49
|
+
- '293'
|
50
|
+
X-Ratelimit-Reset:
|
51
|
+
- '1422451344'
|
52
|
+
Cf-Ray:
|
53
|
+
- 1afd7920f30f0dd5-MAD
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"id":"135a0708-898c-4de4-a5a0-58a463e0d7ab","type":"transfer","denomination":{"amount":"0.0001","currency":"BTC","rate":"1.00","pair":"BTCBTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
57
|
+
Ferreira","rate":"1.00","sources":[],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a0e20123-47c8-4784-9e71-0defb34d18a7","currency":"BTC","description":"Luis
|
58
|
+
Ferreira","rate":"1.00","type":"card","username":"zamith"},"status":"pending","params":{"type":"transfer","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","ttl":30000}}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 28 Jan 2015 13:17:59 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,118 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bitreserve.org/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: card_id=a4feff08-2977-40f8-a339-4f546ae5c7e2&denomination[currency]=BTC&denomination[amount]=0.0001&destination=non-user%40example.com
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 202
|
15
|
+
message: Accepted
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:18:14 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '666'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d2dd7854c414490d1a059bb01b033a4481422451094; expires=Thu, 28-Jan-16
|
29
|
+
13:18:14 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
X-Frame-Options:
|
43
|
+
- DENY
|
44
|
+
X-Bitreserve-Request-Id:
|
45
|
+
- 3710bf77-cba3-4b7e-9783-7e70c076e502
|
46
|
+
X-Ratelimit-Limit:
|
47
|
+
- '300'
|
48
|
+
X-Ratelimit-Remaining:
|
49
|
+
- '291'
|
50
|
+
X-Ratelimit-Reset:
|
51
|
+
- '1422451344'
|
52
|
+
Cf-Ray:
|
53
|
+
- 1afd798c4f560ddb-MAD
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"id":"9522034e-b844-4c89-8ee3-008ba042fa20","type":"transfer","denomination":{"amount":"0.0001","currency":"BTC","rate":"1.00","pair":"BTCBTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
57
|
+
Ferreira","rate":"1.00","sources":[],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"pending","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","ttl":30000}}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Wed, 28 Jan 2015 13:18:16 GMT
|
60
|
+
- request:
|
61
|
+
method: post
|
62
|
+
uri: https://api.bitreserve.org/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions/9522034e-b844-4c89-8ee3-008ba042fa20/commit
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: ''
|
66
|
+
headers:
|
67
|
+
Authorization:
|
68
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: OK
|
73
|
+
headers:
|
74
|
+
Server:
|
75
|
+
- cloudflare-nginx
|
76
|
+
Date:
|
77
|
+
- Wed, 28 Jan 2015 13:18:15 GMT
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Content-Length:
|
81
|
+
- '800'
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Set-Cookie:
|
85
|
+
- __cfduid=d5e4844a98f43335bc1a59dba9c48d3c01422451094; expires=Thu, 28-Jan-16
|
86
|
+
13:18:14 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
87
|
+
X-Content-Security-Policy:
|
88
|
+
- default-src "none"
|
89
|
+
Content-Security-Policy:
|
90
|
+
- default-src "none"
|
91
|
+
X-Webkit-Csp:
|
92
|
+
- default-src "none"
|
93
|
+
Strict-Transport-Security:
|
94
|
+
- max-age=31536000
|
95
|
+
X-Xss-Protection:
|
96
|
+
- 1; mode=block
|
97
|
+
X-Content-Type-Options:
|
98
|
+
- nosniff
|
99
|
+
- nosniff
|
100
|
+
X-Frame-Options:
|
101
|
+
- DENY
|
102
|
+
X-Bitreserve-Request-Id:
|
103
|
+
- 739776e9-604d-47be-a5e7-4a3225b99664
|
104
|
+
X-Ratelimit-Limit:
|
105
|
+
- '300'
|
106
|
+
X-Ratelimit-Remaining:
|
107
|
+
- '290'
|
108
|
+
X-Ratelimit-Reset:
|
109
|
+
- '1422451344'
|
110
|
+
Cf-Ray:
|
111
|
+
- 1afd798e56240dd5-MAD
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: '{"id":"9522034e-b844-4c89-8ee3-008ba042fa20","type":"transfer","message":null,"denomination":{"pair":"BTCBTC","rate":"1.00","amount":"0.0001","currency":"BTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
115
|
+
Ferreira","rate":"1.00","sources":[{"id":"e6615095-8a90-483a-b58b-c46391308a53","amount":"0.0001"}],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"waiting","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","progress":"0","ttl":"30000"},"createdAt":"2015-01-28T13:18:14.904Z"}'
|
116
|
+
http_version:
|
117
|
+
recorded_at: Wed, 28 Jan 2015 13:18:16 GMT
|
118
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,118 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bitreserve.org/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: card_id=a4feff08-2977-40f8-a339-4f546ae5c7e2&denomination[currency]=BTC&denomination[amount]=0.0001&destination=non-user%40example.com
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 202
|
15
|
+
message: Accepted
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:18:19 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '666'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d0c036385bf8100a24d7290d0a3cc2eaa1422451099; expires=Thu, 28-Jan-16
|
29
|
+
13:18:19 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
X-Frame-Options:
|
43
|
+
- DENY
|
44
|
+
X-Bitreserve-Request-Id:
|
45
|
+
- 8e801f74-94db-4e19-b2f9-08aba033d494
|
46
|
+
X-Ratelimit-Limit:
|
47
|
+
- '300'
|
48
|
+
X-Ratelimit-Remaining:
|
49
|
+
- '288'
|
50
|
+
X-Ratelimit-Reset:
|
51
|
+
- '1422451344'
|
52
|
+
Cf-Ray:
|
53
|
+
- 1afd79aa819b0dc9-MAD
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"id":"7125d576-9a48-4631-9ef4-d281620bb2a6","type":"transfer","denomination":{"amount":"0.0001","currency":"BTC","rate":"1.00","pair":"BTCBTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
57
|
+
Ferreira","rate":"1.00","sources":[],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"pending","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","ttl":30000}}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Wed, 28 Jan 2015 13:18:21 GMT
|
60
|
+
- request:
|
61
|
+
method: post
|
62
|
+
uri: https://api.bitreserve.org/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions/7125d576-9a48-4631-9ef4-d281620bb2a6/commit
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: ''
|
66
|
+
headers:
|
67
|
+
Authorization:
|
68
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: OK
|
73
|
+
headers:
|
74
|
+
Server:
|
75
|
+
- cloudflare-nginx
|
76
|
+
Date:
|
77
|
+
- Wed, 28 Jan 2015 13:18:20 GMT
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Content-Length:
|
81
|
+
- '800'
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Set-Cookie:
|
85
|
+
- __cfduid=dea767ae8a8d99cfb760debf6568d66a01422451099; expires=Thu, 28-Jan-16
|
86
|
+
13:18:19 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
87
|
+
X-Content-Security-Policy:
|
88
|
+
- default-src "none"
|
89
|
+
Content-Security-Policy:
|
90
|
+
- default-src "none"
|
91
|
+
X-Webkit-Csp:
|
92
|
+
- default-src "none"
|
93
|
+
Strict-Transport-Security:
|
94
|
+
- max-age=31536000
|
95
|
+
X-Xss-Protection:
|
96
|
+
- 1; mode=block
|
97
|
+
X-Content-Type-Options:
|
98
|
+
- nosniff
|
99
|
+
- nosniff
|
100
|
+
X-Frame-Options:
|
101
|
+
- DENY
|
102
|
+
X-Bitreserve-Request-Id:
|
103
|
+
- 6b143233-16bb-4369-9b2d-98becfddba2a
|
104
|
+
X-Ratelimit-Limit:
|
105
|
+
- '300'
|
106
|
+
X-Ratelimit-Remaining:
|
107
|
+
- '287'
|
108
|
+
X-Ratelimit-Reset:
|
109
|
+
- '1422451344'
|
110
|
+
Cf-Ray:
|
111
|
+
- 1afd79ac94880ded-MAD
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: '{"id":"7125d576-9a48-4631-9ef4-d281620bb2a6","type":"transfer","message":null,"denomination":{"pair":"BTCBTC","rate":"1.00","amount":"0.0001","currency":"BTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
115
|
+
Ferreira","rate":"1.00","sources":[{"id":"e6615095-8a90-483a-b58b-c46391308a53","amount":"0.0001"}],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"waiting","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","progress":"0","ttl":"30000"},"createdAt":"2015-01-28T13:18:20.192Z"}'
|
116
|
+
http_version:
|
117
|
+
recorded_at: Wed, 28 Jan 2015 13:18:22 GMT
|
118
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bitreserve.org/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions/7125d576-9a48-4631-9ef4-d281620bb2a6/resend
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:18:20 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '800'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d2f261618b6f09f46ef1540005dcf6d6c1422451100; expires=Thu, 28-Jan-16
|
29
|
+
13:18:20 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Bitreserve-Request-Id:
|
46
|
+
- 78dc9659-eabe-4237-a829-20893cde420b
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '286'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422451344'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1afd79b283450dc3-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"id":"7125d576-9a48-4631-9ef4-d281620bb2a6","type":"transfer","message":null,"denomination":{"pair":"BTCBTC","rate":"1.00","amount":"0.0001","currency":"BTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
58
|
+
Ferreira","rate":"1.00","sources":[{"id":"e6615095-8a90-483a-b58b-c46391308a53","amount":"0.0001"}],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"waiting","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","progress":"0","ttl":"30000"},"createdAt":"2015-01-28T13:18:20.192Z"}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 28 Jan 2015 13:18:22 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.bitreserve.org/v0/reserve/transactions/a97bb994-6e24-4a89-b653-e0a6d0bcf634
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 27 Jan 2015 14:00:53 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '571'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d6efbe50b212e83fa64ee99a1bfc271891422367253; expires=Wed, 27-Jan-16
|
29
|
+
14:00:53 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Bitreserve-Request-Id:
|
46
|
+
- 23b5857c-8b25-43ee-85aa-86aaf8f001ac
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '299'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422367553'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1af57aa50f680ded-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"id":"a97bb994-6e24-4a89-b653-e0a6d0bcf634","type":"transfer","params":{"currency":"USD","margin":"0.00","pair":"USDUSD","rate":"1.00"},"denomination":{"amount":"1.00","currency":"USD"},"origin":{"amount":"1.00","base":"1.00","commission":"0.00","currency":"USD","fee":"0.00","rate":"1.00","sources":[{"id":"35325c99-edeb-4625-9cd8-f56d4783c352","amount":"1"}]},"destination":{"amount":"1.00","base":"1.00","commission":"0.00","currency":"USD","fee":"0.00","rate":"1.00"},"status":"cancelled","quotedAt":"2014-08-27T00:01:08.124Z","createdAt":"2014-08-27T00:01:11.616Z"}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Tue, 27 Jan 2015 14:00:53 GMT
|
60
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.bitreserve.org/v0/reserve/transactions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <BITRESERVE_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 27 Jan 2015 14:00:59 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '8185851'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=dc1bebcfd7edbf1910d2b0ae3b09dada91422367254; expires=Wed, 27-Jan-16
|
29
|
+
14:00:54 GMT; path=/; domain=.bitreserve.org; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Bitreserve-Request-Id:
|
46
|
+
- 5f2d0bc0-fc9c-4fd5-b74b-a266c29c8e06
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '298'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422367553'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1af57aaa32a20db7-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '[{"id":"7a61a358-cced-4dc2-975f-dff3a6ec4c42","type":"withdrawal","params":{"currency":"USD","margin":"0.45","pair":"BTCUSD","rate":"265.27500","txid":"3014afd3b86eb5c7dd12fdfe2f37f2565c9075c8d79b80c03c7343d254405191"},"denomination":{"amount":"9.00","currency":"USD"},"origin":{"amount":"9.00","base":"9.00","commission":"0.00","currency":"USD","fee":"0.00","rate":"265.27500","sources":[{"id":"46d9dcf9-877b-47fd-b562-43936504adea","amount":"9.00"}]},"destination":{"address":"1snowqQP5VmZgU47i5AWwz9fsgHQg94Fa","amount":"0.03367437","base":"0.03392705","commission":"0.00015268","currency":"BTC","fee":"0.0001","rate":"0.00376967"},"status":"completed","quotedAt":"2015-01-27T13:54:43.000Z","createdAt":"2015-01-27T13:54:52.753Z"},{"id":"507bd05d-c1b1-4f61-bfc7-7f82a87c1240","type":"transfer","params":{"currency":"USD","margin":"0.45","pair":"BTCUSD","rate":"264.56500","txid":"95c074d007f129fae7e487fdac92aeb96c9336f35af05212708204c63152d77c"},"denomination":{"amount":"0.36757375","currency":"BTC"},"origin":{"amount":"0.36757375","base":"0.36757375","commission":"0.00","currency":"BTC","fee":"0.00","rate":"0.00378","sources":[{"id":"9aa2b6b3-2a4d-4913-998d-bfc913ea532a","amount":"0.17255358"},{"id":"45ff4cc6-86b5-4440-902f-9be5f26b5bed","amount":"0.19502017"}]},"destination":{"amount":"96.80","base":"97.24","commission":"0.44","currency":"USD","fee":"0.00","rate":"264.56500"},"status":"completed","quotedAt":"2015-01-27T13:52:02.384Z","createdAt":"2015-01-27T13:52:22.472Z"}]'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Tue, 27 Jan 2015 14:01:03 GMT
|
60
|
+
recorded_with: VCR 2.9.3
|