Setting Up Twitter Bots with OAuth | maSnun's logs

Thanks for the description, very useful! A couple of suggestions…

Maybe you should say a sentence or two more about setting up the application at Twitter, which you skip over. That form is a little baffling if you don’t know much about OAuth, so it would be useful to say something like “Set the ‘Application Type’ to ‘Client’ and ‘Default Access Type’ to ‘Read & Write’.”

It would also be useful to know how to test for an error after posting the status. For the PHP version, maybe something like:

$response = $connection->post('statuses/update', array('status' => "Hello Twitter OAuth!"));
if ($connection->lastStatusCode() != 200) {
    print $response->error;
}

Although lastStatusCode() appears not to be working properly at the moment…

Commenting is turned off on this blog.

24 Aug 2010 at Twitter

  • 7:39pm: Phew: it looks like I successfully upgraded @samuelpepys to use OAuth without having to understand OAuth.
  • 3:30pm: A pleasant afternoon of flaneuring. Now off to the Heathrow to celebrate the return of her majesty.
  • 10:28am: @katylindemann @joroach Presumably the council are the freeholder if it's an "ex-council" block?
  • 10:24am: @joroach Imminent planned costs like that should have come up in your survey/search or something when you were buying. :(
  • 8:46am: @rooreynolds Not sure. I used to have to think a lot more about what to keep/backup/trash when my hard drive was only 40MB or 160MB…
  • 8:25am: I wonder why my hard drive is quite full then I come across things like the 10GB of old techno I downloaded just because it was there.
  • 7:48am: @hondanhon @katylindemann @ianbetteridge There must be a new iWork soon, surely... I keep putting off buying it until a new one. '09?

24 Aug 2010 in Links