gpt4 book ai didi

branch.io - 使用 branch.io 的自定义链接

转载 作者:行者123 更新时间:2023-12-04 03:01:33 28 4
gpt4 key购买 nike

是否可以使用 branch.io 创建自定义链接,例如 https://example.app.link/fzmLEhobLD所以我可以用我的自定义 10 位参数(如 amitpp8888)控制 fzmLEhobLD 这个参数。我们基本上想要这个,因为我们为每个客户提供唯一的推荐 url,我们希望尽可能简单。他们可以记住他们的推荐代码,这是他们的名字和出生日期的组合。

最佳答案

您可以使用自定义别名创建分支链接。

<强>1。对于 Branch 快速链接(在 Branch 仪表板上创建):

您可以在配置选项标签中添加自定义别名

enter image description here

<强>2。通过 SDK 创建链接时:

您可以在链接属性中指定自定义别名

例如在安卓中:

LinkProperties lp = new LinkProperties()
.setChannel("facebook")
.setFeature("sharing")
.setCampaign("content 123 launch")
.setStage("new user")
.setAlias("hello");

<强>2。通过 HTTP API 创建链接时:

您可以在链接参数中指定自定义别名

curl -XPOST https://api.branch.io/v1/url \
-d '{
"branch_key": "key_live_xxxxxxxxxx",
"channel": "facebook",
"feature": "onboarding",
"campaign": "new product",
"stage": "new user",
"tags": ["one", "two", "three"],
"alias": "hello",
"data": {
"$canonical_identifier": "content/123",
"custom_boolean": true,
"custom_integer": 1243,
"custom_string": "everything",
"custom_array": [1,2,3,4,5,6],
"custom_object": { "random": "dictionary" }
}
}'

PS:如果您尝试使用已存在的别名创建链接并且链接参数与之前的链接不同,则不会生成该链接并且您将收到异常。

关于branch.io - 使用 branch.io 的自定义链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48783157/

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