gpt4 book ai didi

branch.io - 使用 Branch HTTP API 创建快速链接?

转载 作者:行者123 更新时间:2023-12-04 16:44:10 27 4
gpt4 key购买 nike

使用 Branch.io HTTP API 创建的链接不会在 Branch 门户中显示为快速链接。快速链接很方便,因为它们在一个 View 中显示“点击”、“打开”等内容

用于创建链接的 API:link-create

有谁知道这是否可行?

最佳答案

默认情况下,通过 API 和 SDK 创建的链接不会在 Branch 仪表板上显示为快速链接。

如果您希望它们在 Branch 仪表板上显示为快速链接,请将 type=2 添加到 payload root 并将 $marketing_title="some text" 添加到请求负载上的数据对象。

例如:

curl -XPOST https://api.branch.io/v1/url \
-d '{
"branch_key": "key_live_kaFuWw8WvY7yn1d9yYiP8gokwqjV0Swt",
"channel": "facebook",
"feature": "onboarding",
"campaign": "new product",
"stage": "new user",
"tags": ["one", "two", "three"],
"type": 2,
"data": {
"$canonical_identifier": "content/123",
"$og_title": "Title from Deep Link",
"$og_description": "Description from Deep Link",
"$og_image_url": "http://www.lorempixel.com/400/400/",
"$desktop_url": "http://www.example.com",
"custom_boolean": true,
"custom_integer": 1243,
"custom_string": "everything",
"custom_array": [1,2,3,4,5,6],
"custom_object": { "random": "dictionary" },
"$marketing_title": "Some marketing title"
}
}'

关于branch.io - 使用 Branch HTTP API 创建快速链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52164256/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com