ince-api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +69 -0
- data/README.md +11 -0
- data/ince-api.gemspec +4 -1
- data/lib/ince-api.rb +1 -0
- data/lib/ince_api/get_sim.rb +5 -1
- data/lib/ince_api/multiple_sims_configuration.rb +40 -0
- data/spec/fixtures/vcr_cassettes/get_sim.yml +77 -0
- data/spec/fixtures/vcr_cassettes/get_sim_wrong_iccid.yml +75 -0
- data/spec/fixtures/vcr_cassettes/get_sim_wrong_token.yml +74 -0
- data/spec/fixtures/vcr_cassettes/get_sims.yml +103 -0
- data/spec/fixtures/vcr_cassettes/get_sims_with_params.yml +93 -0
- data/spec/fixtures/vcr_cassettes/get_sims_with_params_page_1.yml +93 -0
- data/spec/fixtures/vcr_cassettes/get_sims_wrong_token.yml +74 -0
- data/spec/fixtures/vcr_cassettes/invalid_credentials.yml +68 -0
- data/spec/fixtures/vcr_cassettes/invalid_password.yml +68 -0
- data/spec/fixtures/vcr_cassettes/update_sim_label_change.yml +77 -0
- data/spec/fixtures/vcr_cassettes/update_sim_no_change.yml +77 -0
- data/spec/fixtures/vcr_cassettes/update_sims_empty_list.yml +77 -0
- data/spec/fixtures/vcr_cassettes/update_sims_label_change.yml +78 -0
- data/spec/fixtures/vcr_cassettes/valid_credentials.yml +71 -0
- data/spec/ince-api/create_access_token_spec.rb +32 -0
- data/spec/ince-api/get_sim_spec.rb +28 -0
- data/spec/ince-api/get_sims_spec.rb +41 -0
- data/spec/ince-api/multiple_sims_configuration_spec.rb +18 -0
- data/spec/ince-api/single_sim_configuration_spec.rb +17 -0
- data/spec/spec_helper.rb +20 -0
- metadata +87 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 116d2231dfcdecbf1de6653de0487d583e01768343ce90f3a850573fb2cea903
|
4
|
+
data.tar.gz: 233cc8e3c2e31b0e3aa2edc7c0cb8ea3a91ed7a253424b25ed69fda0baebd293
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da4796b43b18b95ded90b0336d01bc622754180d96b2a991a5a7a896f7ef0839e5532e4082148534d13e8e8633a49f3b6439c5ae02c0d96576371969fd8487e7
|
7
|
+
data.tar.gz: e262d7ba868b7c9bb55d8d285ddccd697b301bb9b378b2d38096b689039eea581ed5edd0de791037844ca7eaa19952db4496c1d91635b1af6f61c0709148996c
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ince-api (0.0.3)
|
5
|
+
base64 (~> 0.1)
|
6
|
+
net-http (~> 0.2)
|
7
|
+
openssl (~> 2.2)
|
8
|
+
uri (~> 0.11)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
addressable (2.8.0)
|
14
|
+
public_suffix (>= 2.0.2, < 5.0)
|
15
|
+
base64 (0.1.1)
|
16
|
+
coderay (1.1.3)
|
17
|
+
crack (0.4.5)
|
18
|
+
rexml
|
19
|
+
diff-lcs (1.4.4)
|
20
|
+
hashdiff (1.0.1)
|
21
|
+
io-wait (0.1.0)
|
22
|
+
ipaddr (1.2.3)
|
23
|
+
method_source (1.0.0)
|
24
|
+
net-http (0.2.0)
|
25
|
+
net-protocol
|
26
|
+
uri
|
27
|
+
net-protocol (0.1.2)
|
28
|
+
io-wait
|
29
|
+
timeout
|
30
|
+
openssl (2.2.1)
|
31
|
+
ipaddr
|
32
|
+
pry (0.14.1)
|
33
|
+
coderay (~> 1.1)
|
34
|
+
method_source (~> 1.0)
|
35
|
+
public_suffix (4.0.6)
|
36
|
+
rexml (3.2.5)
|
37
|
+
rspec (3.10.0)
|
38
|
+
rspec-core (~> 3.10.0)
|
39
|
+
rspec-expectations (~> 3.10.0)
|
40
|
+
rspec-mocks (~> 3.10.0)
|
41
|
+
rspec-core (3.10.1)
|
42
|
+
rspec-support (~> 3.10.0)
|
43
|
+
rspec-expectations (3.10.1)
|
44
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
+
rspec-support (~> 3.10.0)
|
46
|
+
rspec-mocks (3.10.2)
|
47
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
+
rspec-support (~> 3.10.0)
|
49
|
+
rspec-support (3.10.3)
|
50
|
+
timeout (0.2.0)
|
51
|
+
uri (0.11.0)
|
52
|
+
vcr (6.0.0)
|
53
|
+
webmock (3.14.0)
|
54
|
+
addressable (>= 2.8.0)
|
55
|
+
crack (>= 0.3.2)
|
56
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
57
|
+
|
58
|
+
PLATFORMS
|
59
|
+
ruby
|
60
|
+
|
61
|
+
DEPENDENCIES
|
62
|
+
ince-api!
|
63
|
+
pry (~> 0.13)
|
64
|
+
rspec (~> 3.9)
|
65
|
+
vcr (~> 6.0)
|
66
|
+
webmock (~> 3.14)
|
67
|
+
|
68
|
+
BUNDLED WITH
|
69
|
+
2.1.4
|
data/README.md
CHANGED
@@ -52,3 +52,14 @@ You can also fetch single card
|
|
52
52
|
token = InceApi::CreateAccessToken.new(username: '<<YOUR USERNAME>>', password: '<<YOUR PASSWORD>>').create_token['access_token']
|
53
53
|
sims = InceApi::GetSim.new(access_token: token, iccid: 'XXXXXXXXX').sim
|
54
54
|
```
|
55
|
+
|
56
|
+
## SIM configuration
|
57
|
+
|
58
|
+
You can update SIM card according to documentation [DOCS](https://help.1nce.com/dev-hub/reference/general-sim#updatesimusingput)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
InceApi::CreateAccessToken.new(username: '<<YOUR USERNAME>>',
|
62
|
+
password: '<<YOUR PASSWORD>>').create_token
|
63
|
+
InceApi::SingleSimConfiguration.new(iccid: iccid, access_token: token, params: {label: 'Test API'}).update
|
64
|
+
```
|
65
|
+
|
data/ince-api.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'ince-api'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.4'
|
4
4
|
s.summary = "1nce API wrapper"
|
5
5
|
s.description = "A simple wrapper for 1nce API"
|
6
6
|
s.authors = ["Stanislaw Zawadzki"]
|
@@ -17,5 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.add_dependency 'openssl', '~> 2.2'
|
18
18
|
s.add_dependency 'base64', '~> 0.1'
|
19
19
|
s.add_development_dependency 'pry', '~> 0.13'
|
20
|
+
s.add_development_dependency 'rspec', '~> 3.9'
|
21
|
+
s.add_development_dependency 'webmock', '~> 3.14'
|
22
|
+
s.add_development_dependency 'vcr', '~> 6.0'
|
20
23
|
end
|
21
24
|
|
data/lib/ince-api.rb
CHANGED
data/lib/ince_api/get_sim.rb
CHANGED
@@ -7,7 +7,11 @@ module InceApi
|
|
7
7
|
|
8
8
|
def sim
|
9
9
|
response = connection.request(request)
|
10
|
-
|
10
|
+
if response.body != ''
|
11
|
+
JSON.parse(response.body)
|
12
|
+
else
|
13
|
+
{'status_code' => 404, 'error_message' => 'SIM with ICCID not found'}
|
14
|
+
end
|
11
15
|
end
|
12
16
|
|
13
17
|
private
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module InceApi
|
2
|
+
class MultipleSimsConfiguration
|
3
|
+
def initialize(access_token:, changes_array: [])
|
4
|
+
@access_token = access_token
|
5
|
+
@changes_array = changes_array
|
6
|
+
end
|
7
|
+
|
8
|
+
def update_many
|
9
|
+
response = connection.request(request)
|
10
|
+
response.code.to_i == 201 ? { status: 'OK' } : { status: 'FAILED', error_code: response.code.to_i}
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
ALLOWED_KEYS = %i(iccid label imei_lock status)
|
16
|
+
def body
|
17
|
+
@changes_array.select{|sim_params| !sim_params[:iccid].nil?}
|
18
|
+
.map{|sim_params| sim_params.slice(*ALLOWED_KEYS)}.to_json
|
19
|
+
end
|
20
|
+
|
21
|
+
def url
|
22
|
+
@url ||= URI("https://api.1nce.com/management-api/v1/sims")
|
23
|
+
end
|
24
|
+
|
25
|
+
def connection
|
26
|
+
@connection ||= Net::HTTP.new(url.host, url.port).tap do |http|
|
27
|
+
http.use_ssl = true
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def request
|
32
|
+
Net::HTTP::Post.new(url).tap do |request|
|
33
|
+
request.body = body
|
34
|
+
request["Accept"] = 'application/json'
|
35
|
+
request["Content-Type"] = 'application/json;charset=UTF-8'
|
36
|
+
request['Authorization'] = "Bearer #{@access_token}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.1nce.com/management-api/v1/sims/8988228066602306711
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.1nce.com
|
18
|
+
Authorization:
|
19
|
+
- Bearer eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbExkbEJRWTNKYVdURXljRXBWUXpod2NYVjRVbnAxSzAxRU1HdENlRzh6Ukc1bFlXTkJQU0lzSW1Gc1p5STZJbEpUTWpVMkluMC5leUp6ZFdJaU9pSXdNR0kxTmpFeU5TMDBaVEE0TFRSaVlqQXRPV1ppTmkxa05qZzRZVGd3TkRCaVkyTWlMQ0pqYjJkdWFYUnZPbWR5YjNWd2N5STZXeUpCY0draVhTd2lhWE56SWp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0N3aWFuUnBJam9pWTJKbVpEVmlOV010WmpJellpMDBOREE0TFdJNU9UQXRabUZsWTJZNE1HUTNOalk1SWl3aWRYTmxjbTVoYldVaU9pSTFNamN6TWpjeE5UZzBJbjAuYmhiYkUtbERuMl9GNm1MencwVVd2VUdvMkRYa1VFQmgyelRiVGpmdVFiMHRmeDV6NGg5bGlncjZaZm5fVFdUeWRpTUliVi1sMVJjUlc4S1NDSTdReS11SlVXRW52Umx6ZV9leXBPSm9VRk5wQTZPSEVoZGZxTkRsZjZCUFNQamVMaC1Mem5fMEJyT1BwSUViUW1sOWRETkJramxadTNsYTQ2d2tKTnJDcHUza3JoRktxc1BVN0NIbVQzdWVsdHV1M1AyY2xtLU92NDhXMUxiV1ZPeVEzS1pVYWlxTG9kVUVHVHhhTklURk1leHBZaUtIN2llT0ZSYm9mSHc3R0dodFFEckdyQ0VPVHJ1TTZaV2JSRzVxMnBSYUE3VW12aXFFc3lxMzdPamFsZXFaMGg1aHktUFBYNnJKaTdXSURyeHhna2V0T0hiVFFMdGV3dnA3ZTQ2M1hBIn0=
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json;charset=UTF-8
|
27
|
+
Content-Length:
|
28
|
+
- '257'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Date:
|
32
|
+
- Sun, 14 Nov 2021 19:00:51 GMT
|
33
|
+
X-Amzn-Requestid:
|
34
|
+
- f6c8c286-4244-4e8f-8d74-33b7bcd69cf5
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
39
|
+
X-Frame-Options:
|
40
|
+
- DENY
|
41
|
+
X-Amzn-Remapped-Content-Length:
|
42
|
+
- '420'
|
43
|
+
X-Amzn-Remapped-Connection:
|
44
|
+
- close
|
45
|
+
Set-Cookie:
|
46
|
+
- "!Proxy!ApiProxyServletJSESSIONID=a0dLxj5_u77y_sRuP84vZvSkBHeBnyzF3nbSgY1r.ioprod-jboss1-jboss1;
|
47
|
+
Path=/global-api"
|
48
|
+
- SERVERID=csc2; path=/; Secure
|
49
|
+
X-Amz-Apigw-Id:
|
50
|
+
- IztzaEAxliAFnTw=
|
51
|
+
Cache-Control:
|
52
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
53
|
+
X-Content-Type-Options:
|
54
|
+
- nosniff
|
55
|
+
Expires:
|
56
|
+
- '0'
|
57
|
+
X-Amzn-Trace-Id:
|
58
|
+
- Root=1-61915ce2-21a26c362fe3e63f679dd8d7
|
59
|
+
Pragma:
|
60
|
+
- no-cache
|
61
|
+
X-Amzn-Remapped-Date:
|
62
|
+
- Sun, 14 Nov 2021 19:00:51 GMT
|
63
|
+
X-Cache:
|
64
|
+
- Miss from cloudfront
|
65
|
+
Via:
|
66
|
+
- 1.1 50f21cb925e6471490e080147e252d7d.cloudfront.net (CloudFront)
|
67
|
+
X-Amz-Cf-Pop:
|
68
|
+
- WAW50-C1
|
69
|
+
X-Amz-Cf-Id:
|
70
|
+
- 58X6sYINnVagSYnX3xv9lgSIW7TpuR0iLLJtA45l0hyc2dzOb3s-gw==
|
71
|
+
body:
|
72
|
+
encoding: ASCII-8BIT
|
73
|
+
string: '{"iccid":"8988228066602306770","imsi":"901405102306770","msisdn":"882285102306770","imei":"8682390510114404","imei_lock":false,"status":"Activated","activation_date":"2021-08-26T12:13:02.000+0000","ip_address":"10.210.176.1","current_quota":500,"quota_status":{"id":0,"description":"More
|
74
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
75
|
+
than 20% available"},"label":"Test API"}'
|
76
|
+
recorded_at: Sun, 14 Nov 2021 19:00:51 GMT
|
77
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.1nce.com/management-api/v1/sims/11111222233444
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.1nce.com
|
18
|
+
Authorization:
|
19
|
+
- Bearer eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbExkbEJRWTNKYVdURXljRXBWUXpod2NYVjRVbnAxSzAxRU1HdENlRzh6Ukc1bFlXTkJQU0lzSW1Gc1p5STZJbEpUTWpVMkluMC5leUp6ZFdJaU9pSXdNR0kxTmpFeU5TMDBaVEE0TFRSaVlqQXRPV1ppTmkxa05qZzRZVGd3TkRCaVkyTWlMQ0pqYjJkdWFYUnZPbWR5YjNWd2N5STZXeUpCY0draVhTd2lhWE56SWpvaWFIUjBjSE02WEM5Y0wyTnZaMjVwZEc4dGFXUndMbVYxTFdObGJuUnlZV3d0TVM1aGJXRjZiMjVoZDNNdVkyOXRYQzlsZFMxalpXNTBjbUZzTFRGZlluTXdhbkJPTTFobElpd2lZMjluYm1sMGJ6cDFjMlZ5Ym1GdFpTSTZJalV5TnpNeU56RTFPRFFpTENKd2NtVm1aWEp5WldSZmRYTmxjbTVoYldVaU9pSTRNVEF4TWpJMU1WOXdiMngwY21GNElpd2liM0pwWjJsdVgycDBhU0k2SWpVeE5EY3pOR1pqTFRSaE16SXRORGszTnkwNVkyUTVMV1UzWW1ZM05UVTJaakEzWkNJc0ltRjFaQ0k2SWpjNGRqSnJjMjFoY1hGMU5qaHlhbVJ0YlRKcE1tNDRhMlJ1SWl3aVkzVnpkRzl0T21OMWMzUnZiV1Z5U1dRaU9pSTBOamszTWpnek5EWTJJaXdpWlhabGJuUmZhV1FpT2lJMU9UaG1aRGhqWWkxa1pUYzFMVFJtT0dR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KaTdXSURyeHhna2V0T0hiVFFMdGV3dnA3ZTQ2M1hBIn0=
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '0'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Date:
|
32
|
+
- Sun, 14 Nov 2021 19:03:30 GMT
|
33
|
+
X-Amzn-Requestid:
|
34
|
+
- 314375f3-f5e6-4ff3-9ff4-00ff969db6f1
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
39
|
+
X-Frame-Options:
|
40
|
+
- DENY
|
41
|
+
X-Amzn-Remapped-Content-Length:
|
42
|
+
- '0'
|
43
|
+
X-Amzn-Remapped-Connection:
|
44
|
+
- close
|
45
|
+
Set-Cookie:
|
46
|
+
- "!Proxy!ApiProxyServletJSESSIONID=St2cbQ7qBFYdjzT1jkGca_cz98tvQQWexx3lniV5.ioprod-jboss1-jboss1;
|
47
|
+
Path=/global-api"
|
48
|
+
- SERVERID=csc1; path=/; Secure
|
49
|
+
X-Amz-Apigw-Id:
|
50
|
+
- IzuMZE4PliAFcWg=
|
51
|
+
Cache-Control:
|
52
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
53
|
+
X-Content-Type-Options:
|
54
|
+
- nosniff
|
55
|
+
Expires:
|
56
|
+
- '0'
|
57
|
+
X-Amzn-Trace-Id:
|
58
|
+
- Root=1-61915d82-73fb3bca6bfd0b3d5cf6481d
|
59
|
+
Pragma:
|
60
|
+
- no-cache
|
61
|
+
X-Amzn-Remapped-Date:
|
62
|
+
- Sun, 14 Nov 2021 19:03:30 GMT
|
63
|
+
X-Cache:
|
64
|
+
- Miss from cloudfront
|
65
|
+
Via:
|
66
|
+
- 1.1 ba9347086484f25b8da311dec69fb9c2.cloudfront.net (CloudFront)
|
67
|
+
X-Amz-Cf-Pop:
|
68
|
+
- WAW50-C1
|
69
|
+
X-Amz-Cf-Id:
|
70
|
+
- 3zMOE_Kg4hNZCBnFjQPeQvZUjubqLAVB4unAOJ54kK6K_lT1Qjb_lg==
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: ''
|
74
|
+
recorded_at: Sun, 14 Nov 2021 19:03:30 GMT
|
75
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.1nce.com/management-api/v1/sims/8988228066602306711
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.1nce.com
|
18
|
+
Authorization:
|
19
|
+
- Bearer INVALID TOKEN
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 401
|
23
|
+
message: Unauthorized
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json;charset=UTF-8
|
27
|
+
Content-Length:
|
28
|
+
- '182'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Date:
|
32
|
+
- Sun, 14 Nov 2021 19:12:43 GMT
|
33
|
+
X-Amzn-Requestid:
|
34
|
+
- 2cab9faf-f4a3-427d-82fb-66085605d6ea
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
39
|
+
X-Frame-Options:
|
40
|
+
- DENY
|
41
|
+
X-Amzn-Remapped-Content-Length:
|
42
|
+
- '200'
|
43
|
+
X-Amzn-Remapped-Connection:
|
44
|
+
- close
|
45
|
+
Set-Cookie:
|
46
|
+
- SERVERID=csc1; path=/; Secure
|
47
|
+
X-Amz-Apigw-Id:
|
48
|
+
- IzviyFYgFiAFScQ=
|
49
|
+
Cache-Control:
|
50
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
51
|
+
X-Content-Type-Options:
|
52
|
+
- nosniff
|
53
|
+
Expires:
|
54
|
+
- '0'
|
55
|
+
X-Amzn-Trace-Id:
|
56
|
+
- Root=1-61915fab-6c30898475a8c67c540582ec
|
57
|
+
Pragma:
|
58
|
+
- no-cache
|
59
|
+
X-Amzn-Remapped-Date:
|
60
|
+
- Sun, 14 Nov 2021 19:12:43 GMT
|
61
|
+
X-Cache:
|
62
|
+
- Error from cloudfront
|
63
|
+
Via:
|
64
|
+
- 1.1 58bdfbab355a53b4cbc6b93312bb8749.cloudfront.net (CloudFront)
|
65
|
+
X-Amz-Cf-Pop:
|
66
|
+
- WAW50-C1
|
67
|
+
X-Amz-Cf-Id:
|
68
|
+
- aSClksdCPx4N2ndF7tVJa7Eb9ar1psippy3cilJNMUhAEEWhYVGl2g==
|
69
|
+
body:
|
70
|
+
encoding: ASCII-8BIT
|
71
|
+
string: '{"timestamp":"2021-11-14T19:12:43.315+0000","status":401,"error":"Unauthorized","message":"The
|
72
|
+
token is invalid: Illegal base64 character 20","path":"/internal-global-api/v1/sims/8988228066602306711"}'
|
73
|
+
recorded_at: Sun, 14 Nov 2021 19:12:43 GMT
|
74
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,103 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.1nce.com/management-api/v1/sims
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
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ZalF0T1RReVl6Qmlaakl5TWpZM0lpd2laWFpsYm5SZmFXUWlPaUkwWTJFNFkyUTBNeTB6TXpaakxUUTFOR1F0T0Rnd015MWhNamM0TURBM04yRTVZbVVpTENKMGIydGxibDkxYzJVaU9pSmhZMk5sYzNNaUxDSnpZMjl3WlNJNkltRjNjeTVqYjJkdWFYUnZMbk5wWjI1cGJpNTFjMlZ5TG1Ga2JXbHVJaXdpWVhWMGFGOTBhVzFsSWpveE5qTTJPVEl5TlRneExDSmxlSEFpT2pFMk16WTVNall4T0RFc0ltbGhkQ0k2TVRZek5qa3lNalU0TVN3aWFuUnBJam9pWmpoallqTTBOR0l0TnpSaE5DMDBPR1EwTFRnd01URXRNVE5rTm1KbE1qVXpZMlpsSWl3aWRYTmxjbTVoYldVaU9pSTFNamN6TWpjeE5UZzBJbjAuYm1uWEJ4ekc4dExRU3J2czVvOS1MaFN5aTBCVjRCTTZTaUxaNUJyQjVrOVpiOHQyZnJaaXFxQlN4b1lZQ3JCN1paTXZEMFZWWXZnT0VqQWMzTXRVYXFKUDZLT0o1WjZzc3VGYXpCbVQ2d3RzNER0UFNrTGlBSEpGYmFSYzROb0k0d1NCbDVjOE82SEZSVGQ4cVcwS1NaQlFKeFU5QWFHVnpRX1dfWVlWU1p2SF94RmtIVUdjQVpfNmJtS0dHczJRc1FMMVF3N3VDejlNZ3FORUNMTXZEbFlVVjNxUDExeHViWVN2bmpLbEpwS1o1aENwbnByazU3SHFNTnc4Ylo0Nm10RDVpTjRWaE1adDdUWTdZTGJtSTRnOGdpNW5ZWnRWVjQ1NGJMUjlhNExKelRGeDc5UTFKZXRWYTVwcU5xazloZC1CeEtTUUJTc0plb3VGbFA3V0pnIn0=
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json;charset=UTF-8
|
27
|
+
Content-Length:
|
28
|
+
- '463'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Date:
|
32
|
+
- Sun, 14 Nov 2021 20:44:07 GMT
|
33
|
+
X-Amzn-Requestid:
|
34
|
+
- 31f535de-3d3c-4eb7-9dfb-4d51f124357c
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
X-Total-Pages:
|
38
|
+
- '1'
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=31536000
|
41
|
+
X-Frame-Options:
|
42
|
+
- DENY
|
43
|
+
X-Amzn-Remapped-Content-Length:
|
44
|
+
- '3980'
|
45
|
+
X-Amzn-Remapped-Connection:
|
46
|
+
- close
|
47
|
+
Set-Cookie:
|
48
|
+
- "!Proxy!ApiProxyServletJSESSIONID=ljdy8_Dd6yW_1GnlCPVby4154jBQ8wGQT-GD_4Me.ioprod-jboss1-jboss1;
|
49
|
+
Path=/global-api"
|
50
|
+
- SERVERID=csc2; path=/; Secure
|
51
|
+
X-Total-Count:
|
52
|
+
- '10'
|
53
|
+
X-Amz-Apigw-Id:
|
54
|
+
- Iz87qFVeFiAFqAw=
|
55
|
+
Cache-Control:
|
56
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
57
|
+
X-Count-Per-Page:
|
58
|
+
- '10'
|
59
|
+
X-Content-Type-Options:
|
60
|
+
- nosniff
|
61
|
+
Expires:
|
62
|
+
- '0'
|
63
|
+
X-Current-Page:
|
64
|
+
- '1'
|
65
|
+
X-Amzn-Trace-Id:
|
66
|
+
- Root=1-61917517-1f2585b268cc231b3f859e85
|
67
|
+
Pragma:
|
68
|
+
- no-cache
|
69
|
+
X-Amzn-Remapped-Date:
|
70
|
+
- Sun, 14 Nov 2021 20:44:07 GMT
|
71
|
+
X-Cache:
|
72
|
+
- Miss from cloudfront
|
73
|
+
Via:
|
74
|
+
- 1.1 4cb16ea6a84fa64395352e03f53b5e8f.cloudfront.net (CloudFront)
|
75
|
+
X-Amz-Cf-Pop:
|
76
|
+
- WAW50-C1
|
77
|
+
X-Amz-Cf-Id:
|
78
|
+
- C4uCPJunwy8ECG6wpq-SLX-UOlg4v1v-M5FqNz4XON_iX28hCYjnQw==
|
79
|
+
body:
|
80
|
+
encoding: ASCII-8BIT
|
81
|
+
string: '[{"iccid":"8988228066602306770","imsi":"901405102306770","msisdn":"882285102306770","imei":"8682390510114404","imei_lock":false,"status":"Enabled","activation_date":"2021-08-26T12:13:06.000+0000","ip_address":"10.210.176.1","current_quota":500,"quota_status":{"id":0,"description":"More
|
82
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
83
|
+
than 20% available"},"label":"Test API"},{"iccid":"8988228066602307120","imsi":"901405102307120","msisdn":"882285102307120","imei":"8682390510024604","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.2","current_quota":500,"quota_status":{"id":0,"description":"More
|
84
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
85
|
+
than 20% available"}},{"iccid":"8988228066602307121","imsi":"901405102307121","msisdn":"882285102307121","imei":"8682390510093004","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.187","current_quota":500,"quota_status":{"id":0,"description":"More
|
86
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
87
|
+
than 20% available"}},{"iccid":"8988228066602554848","imsi":"901405102554848","msisdn":"882285102554848","imei":"8682390510113504","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.3","current_quota":500,"quota_status":{"id":0,"description":"More
|
88
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
89
|
+
than 20% available"}},{"iccid":"8988228066602554850","imsi":"901405102554850","msisdn":"882285102554850","imei":"8682390510023704","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.4","current_quota":500,"quota_status":{"id":0,"description":"More
|
90
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
91
|
+
than 20% available"}},{"iccid":"8988228066602554847","imsi":"901405102554847","msisdn":"882285102554847","imei":"8682390510016704","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.223","current_quota":500,"quota_status":{"id":0,"description":"More
|
92
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
93
|
+
than 20% available"}},{"iccid":"8988228066602307122","imsi":"901405102307122","msisdn":"882285102307122","imei":"8682390510035004","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.133","current_quota":500,"quota_status":{"id":0,"description":"More
|
94
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
95
|
+
than 20% available"}},{"iccid":"8988228066602554851","imsi":"901405102554851","msisdn":"882285102554851","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.231","current_quota":500,"quota_status":{"id":0,"description":"More
|
96
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
97
|
+
than 20% available"}},{"iccid":"8988228066602554849","imsi":"901405102554849","msisdn":"882285102554849","imei":"8682390510125904","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.196","current_quota":500,"quota_status":{"id":0,"description":"More
|
98
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
99
|
+
than 20% available"}},{"iccid":"8988228066602307123","imsi":"901405102307123","msisdn":"882285102307123","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.104","current_quota":500,"quota_status":{"id":0,"description":"More
|
100
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
101
|
+
than 20% available"}}]'
|
102
|
+
recorded_at: Sun, 14 Nov 2021 20:44:07 GMT
|
103
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,93 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.1nce.com/management-api/v1/sims?page=2&pageSize=5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.1nce.com
|
18
|
+
Authorization:
|
19
|
+
- Bearer eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbExkbEJRWTNKYVdURXljRXBWUXpod2NYVjRVbnAxSzAxRU1HdENlRzh6Ukc1bFlXTkJQU0lzSW1Gc1p5STZJbEpUTWpVMkluMC5leUp6ZFdJaU9pSXdNR0kxTmpFeU5TMDBaVEE0TFRSaVlqQXRPV1ppTmkxa05qZzRZVGd3TkRCaVkyTWlMQ0pqYjJkdWFYUnZPbWR5YjNWd2N5STZXeUpCY0draVhTd2lhWE56SWpvaWFIUjBjSE02WEM5Y0wyTnZaMjVwZEc4dGFXUndMbVYxTFdObGJuUnlZV3d0TVM1aGJXRjZiMjVoZDNNdVkyOXRYQzlsZFMxalpXNTBjbUZzTFRGZlluTXdhbkJPTTFobElpd2lZMjluYm1sMGJ6cDFjMlZ5Ym1GdFpTSTZJalV5TnpNeU56RTFPRFFpTENKd2NtVm1aWEp5WldSZmRYTmxjbTVoYldVaU9pSTRNVEF4TWpJMU1WOXdiMngwY21GNElpd2liM0pwWjJsdVgycDBhU0k2SWpJME1HWmxNVFEzTFdNd1l6Z3ROR1V5TlMxaFptSTBMVGswTW1Nd1ltWXlNakkyTnlJc0ltRjFaQ0k2SWpjNGRqSnJjMjFoY1hGMU5qaHl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N3VDejlNZ3FORUNMTXZEbFlVVjNxUDExeHViWVN2bmpLbEpwS1o1aENwbnByazU3SHFNTnc4Ylo0Nm10RDVpTjRWaE1adDdUWTdZTGJtSTRnOGdpNW5ZWnRWVjQ1NGJMUjlhNExKelRGeDc5UTFKZXRWYTVwcU5xazloZC1CeEtTUUJTc0plb3VGbFA3V0pnIn0=
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json;charset=UTF-8
|
27
|
+
Content-Length:
|
28
|
+
- '344'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Date:
|
32
|
+
- Sun, 14 Nov 2021 20:51:43 GMT
|
33
|
+
X-Amzn-Requestid:
|
34
|
+
- fdbadcba-1c72-490e-9ddf-4094e6bba770
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
X-Total-Pages:
|
38
|
+
- '2'
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=31536000
|
41
|
+
X-Frame-Options:
|
42
|
+
- DENY
|
43
|
+
X-Amzn-Remapped-Content-Length:
|
44
|
+
- '1959'
|
45
|
+
X-Amzn-Remapped-Connection:
|
46
|
+
- close
|
47
|
+
Set-Cookie:
|
48
|
+
- "!Proxy!ApiProxyServletJSESSIONID=hdGRkRu-fQuh2L8eX88x1vgFlh_xD5hn51lKOCxG.ioprod-jboss2-jboss1;
|
49
|
+
Path=/global-api"
|
50
|
+
- SERVERID=csc1; path=/; Secure
|
51
|
+
X-Total-Count:
|
52
|
+
- '10'
|
53
|
+
X-Amz-Apigw-Id:
|
54
|
+
- Iz-C1GCEliAFvCw=
|
55
|
+
Cache-Control:
|
56
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
57
|
+
X-Count-Per-Page:
|
58
|
+
- '5'
|
59
|
+
X-Content-Type-Options:
|
60
|
+
- nosniff
|
61
|
+
Expires:
|
62
|
+
- '0'
|
63
|
+
X-Current-Page:
|
64
|
+
- '2'
|
65
|
+
X-Amzn-Trace-Id:
|
66
|
+
- Root=1-619176de-07b8bad04849dd3d1c097ea7
|
67
|
+
Pragma:
|
68
|
+
- no-cache
|
69
|
+
X-Amzn-Remapped-Date:
|
70
|
+
- Sun, 14 Nov 2021 20:51:42 GMT
|
71
|
+
X-Cache:
|
72
|
+
- Miss from cloudfront
|
73
|
+
Via:
|
74
|
+
- 1.1 3876e3e44d62609ce1323d22638232f8.cloudfront.net (CloudFront)
|
75
|
+
X-Amz-Cf-Pop:
|
76
|
+
- WAW50-C1
|
77
|
+
X-Amz-Cf-Id:
|
78
|
+
- Up4ILhUJjGRNimvHBWltqUmf5knp9aXxqzBMBzL1zkftPGRCntnTCg==
|
79
|
+
body:
|
80
|
+
encoding: ASCII-8BIT
|
81
|
+
string: '[{"iccid":"8988228066602554847","imsi":"901405102554847","msisdn":"882285102554847","imei":"8682390510016704","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.223","current_quota":500,"quota_status":{"id":0,"description":"More
|
82
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
83
|
+
than 20% available"}},{"iccid":"8988228066602307122","imsi":"901405102307122","msisdn":"882285102307122","imei":"8682390510035004","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.133","current_quota":500,"quota_status":{"id":0,"description":"More
|
84
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
85
|
+
than 20% available"}},{"iccid":"8988228066602554851","imsi":"901405102554851","msisdn":"882285102554851","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.231","current_quota":500,"quota_status":{"id":0,"description":"More
|
86
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
87
|
+
than 20% available"}},{"iccid":"8988228066602554849","imsi":"901405102554849","msisdn":"882285102554849","imei":"8682390510125904","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.196","current_quota":500,"quota_status":{"id":0,"description":"More
|
88
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
89
|
+
than 20% available"}},{"iccid":"8988228066602307123","imsi":"901405102307123","msisdn":"882285102307123","imei_lock":false,"status":"Enabled","activation_date":"2021-09-23T10:31:46.000+0000","ip_address":"10.210.176.104","current_quota":500,"quota_status":{"id":0,"description":"More
|
90
|
+
than 20% available"},"current_quota_SMS":250,"quota_status_SMS":{"id":0,"description":"More
|
91
|
+
than 20% available"}}]'
|
92
|
+
recorded_at: Sun, 14 Nov 2021 20:51:43 GMT
|
93
|
+
recorded_with: VCR 6.0.0
|