Search code examples
apitwitter

Create a new scheduled Tweet via the API


I looked into their documentation and they do provide this feature:

https://support.twitter.com/articles/20170532-scheduled-tweets#How_to_create_a_new_scheduled_Tweet

But would it be possible to do this through the API (I didn't find any reference to this or attributes).


Solution

  • There's no way to do it with the Twitter API. You have two choices:

    1. Either tell your code to run at a specific time (using cron or similar), or check what the time is before posting.
    2. Use a third party service like Buffer - https://bufferapp.com/developers/api