首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用branch.io API更新branch.io链接

无法使用branch.io API更新branch.io链接
EN

Stack Overflow用户
提问于 2018-12-12 16:32:21
回答 1查看 234关注 0票数 1

我在更新现有分支链接时遇到问题。以下是我的请求:

代码语言:javascript
复制
{
    "uri": "https://api.branch.io/v1/url/?url=https://example.in/xawwaqse&branch_key=key_live_branchKey",
    "headers": {
        "Content-Type": "application/json"
    },
    "json": true,
    "method": "PUT",
    "body": {
        "data": {
            "slug": "test-slug",
            "type": "collection",
            "$desktop_url": "https://www.example.com/test-slug/",
            "$android_url": "https://www.example.com/test-slug/",
            "$ios_url": "https://www.example.com/test-slug/",
            "$og_image_url": "imageUrl",
            "$og_title": "Collection by test | example",
            "$og_description": "Description",
            "$canonicalUrl": "https://www.example.com/test-slug/"
        },
        "branch_key": "key_live_branchKey",
        "branch_secret": "secret_live_branchKey"
    }
}

作为响应,得到以下错误消息:

代码语言:javascript
复制
"error": {
    "code": 500,
    "message": "The conditional request failed (Service: null; Status Code: 400; Error Code: ConditionalCheckFailedException; Request ID: OL3HPGV2UBBVV4KQNSO5AEMVJF66Q9ASUAAJGFSKS4MH0242JIJD)"
}
EN

回答 1

Stack Overflow用户

发布于 2018-12-12 20:11:16

以下是有关此请求的几点建议: 1.使用分支机构仪表板中提到的更新后的v2接口2.用有效的documentation替换https://example.in/xawwaqs 3.用分支机构仪表板中的有效值替换key_live_branchKey 4.用分支机构仪表板的有效值替换secret_live_branchKey 5.用有效的URL替换https://www.example.com/test-slug/

如有任何进一步的问题,请随时使用更新后的cURL写信给integration@branch.io。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53738936

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档