[twitter-dev] Re: How do I get the id of the last status update?

2010-09-22 Thread Polskaya
My fault! I should have done print $status->id; not print $status Thanks again for your help Abraham! On 22 sep, 23:52, Polskaya wrote: > Thank you Abraham for your swift reply! > > This is the code I use now: > > $status = $connection->post('statuses/update'

[twitter-dev] Re: How do I get the id of the last status update?

2010-09-22 Thread Polskaya
Thank you Abraham for your swift reply! This is the code I use now: $status = $connection->post('statuses/update', array('status' => 'mmmdedju')); $status->id; echo $status; I get error Catchable fatal error: Object of class stdClass could not b

[twitter-dev] How do I get the id of the last status update?

2010-09-22 Thread Polskaya
Hi all, I got a bit stuck I'm afraid. I have a single user application. Using the code below, I can post a status update. However, I would like to receive the id of that last update. include('oAuth/twitteroauth.php'); define("CONSUMER_KEY", "***"); define("CONSUMER_SECRET", "***"); define("OAUTH_T