Re: [twitter-dev] Re: Users/Lookup

2011-04-24 Thread Abraham Williams
Glad to hear you got it working Gabe. I'm not sure what was causing it to
not work but the full URL is not required and the following shortened
version should work fine. I also noticed you had a space before the second
screen_name that you probably shouldn't include.

$userDeets = $connection->get('users/lookup', array('screen_name' =>
'biz,twitterapi'));

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
 Just launched from Answerly :
InboxQfor Chrome
@abraham  | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Tue, Apr 12, 2011 at 13:06, Gabe  wrote:

> Thanks to Abraham for reminding me about var_dump which showed the
> results as NULL.
>
> At risk of outing myself as stupid I will do so anyway in case there
> might be someone out there who has also been searching for how to do
> this, from start to finish.
>
> This code works. The stupid part was not putting the entire URL in the
> get statement. I was errantly going by a different example. Assuming
> you are familiar with Abraham's Oauth library,
>
>  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
> $OAuthKey, $OAuthSecret);
>   $userDeets = $connection->get('http://api.twitter.com/1/users/
> lookup.json', array('screen_name' => 'biz, twitterapi'));
>
>   //var_dump($userDeets);
>
>  foreach ($userDeets as $item)
>{
>  echo $item->screen_name . ": ";
>   echo $item->followers_count;
>  echo "";
>}
>
>
> On Apr 12, 3:31 pm, Gabe  wrote:
> > Neither works. Am I processing the results correctly?
> >
> > On Apr 12, 3:25 pm, Abraham Williams <4bra...@gmail.com> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Try:
> >
> > > $userDeets = $connection->get('users/lookup' array('screen_name' =>
> > > 'biz,twitterapi'));
> >
> > > That should work.
> >
> > > Abraham
> > > -
> > > Abraham Williams | Hacker Advocate | abrah.am
> > > Just launched from Answerly :
> > > InboxQfor Chrome
> > > @abraham  | github.com/abraham |
> blog.abrah.am
> > > This email is: [ ] shareable [x] ask first [ ] private.
> >
> > > On Tue, Apr 12, 2011 at 12:15, Gabe  wrote:
> > > > Hi,
> > > > I have read all the users/lookup related posts and also scoured the
> > > > internet looking for an appropriate example.I posted a question as a
> > > > reply on one but don't see it so I am hoping someone can help a
> > > > twitter api newbie.
> >
> > > > I just want to get results from users/lookup. I am using Abraham's
> > > > Oauth library, which I have been able to get to work in other
> > > > instances with no problems. I'm hoping it's my lack of understanding
> > > > of how the syntax should be. Here is the code:
> >
> > > >  // all values populated correctly
> > > >  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
> > > > $OAuthKey, $OAuthSecret);
> > > >  // saw this example as correction of the following line; neither
> > > > seems to work
> > > >  $userDeets = $connection->get('/users/lookup.json',
> > > > array('screen_name' => 'biz,twitterapi'));
> > > >  // $userDeets = $connection->get('/users/lookup.json?
> > > > screen_name=biz,twitterapi');
> >
> > > >  foreach ($userDeets as $item)
> > > >{
> > > >  echo $item->followers_count;
> > > >  echo "";
> > > >}
> >
> > > > Thanks in advance for any insight.
> >
> > > > -Gabe
> >
> > > > --
> > > > 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
>

-- 
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


Re: [twitter-dev] Sitebucket: Python based, threaded Site Stream monitor

2011-04-24 Thread M. Edward (Ed) Borasky
HootCourse looks nice ... you'll probably end up changing the name,
though, unless you've negotiated some terms with the HootSuite folks.
;-)

On Sun, Apr 24, 2011 at 1:03 PM, Thomas  wrote:
> Hi everyone,
>
> I've been working on a Python based, threaded site stream monitor that
> follows the requirements defined at http://dev.twitter.com/pages/site_streams.
> It's called Sitebucket and it's available on Github:
> https://github.com/thomasw/sitebucket If you have beta access to the
> site streams endpoint, you should check it out. I think you'll like
> it.
>
> I've been using Sitebucket in combination with some asynchronous
> processing magic in production for http://hootcourse.com going on
> about two months now. It's been working out really well, so I figured
> it was finally time to share. You can find Sitebucket's full
> documentation here: http://thomasw.github.com/sitebucket/
>
> Admittedly, she still needs a bit of work. There's a high level to do
> list at http://thomasw.github.com/sitebucket/todo.html if anyone wants
> to dive in and help out!
>
> If you find any problems or have requests, please submit a ticket
> https://github.com/thomasw/sitebucket/issues.
>
> Thanks,
> Thomas
>
> --
> 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
>



-- 
http://twitter.com/znmeb http://borasky-research.net

"A mathematician is a device for turning coffee into theorems." -- Paul Erdős

-- 
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-dev] where to start?

2011-04-24 Thread for_twitter
Hi,

If i need to get my tweet updates on the android application, where do
i start?
Do i need any library to use?
Di i need any Twitter SDK as such.
The authentication process is particularly the biggest step i am
worried about.
Any sample code or project links will help me get to my end goal
faster.

Thanks.

vj

-- 
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-dev] Sitebucket: Python based, threaded Site Stream monitor

2011-04-24 Thread Thomas
Hi everyone,

I've been working on a Python based, threaded site stream monitor that
follows the requirements defined at http://dev.twitter.com/pages/site_streams.
It's called Sitebucket and it's available on Github:
https://github.com/thomasw/sitebucket If you have beta access to the
site streams endpoint, you should check it out. I think you'll like
it.

I've been using Sitebucket in combination with some asynchronous
processing magic in production for http://hootcourse.com going on
about two months now. It's been working out really well, so I figured
it was finally time to share. You can find Sitebucket's full
documentation here: http://thomasw.github.com/sitebucket/

