I tried to save the twitter status id in my node in order to supply the customer with a "retweet" button when i found out that twitter_set_status is'nt returning anything.

function twitter_set_status($twitter_account, $status) {
  $twitter = twitter_connect($twitter_account);
  $twitter->status_update($status);
}

on the other side $twitter->status_update returns the complete Status Object
return new TwitterStatus($values);

wouldn't it be nice if we can have at least the id or false as a return value?

Comments

sarhugo’s picture

+1
Should be used to check if post was successfull

psychobyte’s picture

+1

juampynr’s picture

Version: 7.x-3.0-beta4 » 7.x-3.x-dev
Status: Active » Fixed

twitter_set_status() now returns the response from Twitter API.

http://drupalcode.org/project/twitter.git/commitdiff/db4ef40

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.