ince-api 0.0.4 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 116d2231dfcdecbf1de6653de0487d583e01768343ce90f3a850573fb2cea903
4
- data.tar.gz: 233cc8e3c2e31b0e3aa2edc7c0cb8ea3a91ed7a253424b25ed69fda0baebd293
3
+ metadata.gz: b2374cc36e7cb009bc8942812d48efa5ca18fda048d2ab37ef6b33a9443b3ca1
4
+ data.tar.gz: 837ed789a53b270f5c8e9881b62f94e5311efafeb0ca5d0c3a45efeb56f57050
5
5
  SHA512:
6
- metadata.gz: da4796b43b18b95ded90b0336d01bc622754180d96b2a991a5a7a896f7ef0839e5532e4082148534d13e8e8633a49f3b6439c5ae02c0d96576371969fd8487e7
7
- data.tar.gz: e262d7ba868b7c9bb55d8d285ddccd697b301bb9b378b2d38096b689039eea581ed5edd0de791037844ca7eaa19952db4496c1d91635b1af6f61c0709148996c
6
+ metadata.gz: d22eb5b2262fe60bf237bd1d3bb0f7411386c9275d63d25737b2faa229e4a1756201ca5c3d599bcdb160386a0ed41eb1bcb837504d7d2882a1096cc09cbccd7d
7
+ data.tar.gz: d1dbb953c2ad80b43653fdd61715295729da61e4c0194c2a883b4d1583ee2358a0b400e6eb6336a5ec4a759aa9e0b89f97a200b627197893b7c9ecbb09b31925
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ince-api (0.0.3)
4
+ ince-api (0.0.6)
5
5
  base64 (~> 0.1)
6
6
  net-http (~> 0.2)
7
7
  openssl (~> 2.2)
