Closed (fixed)
Project:
Twitter
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2011 at 02:17 UTC
Updated:
24 Aug 2012 at 11:51 UTC
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
Comment #1
sarhugo commented+1
Should be used to check if post was successfull
Comment #2
psychobyte commented+1
Comment #3
juampynr commentedtwitter_set_status() now returns the response from Twitter API.
http://drupalcode.org/project/twitter.git/commitdiff/db4ef40