Skip to content

Instantly share code, notes, and snippets.

@aerith
Created July 1, 2009 07:54
Show Gist options
  • Save aerith/138660 to your computer and use it in GitHub Desktop.
Save aerith/138660 to your computer and use it in GitHub Desktop.
# $username, $password, $status は適宜変更しよう。
# $status は投稿前に urlencode するとかしましょう。
# 超手抜き。
$c = curl_init("http://{$username}:{$password}@twitter.com/statuses/update.xml?status={$status}");
curl_setopt($c, CURLOPT_POST, 1);
curl_exec($c);
curl_close($c);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment