Hello all,

I'm testing Abraham twitter library and works really nice.

But I have a doubt for more simple stuff... Imagine that I want to do
a call to twitter without authenticate first. For example, to get the
last 20 public tweets I dont need to authenticate first, right? So,
you have any example how to do it?

I looked at the http method in twitteroauth class and I tried
something like:

$content = json_decode($connection->http('https://api.twitter.com/1/
statuses/public_timeline.json', 'GET'));

but my doubt is how can I create the $connection object? I tried
something like:

$connection = new TwitterOAuth($CONSUMER_KEY, $CONSUMER_SECRET);

But didn't work.
Can you help me?

P.S.: sorry for the stupid question...

Reply via email to