data/README.md CHANGED
@@ -63,3 +63,35 @@ InceApi::CreateAccessToken.new(username: '<<YOUR USERNAME>>',
63
63
  InceApi::SingleSimConfiguration.new(iccid: iccid, access_token: token, params: {label: 'Test API'}).update
64
64
  ```
65
65
 
66
+ ## Multiple SIM configuration
67
+
68
+ ```ruby
69
+ params = [{iccid: '8988228066602306711', label: 'Test Label 1'}, {iccid: '8988228066602307111', label: 'Test Label 2'}]
70
+ response = InceApi::MultipleSimsConfiguration.new(access_token: 'VALID TOKEN', changes_array: params).update_many
71
+
72
+ ```
73
+
74
+ ## Get SIM data quota
75
+ ```ruby
76
+ InceApi::GetSimDataQuota..new(access_token: 'VALID TOKEN', iccid: '8988228066602306770').sim_status
77
+ ```
78
+
79
+ ## Get SIM SMS quota
80
+ ```ruby
81
+ InceApi::GetSimSMSQuota..new(access_token: 'VALID TOKEN', iccid: '8988228066602306770').sim_status
82
+ ```
83
+
84
+ ## Get SIM usage
85
+ ```ruby
86
+ InceApi::GetSimSMSUsage.new(access_token: 'VALID TOKEN', iccid: '8988228066602306770').sim_usage
87
+ ```
88
+
89
+ ## Get SIM status
90
+ ```ruby
91
+ InceApi::GetSimStatus.new(access_token: 'VALID TOKEN', iccid: '8988228066602306770').sim_status
92
+ ```
93
+
94
+ ## Create and send SMS to device
95
+ ```ruby
96
+ InceApi::CreateSms.new(access_token: 'VALID TOKEN', iccid: '8988228066602306770', params: {payload: 'TEST'}).send
97
+ ```
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.4'
3
+ s.version = '0.1.1'
4
4
  s.summary = "1nce API wrapper"
5
5
  s.description = "A simple wrapper for 1nce API"
6
6
  s.authors = ["Stanislaw Zawadzki"]
data/lib/ince-api.rb CHANGED
@@ -6,5 +6,11 @@ require 'base64'
6
6
  require_relative 'ince_api/create_access_token'
7
7
  require_relative 'ince_api/get_sims'
8
8
  require_relative 'ince_api/get_sim'
9
+ require_relative 'ince_api/get_sim_status'
10
+ require_relative 'ince_api/get_sim_data_quota'
11
+ require_relative 'ince_api/get_sim_sms_quota'
12
+ require_relative 'ince_api/get_sim_usage'
9
13
  require_relative 'ince_api/single_sim_configuration'
10
14
  require_relative 'ince_api/multiple_sims_configuration'
15
+ require_relative 'ince_api/create_sms'
16
+ require_relative 'ince_api/reset_connectivity'
@@ -0,0 +1,40 @@
1
+ module InceApi
2
+ class CreateSms
3
+ def initialize(access_token:, iccid:, params:{})
4
+ @access_token = access_token
5
+ @iccid = iccid
6
+ @params = params
7
+ end
8
+
9
+ def send
10
+ response = connection.request(request)
11
+ response.code.to_i == 201 ? allowed_params.merge(status: 'OK') : { status: 'FAILED', error_code: response.code.to_i}
12
+ end
13
+
14
+ private
15
+
16
+ ALLOWED_KEYS = %i(source_address payload udh dcs source_address_type expiry_date)
17
+ def allowed_params
18
+ @params.slice(*ALLOWED_KEYS)
19
+ end
20
+
21
+ def url
22
+ @url ||= URI("https://api.1nce.com/management-api/v1/sims/#{@iccid}/sms")
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 = allowed_params.to_json
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,36 @@
1
+ module InceApi
2
+ class GetSimDataQuota
3
+ def initialize(access_token:, iccid:)
4
+ @access_token = access_token
5
+ @iccid = iccid
6
+ end
7
+
8
+ def sim_status
9
+ response = connection.request(request)
10
+ if response.body != ''
11
+ JSON.parse(response.body)
12
+ else
13
+ {'status_code' => 404, 'error_message' => 'SIM with ICCID not found'}
14
+ end
15
+ end
16
+
17
+ private
18
+
19
+ def url
20
+ @url ||= URI("https://api.1nce.com/management-api/v1/sims/#{@iccid}/quota/data")
21
+ end
22
+
23
+ def connection
24
+ @connection ||= Net::HTTP.new(url.host, url.port).tap do |http|
25
+ http.use_ssl = true
26
+ end
27
+ end
28
+
29
+ def request
30
+ Net::HTTP::Get.new(url).tap do |request|
31
+ request["Accept"] = 'application/json'
32
+ request['Authorization'] = "Bearer #{@access_token}"
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,36 @@
1
+ module InceApi
2
+ class GetSimSmsQuota
3
+ def initialize(access_token:, iccid:)
4
+ @access_token = access_token
5
+ @iccid = iccid
6
+ end
7
+
8
+ def sim_status
9
+ response = connection.request(request)
10
+ if response.body != ''
11
+ JSON.parse(response.body)
12
+ else
13
+ {'status_code' => 404, 'error_message' => 'SIM with ICCID not found'}
14
+ end
15
+ end
16
+
17
+ private
18
+
19
+ def url
20
+ @url ||= URI("https://api.1nce.com/management-api/v1/sims/#{@iccid}/quota/sms")
21
+ end
22
+
23
+ def connection
24
+ @connection ||= Net::HTTP.new(url.host, url.port).tap do |http|
25
+ http.use_ssl = true
26
+ end
27
+ end
28
+
29
+ def request
30
+ Net::HTTP::Get.new(url).tap do |request|
31
+ request["Accept"] = 'application/json'
32
+ request['Authorization'] = "Bearer #{@access_token}"
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,36 @@
1
+ module InceApi
2
+ class GetSimStatus
3
+ def initialize(access_token:, iccid:)
4
+ @access_token = access_token
5
+ @iccid = iccid
6
+ end
7
+
8
+ def sim_status
9
+ response = connection.request(request)
10
+ if response.body != ''
11
+ JSON.parse(response.body)
12
+ else
13
+ {'status_code' => 404, 'error_message' => 'SIM with ICCID not found'}
14
+ end
15
+ end
16
+
17
+ private
18
+
19
+ def url
20
+ @url ||= URI("https://api.1nce.com/management-api/v1/sims/#{@iccid}/status")
21
+ end
22
+
23
+ def connection
24
+ @connection ||= Net::HTTP.new(url.host, url.port).tap do |http|
25
+ http.use_ssl = true
26
+ end
27
+ end
28
+
29
+ def request
30
+ Net::HTTP::Get.new(url).tap do |request|
31
+ request["Accept"] = 'application/json'
32
+ request['Authorization'] = "Bearer #{@access_token}"
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,42 @@
1
+ module InceApi
2
+ class GetSimUsage
3
+ def initialize(access_token:, iccid:, params: {})
4
+ @access_token = access_token
5
+ @iccid = iccid
6
+ @params = params
7
+ end
8
+
9
+ def sim_usage
10
+ response = connection.request(request)
11
+ if response.body != ''
12
+ JSON.parse(response.body)
13
+ else
14
+ {'status_code' => 404, 'error_message' => 'SIM with ICCID not found'}
15
+ end
16
+ end
17
+
18
+ private
19
+
20
+ ALLOWED_KEYS = %i(start_dt end_dt)
21
+ def params_query
22
+ URI.encode_www_form @params.slice(*ALLOWED_KEYS)
23
+ end
24
+
25
+ def url
26
+ @url ||= URI("https://api.1nce.com/management-api/v1/sims/#{@iccid}/usage?#{params_query}")
27
+ end
28
+
29
+ def connection
30
+ @connection ||= Net::HTTP.new(url.host, url.port).tap do |http|
31
+ http.use_ssl = true
32
+ end
33
+ end
34
+
35
+ def request
36
+ Net::HTTP::Get.new(url).tap do |request|
37
+ request["Accept"] = 'application/json'
38
+ request['Authorization'] = "Bearer #{@access_token}"
39
+ end
40
+ end
41
+ end
42
+ end
@@ -1,5 +1,7 @@
1
1
  module InceApi
2
2
  class GetSims
3
+ attr_reader :headers
4
+
3
5
  def initialize(access_token:, params: {})
4
6
  @access_token = access_token
5
7
  @params = params
@@ -7,6 +9,8 @@ module InceApi
7
9
 
8
10
  def sims
9
11
  response = connection.request(request)
12
+ @headers = response.each_header.to_h
13
+
10
14
  JSON.parse(response.body)
11
15
  end
12
16
 
@@ -0,0 +1,36 @@
1
+ module InceApi
2
+ class ResetConnectivity
3
+ def initialize(access_token:, iccid:)
4
+ @access_token = access_token
5
+ @iccid = iccid
6
+ end
7
+
8
+ def reset
9
+ response = connection.request(request)
10
+ if response.body != ''
11
+ JSON.parse(response.body)
12
+ else
13
+ {'status_code' => 404, 'error_message' => 'SIM with ICCID not found'}
14
+ end
15
+ end
16
+
17
+ private
18
+
19
+ def url
20
+ @url ||= URI("https://api.1nce.com/management-api/v1/sims/#{@iccid}/reset")
21
+ end
22
+
23
+ def connection
24
+ @connection ||= Net::HTTP.new(url.host, url.port).tap do |http|
25
+ http.use_ssl = true
26
+ end
27
+ end
28
+
29
+ def request
30
+ Net::HTTP::POST.new(url).tap do |request|
31
+ request["Accept"] = 'application/json'
32
+ request['Authorization'] = "Bearer #{@access_token}"
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,79 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.1nce.com/management-api/v1/sims/8988228066602306770/sms
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"payload":"test SMS"}'
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
+ Content-Type:
19
+ - application/json;charset=UTF-8
20
+ Authorization:
21
+ - Bearer eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbExkbEJRWTNKYVdURXljRXBWUXpod2NYVjRVbnAxSzAxRU1HdENlRzh6Ukc1bFlXTkJQU0lzSW1Gc1p5STZJbEpUTWpVMkluMC5leUp6ZFdJaU9pSXdNR0kxTmpFeU5TMDBaVEE0TFRSaVlqQXRPV1ppTmkxa05qZzRZVGd3TkRCaVkyTWlMQ0pqYjJkdWFYUnZPbWR5YjNWd2N5STZXeUpCY0draVhTd2lhWE56SWpvaWFIUjBjSE02WEM5Y0wyTnZaMjVwZEc4dGFXUndMbVYxTFdObGJuUnlZV3d0TVM1aGJXRjZiMjVoZDNNdVkyOXRYQzlsZFMxalpXNTBjbUZzTFRGZlluTXdhbkJPTTFobElpd2lZMjluYm1sMGJ6cDFjMlZ5Ym1GdFpTSTZJalV5TnpNeU56RTFPRFFpTENKd2NtVm1aWEp5WldSZmRYTmxjbTVoYldVaU9pSTRNVEF4TWpJMU1WOXdiMngwY21GNElpd2liM0pwWjJsdVgycDBhU0k2SW1ZeE5UaGpPVGt5TFRVM1pETXROR0ZrWVMwNE5qUTJMVEU1TW1RMk1ERTBZMlE1T0NJc0ltRjFaQ0k2SWpjNGRqSnJjMjFo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Ultc1dxWDhhdnp3UTZqNVRTV3BHdDd2ZklsRTM3SFhhU0R6U1ZtTzZFbWNzQkNhLS10ZWpKZFVkT2lHejg5TmVIZExRRkJOdm1Dd1dyZ2NULWs1WGdoejhKWkQ1cjNWZXVIUDZyN0paZzAyMlZ3SzV3LXhHX2d1YUtwTEtJM3M5emdGYWx0R19leFJZQm1RIn0=
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Content-Type:
28
+ - application/json
29
+ Content-Length:
30
+ - '0'
31
+ Connection:
32
+ - keep-alive
33
+ Date:
34
+ - Mon, 15 Nov 2021 11:17:36 GMT
35
+ X-Amzn-Requestid:
36
+ - e7419cc1-b597-4ab2-b6b8-ece1761f5523
37
+ X-Xss-Protection:
38
+ - 1; mode=block
39
+ Strict-Transport-Security:
40
+ - max-age=31536000
41
+ X-Frame-Options:
42
+ - DENY
43
+ X-Amzn-Remapped-Content-Length:
44
+ - '0'
45
+ X-Amzn-Remapped-Connection:
46
+ - close
47
+ Set-Cookie:
48
+ - "!Proxy!ApiProxyServletJSESSIONID=tV84wISz1_j0rp6UuIPJN8qjhqI3pt1xluHRxBQr.ioprod-jboss2-jboss1;
49
+ Path=/global-api"
50
+ - SERVERID=csc2; path=/; Secure
51
+ X-Amz-Apigw-Id:
52
+ - I184iHbSFiAFXIg=
53
+ Cache-Control:
54
+ - no-cache, no-store, max-age=0, must-revalidate
55
+ X-Content-Type-Options:
56
+ - nosniff
57
+ Expires:
58
+ - '0'
59
+ Location:
60
+ - https://bss-global.api.1nce.com/internal-global-api/v1/sims/8988228066602306770/sms/7363280
61
+ X-Amzn-Trace-Id:
62
+ - Root=1-619241d0-1aefe55e5ace7e7d3f1bd551
63
+ Pragma:
64
+ - no-cache
65
+ X-Amzn-Remapped-Date:
66
+ - Mon, 15 Nov 2021 11:17:36 GMT
67
+ X-Cache:
68
+ - Miss from cloudfront
69
+ Via:
70
+ - 1.1 af49d962d25539f633834af35e0ac9d1.cloudfront.net (CloudFront)
71
+ X-Amz-Cf-Pop:
72
+ - WAW50-C1
73
+ X-Amz-Cf-Id:
74
+ - 06oXGfINMLon0y0kwokP4za6jDJ5HJ-yf_-4YezgBG20E9RlAYDg1A==
75
+ body:
76
+ encoding: UTF-8
77
+ string: ''
78
+ recorded_at: Mon, 15 Nov 2021 11:17:36 GMT
79
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.1nce.com/management-api/v1/sims/8988228066602306770/quota/data
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 eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbExkbEJRWTNKYVdURXljRXBWUXpod2NYVjRVbnAxSzAxRU1HdENlRzh6Ukc1bFlXTkJQU0lzSW1Gc1p5STZJbEpUTWpVMkluMC5leUp6ZFdJaU9pSXdNR0kxTmpFeU5TMDBaVEE0TFRSaVlqQXRPV1ppTmkxa05qZzRZVGd3TkRCaVkyTWlMQ0pqYjJkdWFYUnZPbWR5YjNWd2N5STZXeUpCY0draVhTd2lhWE56SWpvaWFIUjBjSE02WEM5Y0wyTnZaMjVwZEc4dGFXUndMbVYxTFdObGJuUnlZV3d0TVM1aGJXRjZiMjVoZDNNdVkyOXRYQzlsZFMxalpXNTBjbUZzTFRGZlluTXdhbkJPTTFobElpd2lZMjluYm1sMGJ6cDFjMlZ5Ym1GdFpTSTZJalV5TnpNeU56RTFPRFFpTENKd2NtVm1aWEp5WldSZmRYTmxjbTVoYldVaU9pSTRNVEF4TWpJMU1WOXdiMngwY21GNElpd2liM0pwWjJsdVgycDBhU0k2SWpjeE5EZ3pPR1prTFRBd1lXSXROR0UxTWkx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QR3NoVUYzTEplSjNIbnI0SVcxSTR2Ykh3SmtXVWRvWGplUDdNcTFpdmhyVUVxeTF1aHJ4X3g0WHlTeDJoRkxMYXJSaEFjbzVQQl9SWTdlSDQtQXkzZUlPYmp1dW5RUHNFVVZSNVBSaTBDRWdtekVTSkhMX2dibDNLc1lLV2VDUkIzbURPVmFoU3llNGRYcmY4YUJQYjQwY0ZLOHkxYnBqa0c4MWhlYVl5MGJ3b2VEeU0wbjQ1VHNGM2tMUzRRVFRZY1Q4QzBRIn0=
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
+ - '163'
29
+ Connection:
30
+ - keep-alive
31
+ Date:
32
+ - Sun, 14 Nov 2021 21:52:03 GMT
33
+ X-Amzn-Requestid:
34
+ - ef31d08e-9b96-45ad-b632-9eeafa6737d9
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
+ - '199'
43
+ X-Amzn-Remapped-Connection:
44
+ - close
45
+ Set-Cookie:
46
+ - "!Proxy!ApiProxyServletJSESSIONID=__YC6NtcwR-_8gfZvlxvzMuTgcxmev8_Eus3eaAy.ioprod-jboss1-jboss1;
47
+ Path=/global-api"
48
+ - SERVERID=csc2; path=/; Secure
49
+ X-Amz-Apigw-Id:
50
+ - I0G4gHn3FiAFrIA=
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-61918503-66e8070554a3699e78091e1f
59
+ Pragma:
60
+ - no-cache
61
+ X-Amzn-Remapped-Date:
62
+ - Sun, 14 Nov 2021 21:52:03 GMT
63
+ X-Cache:
64
+ - Miss from cloudfront
65
+ Via:
66
+ - 1.1 033b4b0cfe185be090def702a6a129aa.cloudfront.net (CloudFront)
67
+ X-Amz-Cf-Pop:
68
+ - WAW50-C1
69
+ X-Amz-Cf-Id:
70
+ - TxqXysn3l8-HSBXJS_IyCL2kNDpxi9yKSNy-UXO_W_2MzW6icBk9rg==
71
+ body:
72
+ encoding: ASCII-8BIT
73
+ string: '{"volume":479.949998,"total_volume":500,"expiry_date":"2031-11-26 00:00:00","peak_throughput":128000,"last_volume_added":500,"last_status_change_date":"2021-08-26
74
+ 12:13:22","threshold_percentage":20}'
75
+ recorded_at: Sun, 14 Nov 2021 21:52:03 GMT
76
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.1nce.com/management-api/v1/sims/8988228066602306770/quota/sms
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 eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbExkbEJRWTNKYVdURXljRXBWUXpod2NYVjRVbnAxSzAxRU1HdENlRzh6Ukc1bFlXTkJQU0lzSW1Gc1p5STZJbEpUTWpVMkluMC5leUp6ZFdJaU9pSXdNR0kxTmpFeU5TMDBaVEE0TFRSaVlqQXRPV1ppTmkxa05qZzRZVGd3TkRCaVkyTWlMQ0pqYjJkdWFYUnZPbWR5YjNWd2N5STZXeUpCY0draVhTd2lhWE56SWpvaWFIUjBjSE02WEM5Y0wyTnZaMjVwZEc4dGFXUndMbVYxTFdObGJuUnlZV3d0TVM1aGJXRjZiMjVoZDNNdVkyOXRYQzlsZFMxalpXNTBjbUZzTFRGZlluTXdhbkJPTTFobElpd2lZMjluYm1sMGJ6cDFjMlZ5Ym1GdFpTSTZJalV5TnpNeU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0em04Vnk2VENSNEVMTGk2Q1lPeUFBU3VaVmp1YUxrNVhreWhoVHZfakRPVXhIeWgxWW1NckoxRmJlOE1TeVI5VmdOSXY2SmRRYnFtM21LRi1IZG9IWGtnX3lQaG13d3Nfanlac2lVeklQR3NoVUYzTEplSjNIbnI0SVcxSTR2Ykh3SmtXVWRvWGplUDdNcTFpdmhyVUVxeTF1aHJ4X3g0WHlTeDJoRkxMYXJSaEFjbzVQQl9SWTdlSDQtQXkzZUlPYmp1dW5RUHNFVVZSNVBSaTBDRWdtekVTSkhMX2dibDNLc1lLV2VDUkIzbURPVmFoU3llNGRYcmY4YUJQYjQwY0ZLOHkxYnBqa0c4MWhlYVl5MGJ3b2VEeU0wbjQ1VHNGM2tMUzRRVFRZY1Q4QzBRIn0=
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
+ - '139'
29
+ Connection:
30
+ - keep-alive
31
+ Date:
32
+ - Sun, 14 Nov 2021 21:58:03 GMT
33
+ X-Amzn-Requestid:
34
+ - 687f49c7-a447-4cc7-a762-50686035e303
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
+ - '167'
43
+ X-Amzn-Remapped-Connection:
44
+ - close
45
+ Set-Cookie:
46
+ - "!Proxy!ApiProxyServletJSESSIONID=I-dALxPbbSlFHIBVvPtFUswSqOocWPKbwdAPMYDX.ioprod-jboss2-jboss1;
47
+ Path=/global-api"
48
+ - SERVERID=csc2; path=/; Secure
49
+ X-Amz-Apigw-Id:
50
+ - I0HwzGpqliAFbsg=
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-6191866b-36b42a9f78c57beb6c8922d2
59
+ Pragma:
60
+ - no-cache
61
+ X-Amzn-Remapped-Date:
62
+ - Sun, 14 Nov 2021 21:58:03 GMT
63
+ X-Cache:
64
+ - Miss from cloudfront
65
+ Via:
66
+ - 1.1 bcfde77e1326fd9531586693834730c1.cloudfront.net (CloudFront)
67
+ X-Amz-Cf-Pop:
68
+ - WAW50-C1
69
+ X-Amz-Cf-Id:
70
+ - TzGy8YKKFcA4XY-vOsBjaZ_AegQqodvGmv5qxrJXEEqiv9kk5_XhXQ==
71
+ body:
72
+ encoding: ASCII-8BIT
73
+ string: '{"volume":240,"total_volume":250,"expiry_date":"2031-11-26 00:00:00","last_volume_added":250,"last_status_change_date":"2021-08-26
74
+ 12:13:26","threshold_percentage":20}'
75
+ recorded_at: Sun, 14 Nov 2021 21:58:03 GMT
76
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.1nce.com/management-api/v1/sims/8988228066602306770/status
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 eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbExkbEJRWTNKYVdURXljRXBWUXpod2NYVjRVbnAxSzAxRU1HdENlRzh6Ukc1bFlXTkJQU0lzSW1Gc1p5STZJbEpUTWpVMkluMC5leUp6ZFdJaU9pSXdNR0kxTmpFeU5TMDBaVEE0TFRSaVlqQXRPV1ppTmkxa05qZzRZVGd3TkRCaVkyTWlMQ0pqYjJkdWFYUnZPbWR5YjNWd2N5STZXeUpCY0draVhTd2lhWE56SWpvaWFIUjBjSE02WEM5Y0wyTnZaMjVwZEc4dGFXUndMbVYxTFdObGJuUnlZV3d0TV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1qVXpZMlpsSWl3aWRYTmxjbTVoYldVaU9pSTFNamN6TWpjeE5UZzBJbjAuYm1uWEJ4ekc4dExRU3J2czVvOS1MaFN5aTBCVjRCTTZTaUxaNUJyQjVrOVpiOHQyZnJaaXFxQlN4b1lZQ3JCN1paTXZEMFZWWXZnT0VqQWMzTXRVYXFKUDZLT0o1WjZzc3VGYXpCbVQ2d3RzNER0UFNrTGlBSEpGYmFSYzROb0k0d1NCbDVjOE82SEZSVGQ4cVcwS1NaQlFKeFU5QWFHVnpRX1dfWVlWU1p2SF94RmtIVUdjQVpfNmJtS0dHczJRc1FMMVF3N3VDejlNZ3FORUNMTXZEbFlVVjNxUDExeHViWVN2bmpLbEpwS1o1aENwbnByazU3SHFNTnc4Ylo0Nm10RDVpTjRWaE1adDdUWTdZTGJtSTRnOGdpNW5ZWnRWVjQ1NGJMUjlhNExKelRGeDc5UTFKZXRWYTVwcU5xazloZC1CeEtTUUJTc0plb3VGbFA3V0pnIn0=
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
+ - '306'
29
+ Connection:
30
+ - keep-alive
31
+ Date:
32
+ - Sun, 14 Nov 2021 21:33:50 GMT
33
+ X-Amzn-Requestid:
34
+ - be8d0072-a26b-495a-9436-20666e4093c8
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
+ - '520'
43
+ X-Amzn-Remapped-Connection:
44
+ - close
45
+ Set-Cookie:
46
+ - "!Proxy!ApiProxyServletJSESSIONID=FBhnwIFJVrziNfLJpcMvI_TdLQBm1IBctSkI1yOI.ioprod-jboss2-jboss1;
47
+ Path=/global-api"
48
+ - SERVERID=csc1; path=/; Secure
49
+ X-Amz-Apigw-Id:
50
+ - I0ENwH7qFiAFnSQ=
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-619180be-66cbf7722d96d65e7d4ed03d
59
+ Pragma:
60
+ - no-cache
61
+ X-Amzn-Remapped-Date:
62
+ - Sun, 14 Nov 2021 21:33:50 GMT
63
+ X-Cache:
64
+ - Miss from cloudfront
65
+ Via:
66
+ - 1.1 8bc9c1665a1b070ea4ccaae56c1f88b7.cloudfront.net (CloudFront)
67
+ X-Amz-Cf-Pop:
68
+ - WAW50-C1
69
+ X-Amz-Cf-Id:
70
+ - uA146XGjtRIYWudVDZXO0tYYrdLgBI7w1IKbKz91dSsERKJ3WR_M1g==
71
+ body:
72
+ encoding: ASCII-8BIT
73
+ string: '{"status":"ATTACHED","location":{"iccid":"8988228066602306770","imsi":"901405102306770","last_updated":"2021-10-28
74
+ 00:41:39","last_updated_gprs":"2021-09-23 12:00:47","sgsn_number":"48601000738","sgsn_number_np":"1","operator_id":"90","operator":{"id":90,"name":"Plus","country":{"id":157,"name":"Poland","iso_code":"pl"}},"country":{"country_id":"157","name":"Poland","country_code":"48","mcc":"260","iso_code":"pl","latitude":"52.000000","longitude":"20.000000"},"sgsn_ip_address":"92.60.128.122"},"services":["GPRS"]}'
75
+ recorded_at: Sun, 14 Nov 2021 21:33:50 GMT
76
+ 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/8988228066602306770/usage
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 eyJpZHRva2VuIjoiZXlKcmFXUWlPaUpVWlVkeWVqbEx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W1OalpoTW1ReE0yRmpPREVpTENKMGIydGxibDkxYzJVaU9pSmhZMk5sYzNNaUxDSnpZMjl3WlNJNkltRjNjeTVqYjJkdWFYUnZMbk5wWjI1cGJpNTFjMlZ5TG1Ga2JXbHVJaXdpWVhWMGFGOTBhVzFsSWpveE5qTTJPVEkyTlRnM0xDSmxlSEFpT2pFMk16WTVNekF4T0Rjc0ltbGhkQ0k2TVRZek5qa3lOalU0Tnl3aWFuUnBJam9pWTJJMlltSmlNV1F0TmpBMFlpMDBaakZrTFRrNVltSXROREk0WVdKaU1UUXpOMlF4SWl3aWRYTmxjbTVoYldVaU9pSTFNamN6TWpjeE5UZzBJbjAuVmxLekZKNFJYbmMyTEt1ZmFFLTc3TzNOaFdTYUs1Y3ZyZlAxYmw0em04Vnk2VENSNEVMTGk2Q1lPeUFBU3VaVmp1YUxrNVhreWhoVHZfakRPVXhIeWgxWW1NckoxRmJlOE1TeVI5VmdOSXY2SmRRYnFtM21LRi1IZG9IWGtnX3lQaG13d3Nfanlac2lVeklQR3NoVUYzTEplSjNIbnI0SVcxSTR2Ykh3SmtXVWRvWGplUDdNcTFpdmhyVUVxeTF1aHJ4X3g0WHlTeDJoRkxMYXJSaEFjbzVQQl9SWTdlSDQtQXkzZUlPYmp1dW5RUHNFVVZSNVBSaTBDRWdtekVTSkhMX2dibDNLc1lLV2VDUkIzbURPVmFoU3llNGRYcmY4YUJQYjQwY0ZLOHkxYnBqa0c4MWhlYVl5MGJ3b2VEeU0wbjQ1VHNGM2tMUzRRVFRZY1Q4QzBRIn0=
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
+ - '149'
29
+ Connection:
30
+ - keep-alive
31
+ Date:
32
+ - Sun, 14 Nov 2021 22:09:04 GMT
33
+ X-Amzn-Requestid:
34
+ - 06fff547-8ea4-428c-a1ad-dc3258964f87
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
+ - '1941'
43
+ X-Amzn-Remapped-Connection:
44
+ - close
45
+ Set-Cookie:
46
+ - "!Proxy!ApiProxyServletJSESSIONID=IOPyd85FCoNYJVS2drsWC3Ba-5qGsAwmq6bjVfgH.ioprod-jboss1-jboss1;
47
+ Path=/global-api"
48
+ - SERVERID=csc2; path=/; Secure
49
+ X-Amz-Apigw-Id:
50
+ - I0JX6ENUliAFhXA=
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-619188ff-3a4ac9b45ede5c0328daaf9b
59
+ Pragma:
60
+ - no-cache
61
+ X-Amzn-Remapped-Date:
62
+ - Sun, 14 Nov 2021 22:09:04 GMT
63
+ X-Cache:
64
+ - Miss from cloudfront
65
+ Via:
66
+ - 1.1 b3b1689b5de3293227c415784ed3c268.cloudfront.net (CloudFront)
67
+ X-Amz-Cf-Pop:
68
+ - WAW50-C1
69
+ X-Amz-Cf-Id:
70
+ - LKmASkuJwkOjOp1_fEhQptRx1zAoW3WiUkI-RlNmPSVhR5IQjQMicw==
71
+ body:
72
+ encoding: ASCII-8BIT
73
+ string: '{"stats":[{"date":"2021-11-14","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-13","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-12","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-11","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-10","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-09","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-08","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-07","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-06","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-05","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-04","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-03","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-02","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"2021-11-01","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}},{"date":"TOTAL","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}}]}'
74
+ recorded_at: Sun, 14 Nov 2021 22:09:04 GMT
75
+ 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/8988228066602306770/usage?end_dt=1998&start_dt=2000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.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Connection:
30
+ - keep-alive
31
+ Date:
32
+ - Sun, 14 Nov 2021 22:25:40 GMT
33
+ X-Amzn-Requestid:
34
+ - 62a158a0-7df6-4dcb-beb6-369c53cd8430
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
+ - '135'
43
+ X-Amzn-Remapped-Connection:
44
+ - close
45
+ Set-Cookie:
46
+ - "!Proxy!ApiProxyServletJSESSIONID=w5ERetodru28YyBTnxMDrpVeu0Iy9nTmvaqM0p-H.ioprod-jboss2-jboss1;
47
+ Path=/global-api"
48
+ - SERVERID=csc2; path=/; Secure
49
+ X-Amz-Apigw-Id:
50
+ - I0LzoF92liAFl7Q=
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-61918ce3-737c1cf676dbd10b373fbc14
59
+ Pragma:
60
+ - no-cache
61
+ X-Amzn-Remapped-Date:
62
+ - Sun, 14 Nov 2021 22:25:40 GMT
63
+ X-Cache:
64
+ - Miss from cloudfront
65
+ Via:
66
+ - 1.1 a775b244ecbdfe77e96f07f0f062645e.cloudfront.net (CloudFront)
67
+ X-Amz-Cf-Pop:
68
+ - WAW50-C1
69
+ X-Amz-Cf-Id:
70
+ - nPE9dU4OwEi5nqkSMvNVxHTxU21QKiAgV-3GUg9pjuQKTIXlMOY-xA==
71
+ body:
72
+ encoding: ASCII-8BIT
73
+ string: '{"stats":[{"date":"TOTAL","data":{"volume":"0","volume_tx":"0","volume_rx":"0"},"sms":{"volume":"0","volume_tx":"0","volume_rx":"0"}}]}'
74
+ recorded_at: Sun, 14 Nov 2021 22:25:40 GMT
75
+ recorded_with: VCR 6.0.0
@@ -27,45 +27,45 @@ http_interactions:
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
30
- - '2186'
30
+ - '2190'
31
31
  Connection:
32
32
  - keep-alive
33
33
  Date:
34
- - Sun, 14 Nov 2021 20:43:01 GMT
34
+ - Mon, 15 Nov 2021 11:17:03 GMT
35
35
  X-Amzn-Requestid:
36
- - 62338bd0-ad18-4957-bf07-138bed41e1c2
36
+ - 2da556da-ea34-45a7-a364-ab468fb3461c
37
37
  X-Amzn-Remapped-X-Amzn-Requestid:
38
- - fdbf65c2-47de-47ef-a8d9-a8f78036cc7a
38
+ - 9a044222-d57d-4646-9f1b-18f9b58cac86
39
39
  X-Amzn-Remapped-Content-Length:
40
40
  - '3108'
41
41
  X-Amzn-Remapped-Connection:
42
42
  - keep-alive
43
43
  Via:
44
- - 1.1 a56d6b55603697d6c44b19d4f907baaa.cloudfront.net (CloudFront), 1.1 39890eb6fee7152007acf27e00943abf.cloudfront.net
44
+ - 1.1 71b147cd3102755b55ba8b6fd34e3f4a.cloudfront.net (CloudFront), 1.1 af49d962d25539f633834af35e0ac9d1.cloudfront.net
45
45
  (CloudFront)
46
46
  X-Amz-Apigw-Id:
47
- - Iz8xVE1cFiAFeCw=
47
+ - I18zVGPZFiAFvMA=
48
48
  X-Amzn-Trace-Id:
49
- - Root=1-619174d5-6d8ced692ef1257a0bcb16b5
49
+ - Root=1-619241ae-237539821cb7df8f537dfa85
50
50
  X-Amz-Cf-Pop:
51
51
  - FRA6-C1
52
52
  - WAW50-C1
53
53
  X-Amzn-Remapped-Date:
54
- - Sun, 14 Nov 2021 20:43:01 GMT
54
+ - Mon, 15 Nov 2021 11:17:03 GMT
55
55
  X-Cache:
56
56
  - Miss from cloudfront
57
57
  X-Amz-Cf-Id:
58
- - FbMC4FgQjb4Ujfo3twd3neR_9Rh_-lybrlEaVQz_fCvgthDl7PCHmw==
58
+ - HneYiFtkjXpprnNQrKaUzv03G5cSyM0oILYBckct7UK5LMjcyqWv6A==
59
59
  body:
60
60
  encoding: ASCII-8BIT
61
61
  string: |-
62
62
  {
63
63
  "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XdpWVhWMGFGOTBhVzFsSWpveE5qTTJPVGMxTURJekxDSmxlSEFpT2pFMk16WTVOemcyTWpNc0ltbGhkQ0k2TVRZek5qazNOVEF5TXl3aWFuUnBJam9pWVdJNE1EazNNV0V0TTJRMlpDMDBObVpqTFdFeU5qZ3RaRGt6WW1SbFpHTTFOR001SWl3aWRYTmxjbTVoYldVaU9pSTFNamN6TWpjeE5UZzBJbjAuVUdmYTE0R3FtbV9DaW1QblZqOFowWm9qRElJak84aWJ3VlM2RG45NGpOc2JBMGpTTGVab21Pc0l0WW5aYjFsTENHaEh4YmliT2haMzNQdHdlU1lTNExUeVQ0UkN1SHNTeVVYdG5uZ21nWldfdHdxcFk2bjNKVjVFOUM3bC14VF9RWFJOeDF3cWV1c0ZGU0FvTnFiaXBjMTdJNmdQaW14c044YUJJSk5STVJiQWl5cDNpbEpQc1Rhb2lUaGl0XzhHNGNaV2l4dUltc1dxWDhhdnp3UTZqNVRTV3BHdDd2ZklsRTM3SFhhU0R6U1ZtTzZFbWNzQkNhLS10ZWpKZFVkT2lHejg5TmVIZExRRkJOdm1Dd1dyZ2NULWs1WGdoejhKWkQ1cjNWZXVIUDZyN0paZzAyMlZ3SzV3LXhHX2d1YUtwTEtJM3M5emdGYWx0R19leFJZQm1RIn0=",
65
65
  "token_type": "bearer",
66
66
  "expires_in": 3600,
67
67
  "userId": "user",
68
68
  "scope": "all"
69
69
  }
70
- recorded_at: Sun, 14 Nov 2021 20:43:01 GMT
70
+ recorded_at: Mon, 15 Nov 2021 11:17:03 GMT
71
71
  recorded_with: VCR 6.0.0
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe InceApi::CreateSms do
4
+ it 'sends SMS to sim card' do
5
+ VCR.use_cassette('create_sms') do
6
+ payload = "test SMS"
7
+ response = described_class.new(access_token: @token, iccid: '8988228066602306770', params: {payload: payload }).send
8
+ expect(response[:status]).to eq 'OK'
9
+ expect(response[:payload]).to eq payload
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe InceApi::GetSimDataQuota do
4
+ it 'get one sim data quota' do
5
+ VCR.use_cassette('get_sim_data_quota') do
6
+ response = described_class.new(access_token: 'VALID TOKEN', iccid: '8988228066602306770').sim_status
7
+ expect(response['volume']).to eq 479.949998
8
+ expect(response['total_volume']).to eq 500
9
+ expect(response['threshold_percentage']).to eq 20
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe InceApi::GetSimSmsQuota do
4
+ it 'get one sim sms quota' do
5
+ VCR.use_cassette('get_sim_sms_quota') do
6
+ response = described_class.new(access_token: 'VALID TOKEN', iccid: '8988228066602306770').sim_status
7
+ expect(response['volume']).to eq 240
8
+ expect(response['total_volume']).to eq 250
9
+ expect(response['threshold_percentage']).to eq 20
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe InceApi::GetSimStatus do
4
+ it 'get one sim card status' do
5
+ VCR.use_cassette('get_sim_status') do
6
+ response = described_class.new(access_token: @token, iccid: '8988228066602306770').sim_status
7
+ expect(response['status']).to eq 'ATTACHED'
8
+ expect(response['location']['country']['name']).to eq 'Poland'
9
+ expect(response['location']['operator']['name']).to eq 'Plus'
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe InceApi::GetSimUsage do
4
+ it 'get all sim cards' do
5
+ VCR.use_cassette('get_sim_usage') do
6
+ response = described_class.new(access_token: 'VALID TOKEN', iccid: '8988228066602306770').sim_usage
7
+ expect(response["stats"].size).to eq 15
8
+ expect(response['stats'].first['date']).to eq "2021-11-14"
9
+ expect(response['stats'].first['data']['volume']).to eq '0'
10
+ end
11
+ end
12
+
13
+ xit 'get sim usage with params' do
14
+ VCR.use_cassette('get_sims_usage_with_params') do
15
+ response = described_class.new(access_token: @token, iccid: '8988228066602306770', params: {start_dt: 2021-11-10, end_dt: 2021-11-12}).sim_usage
16
+ end
17
+ end
18
+ end
@@ -30,6 +30,17 @@ RSpec.describe InceApi::GetSims do
30
30
  expect(@response_p1.first['iccid']).not_to eq(@response_p2.first['iccid'])
31
31
  end
32
32
 
33
+ it 'returns headers too' do
34
+ VCR.use_cassette('get_sims_with_params') do
35
+ service = described_class.new(access_token: 'VALID TOKEN', params: {page: 2, pageSize: 5})
36
+ response = service.sims
37
+ headers = service.headers
38
+ expect(response.size).to eq 5
39
+
40
+ expect(headers['x-current-page']).to eq '2'
41
+ end
42
+ end
43
+
33
44
  it 'invalid token' do
34
45
  VCR.use_cassette('get_sims_wrong_token') do
35
46
  response = described_class.new(access_token: 'INVALID TOKEN').sims
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ince-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislaw Zawadzki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-14 00:00:00.000000000 Z
11
+ date: 2022-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri
@@ -134,14 +134,26 @@ files:
134
134
  - ince-api.gemspec
135
135
  - lib/ince-api.rb
136
136
  - lib/ince_api/create_access_token.rb
137
+ - lib/ince_api/create_sms.rb
137
138
  - lib/ince_api/get_sim.rb
139
+ - lib/ince_api/get_sim_data_quota.rb
140
+ - lib/ince_api/get_sim_sms_quota.rb
141
+ - lib/ince_api/get_sim_status.rb
142
+ - lib/ince_api/get_sim_usage.rb
138
143
  - lib/ince_api/get_sims.rb
139
144
  - lib/ince_api/multiple_sims_configuration.rb
145
+ - lib/ince_api/reset_connectivity.rb
140
146
  - lib/ince_api/single_sim_configuration.rb
147
+ - spec/fixtures/vcr_cassettes/create_sms.yml
141
148
  - spec/fixtures/vcr_cassettes/get_sim.yml
149
+ - spec/fixtures/vcr_cassettes/get_sim_data_quota.yml
150
+ - spec/fixtures/vcr_cassettes/get_sim_sms_quota.yml
151
+ - spec/fixtures/vcr_cassettes/get_sim_status.yml
152
+ - spec/fixtures/vcr_cassettes/get_sim_usage.yml
142
153
  - spec/fixtures/vcr_cassettes/get_sim_wrong_iccid.yml
143
154
  - spec/fixtures/vcr_cassettes/get_sim_wrong_token.yml
144
155
  - spec/fixtures/vcr_cassettes/get_sims.yml
156
+ - spec/fixtures/vcr_cassettes/get_sims_usage_with_params.yml
145
157
  - spec/fixtures/vcr_cassettes/get_sims_with_params.yml
146
158
  - spec/fixtures/vcr_cassettes/get_sims_with_params_page_1.yml
147
159
  - spec/fixtures/vcr_cassettes/get_sims_wrong_token.yml
@@ -153,7 +165,12 @@ files:
153
165
  - spec/fixtures/vcr_cassettes/update_sims_label_change.yml
154
166
  - spec/fixtures/vcr_cassettes/valid_credentials.yml
155
167
  - spec/ince-api/create_access_token_spec.rb
168
+ - spec/ince-api/create_sms_spec.rb
169
+ - spec/ince-api/get_sim_data_quota_spec.rb
170
+ - spec/ince-api/get_sim_sms_quota_spec.rb
156
171
  - spec/ince-api/get_sim_spec.rb
172
+ - spec/ince-api/get_sim_status_spec.rb
173
+ - spec/ince-api/get_sim_usage_spec.rb
157
174
  - spec/ince-api/get_sims_spec.rb
158
175
  - spec/ince-api/multiple_sims_configuration_spec.rb
159
176
  - spec/ince-api/single_sim_configuration_spec.rb
@@ -177,15 +194,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
194
  - !ruby/object:Gem::Version
178
195
  version: '0'
179
196
  requirements: []
180
- rubygems_version: 3.1.4
197
+ rubygems_version: 3.2.15
181
198
  signing_key:
182
199
  specification_version: 4
183
200
  summary: 1nce API wrapper
184
201
  test_files:
202
+ - spec/fixtures/vcr_cassettes/create_sms.yml
185
203
  - spec/fixtures/vcr_cassettes/get_sim.yml
204
+ - spec/fixtures/vcr_cassettes/get_sim_data_quota.yml
205
+ - spec/fixtures/vcr_cassettes/get_sim_sms_quota.yml
206
+ - spec/fixtures/vcr_cassettes/get_sim_status.yml
207
+ - spec/fixtures/vcr_cassettes/get_sim_usage.yml
186
208
  - spec/fixtures/vcr_cassettes/get_sim_wrong_iccid.yml
187
209
  - spec/fixtures/vcr_cassettes/get_sim_wrong_token.yml
188
210
  - spec/fixtures/vcr_cassettes/get_sims.yml
211
+ - spec/fixtures/vcr_cassettes/get_sims_usage_with_params.yml
189
212
  - spec/fixtures/vcr_cassettes/get_sims_with_params.yml
190
213
  - spec/fixtures/vcr_cassettes/get_sims_with_params_page_1.yml
191
214
  - spec/fixtures/vcr_cassettes/get_sims_wrong_token.yml
@@ -197,7 +220,12 @@ test_files:
197
220
  - spec/fixtures/vcr_cassettes/update_sims_label_change.yml
198
221
  - spec/fixtures/vcr_cassettes/valid_credentials.yml
199
222
  - spec/ince-api/create_access_token_spec.rb
223
+ - spec/ince-api/create_sms_spec.rb
224
+ - spec/ince-api/get_sim_data_quota_spec.rb
225
+ - spec/ince-api/get_sim_sms_quota_spec.rb
200
226
  - spec/ince-api/get_sim_spec.rb
227
+ - spec/ince-api/get_sim_status_spec.rb
228
+ - spec/ince-api/get_sim_usage_spec.rb
201
229
  - spec/ince-api/get_sims_spec.rb
202
230
  - spec/ince-api/multiple_sims_configuration_spec.rb
203
231
  - spec/ince-api/single_sim_configuration_spec.rb