Admittedly, she still needs a bit of work. There's a high level to do
list at http://thomasw.github.com/sitebucket/todo.html if anyone wants
to dive in and help out!

If you find any problems or have requests, please submit a ticket
https://github.com/thomasw/sitebucket/issues.

Thanks,
Thomas

-- 
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-dev] thumbnail with iframe

2011-04-24 Thread Irene
Hi all,

I must modify an application in Java struts 2 with Ajax, and I have
used iframe for twitter button, all is correct but when I press
"follow one link", it appear the thumbnail by deffect.

I want that appears a determinated image, someone know if it's
possible?.

Thanks in advance , Irene.

-- 
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-dev] Getting a users status using statusesUserTimeline() and formatting it to get rid of the irrelevant output

2011-04-24 Thread Ian
Hi,

I'm having trouble trying to format the response when I request the
last 1 status using statusesUserTimeline().

I am using the http://classes.verkoyen.eu/twitter_oauth class. When I
request the status it provides lots of information about the the user
who posted the status (which I don't want, I just purely want the
status.)

The output being provided is:

array(1) { [0]=> array(19) { ["in_reply_to_user_id"]=> NULL
["truncated"]=> bool(false) ["text"]=> string(12) "Happy
Easter" ["id_str"]=> string(17) "6218293562233088" ["geo"]=> NULL
["retweet_count"]=> int(0) ["favorited"]=> bool(false)
["in_reply_to_screen_name"]=> NULL ["source"]=> string(73) "Apex Web
Studio" ["created_at"]=> string(30) "Sun Apr 24 15:55:37 +
2011" ["in_reply_to_status_id_str"]=> NULL ["contributors"]=> NULL
["retweeted"]=> bool(false) ["in_reply_to_user_id_str"]=> NULL
["in_reply_to_status_id"]=> NULL ["user"]=> array(2) { ["id_str"]=>
string(8) "6218293562233088" ["id"]=> string(8) "6218293562233088" }
["id"]=> string(17) "62182917585113088" ["place"]=> NULL
["coordinates"]=> NULL } }

Please could you tell me how to format it so I can only get out the
status update saying "Happy Easter", I have tried using echo
($response["text"]); and string(12) but it says the index text doesn't
exist.

Your help would be appreciated.

Cheers,

Ian

-- 
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-dev] Re: Incorrect Signature errors with both Tweepy and python-twitter

2011-04-24 Thread bear
your welcome - glad you found a solution!

-- 
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-dev] Re: Incorrect Signature errors with both Tweepy and python-twitter

2011-04-24 Thread chris
Regenerating the keys did the trick. Turns out there is a bug in the
Django app that I'm using for Twitter authentication that uses stale
access tokens. Updating the user's access token whenever he/she logs
into my app fixed the issue.

Also, apigee.com has a really good Twitter API panel.

Thanks for the help.

On Apr 24, 1:13 am, bear  wrote:
> Here is what I see:
>
> send: u'GET
> /1/account/verify_credentials.json?oauth_nonce=85271670&oauth_timestamp=130 
> 3621152&oauth_consumer_key=...&oauth_signature_method=HMAC-SHA1&oauth_versi 
> on=1.0&oauth_token=...&oauth_signature=...
> HTTP/1.1\r\nAccept-Encoding: identity\r\nHost:
> api.twitter.com\r\nConnection: close\r\nUser-Agent:
> Python-urllib/2.7\r\n\r\n'
> reply: 'HTTP/1.1 200 OK\r\n'
>
> and then send looks identical to yours (order and fields) so that is telling
> me you may need to regenerate your tokens (especially since you are having
> issues with another lib.)  
>
> Have you tried a test using that test twitter api page? I am drawing a blank
> on the link :(

-- 
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


Re: [twitter-dev] Re: /1/lists/show doesn't work when given a list slug

2011-04-24 Thread Arnaud Meunier
Hey there!

There are two ways to identify a list with the new endpoints:

1) With the "list_id" parameter. For example:
- http://api.twitter.com/1/lists/show.json?list_id=574

2) With the combination of "slug" AND ("owner_id" OR "owner_screen_name")
parameters. For example:
- http://api.twitter.com/1/lists/show.json?slug=team&owner_id=783214
-
http://api.twitter.com/1/lists/show.json?slug=team&owner_screen_name=twitter

Arnaud / @rno 



On Fri, Apr 22, 2011 at 6:09 PM, Joe Mayo  wrote:

> Seeing the same thing here.  It would be nice to have some guidance on
> proper usage or confirmation whether it's a bug.
>
> Joe
>
> On Apr 22, 4:16 pm, Craig Walls  wrote:
> > Per this announcement:
> http://groups.google.com/group/twitter-api-announce/browse_thread/thr...
> >
> > I'm changing my code to use the new routes. When I do something like:
> >
> > https://api.twitter.com/1/lists/show.json?list_id={list ID}
> > &screen_name={screen name} orhttps://
> api.twitter.com/1/lists/show.json?list_id={list
> > ID}&user_id={user ID}
> >
> > ...it works fine. In fact, it seems that the screen_name and user_id
> > are optional when using a list ID (because the list ID is unique on
> > its own?).
> >
> > But if I do this...
> >
> >
> https://api.twitter.com/1/lists/show.json?slug={slug}&screen_name={screen
> > name} orhttps://
> api.twitter.com/1/lists/show.json?slug={slug}&user_id={user
> > ID}
> >
> > ...it doesn't work. I've tried it for several different list slugs,
> > both public and private, and no dice. Every time I get an HTTP 400
> > response.
> >
> > Per that announcement, shouldn't it work if I give it the list slug
> > and either a user ID or screen name?
>
> --
> 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