Created
July 1, 2009 07:54
-
-
Save aerith/138660 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $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