Does anyone have experience with the Twitter API? I'm developing my site that can tweet status to twitter timeline from my site. Since now, a new status will post to twitter timeline after clicked on button Tweet.
However, I want to set datetime to post status to Twitter timeline. For example, I set datetime to post at 9AM and I click button at 8AM; so at 9AM, new status will be post in twitter timeline. Is that possible?
My code
This code will post new status when click on button Tweet:
<?php
session_start();
$message = "I want to set datetime to tweet new status";
$access_token = $_SESSION['access_token'];
$connection = new TwitterOAuth(YOUR_CONSUMER_KEY, YOUR_CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
$parameters = array('status' => $message);
$status = $connection->post('statuses/update', $parameters);
?>