I had an error on the line
$displaytrendquery = str_replace(“\”", “”", $trendquery);
It didn’t like “”", so I changed it to “‘”.
That works BRILLIANTLY so far, but I’m not sure it’s reliable. Is this to account for double-quotes within the trending tweets?
PHP v5.2.9.
I’ve been learning the Zend Framework to interface with Twitter, but they have not yet implemented RT or List API functionality, and it seems perhaps less elegant than learning the API directly. Thank you so much for providing this.
2 Comments to How to Use the Twitter API
by Ese Dulce
On November 25, 2009 at 1:08 pm
I had an error on the line
$displaytrendquery = str_replace(“\”", “”", $trendquery);
It didn’t like “”", so I changed it to “‘”.
That works BRILLIANTLY so far, but I’m not sure it’s reliable. Is this to account for double-quotes within the trending tweets?
PHP v5.2.9.
I’ve been learning the Zend Framework to interface with Twitter, but they have not yet implemented RT or List API functionality, and it seems perhaps less elegant than learning the API directly. Thank you so much for providing this.
Trackbacks