通过 API 创建新的预定推文
Create a new scheduled Tweet via the API
我查看了他们的文档,他们确实提供了这个功能:
https://support.twitter.com/articles/20170532-scheduled-tweets#How_to_create_a_new_scheduled_Tweet
但是是否可以通过 API 来做到这一点(我没有找到任何对此或属性的引用)。
Twitter API 无法做到这一点。您有两个选择:
- 要么在特定时间告诉您的代码 运行(使用 cron 或类似工具),要么在发布前检查时间。
- 使用 Buffer 等第三方服务 - https://bufferapp.com/developers/api
这可以使用 Twitter 广告 API(预定推文 api)来完成。
来自 api 文档,
Scheduled Tweets allow an advertiser or user to create a Tweet that can be scheduled to go live at a later date. In addition to being able create and manage these Tweets, the API allows the ability to associate these Tweets with a line item, to be promoted once the Tweet goes live. This allows advertisers to stage create native Tweets and plan their campaign creatives in advance of any key initiatives. For example, staging a Tweet creative to live immediately upon a new product announcement.
The full set of functionality provided by the Scheduled Tweets API endpoints are listed below:
- Create, modify and view newly scheduled Tweets
- Associate a Scheduled Tweet with a line item
- Query and manage existing scheduled Tweets
- Once a Scheduled Tweet goes live, retrieve the live Tweet id
可以找到完整的详细信息here
您可以为帐户的完全可推广用户(默认)或在 as_user_id 参数中指定的用户创建预定推文。
每个帐户最多只能有 5 个用户...即使是开发者帐户,您也必须申请访问权限 API。
我查看了他们的文档,他们确实提供了这个功能:
https://support.twitter.com/articles/20170532-scheduled-tweets#How_to_create_a_new_scheduled_Tweet
但是是否可以通过 API 来做到这一点(我没有找到任何对此或属性的引用)。
Twitter API 无法做到这一点。您有两个选择:
- 要么在特定时间告诉您的代码 运行(使用 cron 或类似工具),要么在发布前检查时间。
- 使用 Buffer 等第三方服务 - https://bufferapp.com/developers/api
这可以使用 Twitter 广告 API(预定推文 api)来完成。
来自 api 文档,
Scheduled Tweets allow an advertiser or user to create a Tweet that can be scheduled to go live at a later date. In addition to being able create and manage these Tweets, the API allows the ability to associate these Tweets with a line item, to be promoted once the Tweet goes live. This allows advertisers to stage create native Tweets and plan their campaign creatives in advance of any key initiatives. For example, staging a Tweet creative to live immediately upon a new product announcement.
The full set of functionality provided by the Scheduled Tweets API endpoints are listed below:
- Create, modify and view newly scheduled Tweets
- Associate a Scheduled Tweet with a line item
- Query and manage existing scheduled Tweets
- Once a Scheduled Tweet goes live, retrieve the live Tweet id
可以找到完整的详细信息here
您可以为帐户的完全可推广用户(默认)或在 as_user_id 参数中指定的用户创建预定推文。
每个帐户最多只能有 5 个用户...即使是开发者帐户,您也必须申请访问权限 API。