logo NodeSeekbeta

分享一個 Giffgaff 實體轉 eSIM 的 Postman 腳本

  • 绑定,技术贴

  • Get new access token转到 gg 官网登录后无效重定向

  • @pwrli #20 发布于2024/3/7 11:03:26
    @taxol #17
    @wudidi #18
    兌換ESIM有時間限制
    換個時間再試一下

    确定是在时间段内搞的。

  • @taxol #17 发布于2024/3/6 22:39:11,编辑于2024/3/6 22:44:52

    {
        "errors": [
            {
                "message": "Bad Request",
                "locations": [
                    {
                        "line": 2,
                        "column": 3
                    }
                ],
                "path": [
                    "reserveESim"
                ],
                "extensions": {
                    "code": "DEVICE_METADATA_MISSING",
                    "message": "Device metadata is missing, unable to verify support."
                }
            }
        ],
        "data": {
            "reserveESim": null
        }
    }
    
    

    佬,第四步申请sim卡的时候 "DEVICE_METADATA_MISSING"

    同样的报错

  • @橙C-美式好好喝 #22 发布于2024/3/7 下午1:52:28,编辑于2024/3/7 下午2:11:36
    Get new access token转到 gg 官网登录后无效重定向

    重定向是因為登入過了
    多試幾次直到 Access Token 有值即可

  • 腳本在複製的時候少存到 Headers
    腳本已經更新
    麻煩各位再試試

  • @taxol #17 @wudidi #18
    腳本更新了
    試試

  • 插个眼

  • 好长好长

  • @pwrli #27

    佬,新版脚本报

    pm.collectionVariables.set("esim_ssn", pm.response.json()[0].data.reserveESim.esim.ssn);
    pm.collectionVariables.set("esim_activation_code", pm.response.json()[0].data.reserveESim.esim.activationCode);
    
    
    Couldn't evaluate the test script:
    TypeError: Cannot read properties of undefined (reading 'data')
    
    

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有15757位seeker

🎉欢迎新用户🎉