【问题标题】:How to Add Call-to-Action Button Inside Tweets via Twitter API如何通过 Twitter API 在推文中添加号召性用语按钮
【发布时间】:2015-05-27 20:53:16
【问题描述】:

如果有人能分享他们如何在通过 Twitter API 发布的推文中添加号召性用语按钮的经验,将不胜感激: POST statuses/update

预期结果

  1. 推文内的订阅按钮

  1. 点击此按钮后,订阅对话框出现

感谢您的帮助

【问题讨论】:

    标签: twitter


    【解决方案1】:

    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) 为订阅。

    【讨论】:

    • 感谢您的回答。似乎添加号召性用语按钮是 Advertisement API 的一部分,而不是定期状态更新。想知道的都有。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-08
    • 2022-11-11
    • 1970-01-01
    • 2013-05-30
    • 2021-07-24
    • 2020-07-21
    相关资源
    最近更新 更多