[twitter-dev] Can someone show me sample code on how to Post to Twitter with a User-Agent?

2009-10-26 Thread TrixJo
I have been googling for sample code and tutorials on how to post to twitter using CURL (PHP) and specifying a specific user agent. Say my user agent is myapplication.com. How do I then post to twitter using this user agent? thank you

[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-25 Thread TrixJo
been numerous   reported problems with PHP's JSON decoder that it doesn't handle the   very large numbers of Twitter's IDs well. On Sat, Oct 24, 2009 at 11:11, TrixJo tri...@gmail.com wrote: Hello I am trying to search twitter content using a mySQL/PHP entry in a table: $contents

[twitter-dev] XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread TrixJo
Hello I am trying to search twitter content using a mySQL/PHP entry in a table: $contents = file_get_contents( http://search.twitter.com/search.json? lang=enrpp=5q=.urlencode($row[topicTitle])); $json = json_decode($contents); I am returning the results via AJAX as an XML

[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread TrixJo
for other thnigs that I also have in XML format so I am putting everything together in the same format which is XML) On Oct 24, 1:31 pm, Dewald Pretorius dpr...@gmail.com wrote: Isn't it because you are trying to process a JSON object as XML data? Dewald On Oct 24, 2:11 pm, TrixJo tri

[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread TrixJo
it to amp; On Sat, Oct 24, 2009 at 11:55, TrixJo tri...@gmail.com wrote: JDG, I am certain that is where the error is coming from because the error supplied by the browser is pointing at my query string Dewald, I am processing the data via JSON into an array I then take that array

[twitter-dev] Finding the most popular trending topics

2009-08-23 Thread TrixJo
Trying to find the most popular trending topics. Currently using: http://search.twitter.com/trends/current.json?exclude=hashtags Is there a way that I can find the most popular trending topics as well as the number of retweets for each topic? That way I can save the trending topics in my

[twitter-dev] Trying to display JSON object

2009-08-22 Thread TrixJo
I am using the Twitter API and have the following JSON object returned after a search query. print_r($json) is: [code] $contents = file_get_contents(http://search.twitter.com/search.json? lang=enrpp=5q=MyNetwork); $json = json_decode($contents); echo print_r($json); [/code] outputs: [code]