Created
July 8, 2024 15:23
-
-
Save ricardolee/636409389b8c148bba5404435550ffe5 to your computer and use it in GitHub Desktop.
simyo generate esim QR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "7ac8692b-ce6b-4997-a333-055c38b6778c", | |
"name": "Simyo ESIM", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "15524224" | |
}, | |
"item": [ | |
{ | |
"name": "1.登录会员账号", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var data = pm.response.json()\r", | |
"pm.collectionVariables.set(\"session_token\", data.result.sessionToken)\r", | |
"" | |
], | |
"type": "text/javascript", | |
"packages": {} | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "X-Client-Token", | |
"value": "e77b7e2f43db41bb95b17a2a11581a38", | |
"type": "text" | |
}, | |
{ | |
"key": "X-Client-Platform", | |
"value": "android", | |
"type": "text" | |
}, | |
{ | |
"key": "X-Client-Version", | |
"value": "3.64.4", | |
"type": "text" | |
}, | |
{ | |
"key": "X-Session-Token", | |
"value": "", | |
"type": "text" | |
}, | |
{ | |
"key": "User-Agent", | |
"value": "MijnSimyo/3.64.4 (Linux; Android 13; Scale/2.75)", | |
"type": "text" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json; charset=UTF-8", | |
"type": "text" | |
}, | |
{ | |
"key": "Connection", | |
"value": "Keep-Alive", | |
"type": "text" | |
}, | |
{ | |
"key": "Accept-Encoding", | |
"value": "gzip", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"password\":\"\",\"phoneNumber\":\"\"}" | |
}, | |
"url": { | |
"raw": "https://appapi.simyo.nl/simyoapi/api/v1/sessions", | |
"protocol": "https", | |
"host": [ | |
"appapi", | |
"simyo", | |
"nl" | |
], | |
"path": [ | |
"simyoapi", | |
"api", | |
"v1", | |
"sessions" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "2.请求 ESIM", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var data_esim=pm.response.json\r", | |
"pm.collectionVariables.set(\"activationCode\", data_esim.result.activationCode)" | |
], | |
"type": "text/javascript", | |
"packages": {} | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "X-Client-Token", | |
"value": "e77b7e2f43db41bb95b17a2a11581a38", | |
"type": "text" | |
}, | |
{ | |
"key": "X-Client-Platform", | |
"value": "android", | |
"type": "text" | |
}, | |
{ | |
"key": "X-Client-Version", | |
"value": "3.64.4", | |
"type": "text" | |
}, | |
{ | |
"key": "X-Session-Token", | |
"value": "{{session_token}}", | |
"type": "text" | |
}, | |
{ | |
"key": "User-Agent", | |
"value": "MijnSimyo/3.64.4 (Linux; Android 13; Scale/2.75)", | |
"type": "text" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json; charset=UTF-8", | |
"type": "text" | |
}, | |
{ | |
"key": "Connection", | |
"value": "Keep-Alive", | |
"type": "text" | |
}, | |
{ | |
"key": "Accept-Encoding", | |
"value": "gzip", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "https://appapi.simyo.nl/simyoapi/api/v1/esim/get-by-customer", | |
"protocol": "https", | |
"host": [ | |
"appapi", | |
"simyo", | |
"nl" | |
], | |
"path": [ | |
"simyoapi", | |
"api", | |
"v1", | |
"esim", | |
"get-by-customer" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "3.生成 ESIM 二维码", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "https://api.qrserver.com/v1/create-qr-code/?data=LPA:{{activationCode}}&size=200x200", | |
"protocol": "https", | |
"host": [ | |
"api", | |
"qrserver", | |
"com" | |
], | |
"path": [ | |
"v1", | |
"create-qr-code", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "data", | |
"value": "LPA:{{activationCode}}" | |
}, | |
{ | |
"key": "size", | |
"value": "200x200" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
], | |
"variable": [ | |
{ | |
"key": "Sy.sessionToken", | |
"value": "JsonData.result.sessionToken" | |
}, | |
{ | |
"key": "session_token", | |
"value": "" | |
}, | |
{ | |
"key": "activationCode", | |
"value": "" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment