Is there a source that I can use as example? On 2 sep, 16:37, Tom van der Woerdt <i...@tvdw.eu> wrote: > These scripts (Basic Authentication) were blocked a few days ago. You > should use OAuth. > > http://dev.twitter.com/pages/auth > > Tom > > On 9/2/10 4:16 PM, Robertvlienden wrote: > > > > > Hello! > > > I have a question, > > I want to programm a simple twitter BOT that shouts some quote's and > > things like the time. > > But, by today my test script doesnt work! > > > This is the script: > > > <?php > > // Set username and password > > $username = 'rvlienden_bot'; > > $password = '*******'; > > // The message you want to send > > $message = 'a twitter API test'; > > // The twitter API address > > $url = 'http://twitter.com/statuses/update.xml'; > > // Alternative JSON version > > // $url = 'http://twitter.com/statuses/update.json'; > > // Set up and execute the curl process > > $curl_handle = curl_init(); > > curl_setopt($curl_handle, CURLOPT_URL, "$url"); > > curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); > > curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); > > curl_setopt($curl_handle, CURLOPT_POST, 1); > > curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message"); > > curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password"); > > $buffer = curl_exec($curl_handle); > > curl_close($curl_handle); > > // check for success or failure > > if (empty($buffer)) { > > echo 'message'; > > } else { > > echo 'success'; > > } > > ?> > > > Can you help me? > > > Greetings, > > Robert
-- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en