golang有没有SDK可以动态生成分支链接



我需要在golang项目中使用branch.io动态生成具有少量嵌入参数的深度链接。该链接将以短信的形式发送到安卓手机。因此,邀请推荐链接将重定向到游戏商店应用程序。有没有go-lang SDK或其他动态生成推荐链接的方法?

目前,没有专门针对GoLang的库/包装器支持。但是,您可以使用深度链接API来实现您的用例。

示例cURL-

curl -XPOST https://api2.branch.io/v1/url -H "Content-Type: application/json" 
-d '{
"branch_key": "key_live_xxxxxxxxx",
"channel": "facebook",
"feature": "onboarding",
"campaign": "new product",
"stage": "new user",
"tags": ["one", "two", "three"],
"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" }
}
}'

最新更新