Imei from subscription, SIM común
This commit is contained in:
32
docs/sim-alai/Change External ID.yml
Normal file
32
docs/sim-alai/Change External ID.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
info:
|
||||
name: Change External ID
|
||||
type: http
|
||||
seq: 7
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{baseurl}}/v1/subscription/{{subscription}}?action=MODIFY"
|
||||
params:
|
||||
- name: action
|
||||
value: MODIFY
|
||||
type: query
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"externalID":""
|
||||
}
|
||||
auth:
|
||||
type: bearer
|
||||
token: "{{alai_token}}"
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: subscription
|
||||
value: ""
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
22
docs/sim-alai/IMEI of subscription.yml
Normal file
22
docs/sim-alai/IMEI of subscription.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: IMEI of subscription
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{baseurl}}/v1/subscription/{{subscription}}/imei"
|
||||
auth:
|
||||
type: bearer
|
||||
token: "{{alai_token}}"
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: subscription
|
||||
value: SID1848557_TS1766417781101_0
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -22,7 +22,7 @@ runtime:
|
||||
code: |-
|
||||
const data = res.getBody();
|
||||
|
||||
if (data.staus != 200) {
|
||||
if (data.status != 200) {
|
||||
console.error("Error de login: ", data)
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ http:
|
||||
url: "{{baseurl}}/v1/sim/{{iccid}}"
|
||||
auth:
|
||||
type: bearer
|
||||
token: ""
|
||||
token: "{{alai_token}}"
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
|
||||
22
docs/sim-alai/Subscription.yml
Normal file
22
docs/sim-alai/Subscription.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: Subscription
|
||||
type: http
|
||||
seq: 4
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{baseurl}}/v1/subscription/{{subscription}}"
|
||||
auth:
|
||||
type: bearer
|
||||
token: "{{alai_token}}"
|
||||
|
||||
runtime:
|
||||
variables:
|
||||
- name: subscription
|
||||
value: SID1776275_TS1759238704226_0
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -11,3 +11,5 @@ variables:
|
||||
name: certPasswd
|
||||
- name: brandId
|
||||
value: savefamily
|
||||
- name: alai_token
|
||||
value: eyJhbGciOiJIUzM4NCJ9.eyJiciI6InNhdmVmYW1pbHkiLCJpcCI6Ijg4LjE1LjE1Ny4xNjciLCJzdWIiOiJwYWxvbWFpYmFuZXoiLCJzIjoiRVdTMTY0YWJhYWRlNjA3ZDAyIiwicG9zIjoic2F2ZWZhbWlseUNhYyIsImlkV3NVc2VyIjoiODYiLCJpc012bmEiOmZhbHNlLCJkb21haW4iOiJBbGFpfHNhdmVmYW1pbHkiLCJpYXQiOjE3NzgxNTEzMzYsImV4cCI6MTc3ODE2MjEzNn0.zCFBJJsa0Krc7n5vUFF00z9Tq7m0dRlCGzs2Od67jaLCCn-mnIyyU424PkazacRW
|
||||
|
||||
Reference in New Issue
Block a user