如何通过 Twitter 在推文中添加号召性用语按钮 API
How to Add Call-to-Action Button Inside Tweets via Twitter API
如果有人可以分享他们如何在通过 Twitter 发布的推文中添加号召性用语按钮的经验,我们将不胜感激 API:
POST statuses/update
预期结果
- 推文中的订阅 按钮
- 点击此按钮后出现订阅对话框
感谢您的帮助
https://dev.twitter.com/ads/reference/post/accounts/%3Aaccount_id/cards/website
{
"data": {
"name": "Test Website Card 1",
"id": "g9z",
"preview_url": "https://cards.twitter.com/cards/abc1/g9z",
"created_at": "2014-05-18T21:29:18Z",
"card_type": "WEBSITE",
"updated_at": "2014-05-18T21:29:18Z",
"website_cta": "READ_MORE",
"account_id": "abc1"
},
"data_type": "card",
"request": {
"params": {
"name": "Test Website Card 1",
"card_type": "WEBSITE",
"account_id": "abc1",
"image": "https://pbs.twimg.com/peacock/398520248267071488/image.jpg",
"website_url": "https://support.twitter.com/",
"website_title": "Twitter Help Center",
"website_cta": "SUBSCRIBE",
}
}
}
enter code here
最后一行,"website_cta":"SUBSCRIBE",将号召性用语 (cta) 设置为订阅。
如果有人可以分享他们如何在通过 Twitter 发布的推文中添加号召性用语按钮的经验,我们将不胜感激 API: POST statuses/update
预期结果
- 推文中的订阅 按钮
- 点击此按钮后出现订阅对话框
感谢您的帮助
https://dev.twitter.com/ads/reference/post/accounts/%3Aaccount_id/cards/website
{
"data": {
"name": "Test Website Card 1",
"id": "g9z",
"preview_url": "https://cards.twitter.com/cards/abc1/g9z",
"created_at": "2014-05-18T21:29:18Z",
"card_type": "WEBSITE",
"updated_at": "2014-05-18T21:29:18Z",
"website_cta": "READ_MORE",
"account_id": "abc1"
},
"data_type": "card",
"request": {
"params": {
"name": "Test Website Card 1",
"card_type": "WEBSITE",
"account_id": "abc1",
"image": "https://pbs.twimg.com/peacock/398520248267071488/image.jpg",
"website_url": "https://support.twitter.com/",
"website_title": "Twitter Help Center",
"website_cta": "SUBSCRIBE",
}
}
}
enter code here
最后一行,"website_cta":"SUBSCRIBE",将号召性用语 (cta) 设置为订阅。