使用Branch.io HTTP API创建的链接在分支门户中未显示为快速链接。快速链接非常方便,因为它们在一个视图中显示“点击”,“打开”等内容
用于创建链接的API:link-create
有人知道这是否可能吗?
答案 0 :(得分:2)
默认情况下,通过API和SDK创建的链接在分支仪表板上不显示为快速链接。
如果希望它们在“分支”仪表板上显示为“快速链接”,请将type=2
添加到有效负载根目录并将$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"
}
}'