The Twitter API can return JSON. No need to "hack" anything, that's why they 
provide an API - to make it easy!

Just use curl to retrieve the JSON and convert it to an array.

Sent from my iPod

On 28 Jan 2011, at 3:58, Patrick <kenned...@gmail.com> wrote:

> Hmmm, true.  In fact, what epiTwitter really return various array sets
> of data, which I can focus on.  So, it's not really in JSON format
> issue at this point, as I was initially thinking.
> 
> I'm wondering if anyone has code that can gracefully digest different
> arrays returned from the API (e.g, user_timeline v.
> verify_credentials, etc), rather than having to hack each array to
> mine the API data returned.  I'm sure there's some nice code out
> there. I'd much prefer focus on my ideas and core logic than hacking
> away on such various arrays, eating up valuable twitter resources and
> bandwidth.  Otherwise, I will hack it as best I can and hopefully find
> such code example soon.
> 
> 
> On Jan 26, 10:33 pm, Patrick <kenned...@gmail.com> wrote:
>> Does anyone have a simple JSON parser example in PHP?  I'm looking for
>> something that's simple - perhaps a PHP include file that's a function
>> or two, where you can pass in the JSON data and get it parsed and
>> returned as an array to the calling program.  I'm beginning to write
>> my own, but I figured seeing an example of a slightly better one might
>> get me going quicker and better.  Obviously, I can tweak it from
>> there.  Thanks in advance for any input.
> 
> -- 
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group: 
> http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to