使用 Branch HTTP API 创建快速链接?
Creating Quick Links using the Branch HTTP API?
使用 Branch.io HTTP API 创建的链接不会在 Branch 门户中显示为快速链接。快速链接很方便,因为它们在一个视图中显示 'Clicks'、'Opens' 等等
API 用于创建链接:link-create
有人知道这是否可行吗?
默认情况下,通过 API 和 SDK 创建的链接不会在 Branch 仪表板上显示为快速链接。
如果您希望它们在 Branch 仪表板上显示为快速链接,请将 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"
}
}'
使用 Branch.io HTTP API 创建的链接不会在 Branch 门户中显示为快速链接。快速链接很方便,因为它们在一个视图中显示 'Clicks'、'Opens' 等等
API 用于创建链接:link-create
有人知道这是否可行吗?
默认情况下,通过 API 和 SDK 创建的链接不会在 Branch 仪表板上显示为快速链接。
如果您希望它们在 Branch 仪表板上显示为快速链接,请将 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"
}
}'