[twitter-dev] Any iPhone Twitter apps with OAuth login ?

2009-12-06 Thread Ram
As a followup to the mobile OAuth discussions from October (see
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/c4a8637359b25683/21da1c7f070652f8#21da1c7f070652f8)


Does anyone know of any (publicly released) iPhone or other mobile
Twitter apps that use OAuth ?

I'm partly curious to know/confirm whether our app is the only iPhone
(or mobile) app that uses Twitter OAuth login for posting
tweets, but I also want to know what you think of the UI, if
you've used Twitter OAuth login in any publicly released mobile app.

Thanks Ram


Re: [twitter-dev] Twitter Photo service for oauth clients

2009-12-06 Thread Dave Sherohman
On Sat, Dec 05, 2009 at 10:00:30PM -0800, Michael Steuer wrote:
 Are any of you aware of a photo service that allows picture uploads from 
 my oauth based Twitter client? The Api for all the usual suspects  
 (twitpic, yfrog, tweetphoto, etc) requires  passing of the user's  
 Twitter username and password, but being an oauth client, I don't have  
 the user's password available to me. How are other oauth based clients  
 dealing with this? It seems my only option is building my own, but I'd  
 rather hook into an existing service.

You're going to have to roll your own, I expect.  The Twitter API
doesn't currently support OAuth delegation, so a user wanting to use
your site to upload a photo to one third-party site and tweet about it
would have to authenticate twice, once from your site to the photo site
(to do the upload) and a second time from your site to Twitter (to send
the tweet, since it's not possible for the photo site to use the
credentials from their login on your site to tweet on their behalf).

Offhand, I do know of one site which takes OAuth logins and accepts
photo uploads, but:
a) It's a fishing niche site, so non-fishing photos wouldn't be entirely
   welcome there,
b) it does not provide an API, OAuth-based or otherwise, and
c) I had to write it myself.

-- 
Dave Sherohman


Re: [twitter-dev] Twitter Photo service for oauth clients

2009-12-06 Thread Harshad RJ
Well for an oauth token to be used, the API would need the consumer key as
well. Would applications share their consumer key with the photo service?

On Sun, Dec 6, 2009 at 11:30 AM, Michael Steuer mste...@gmail.com wrote:

 Hi all,

 Are any of you aware of a photo service that allows picture uploads from my
 oauth based Twitter client? The Api for all the usual suspects (twitpic,
 yfrog, tweetphoto, etc) requires  passing of the user's Twitter username and
 password, but being an oauth client, I don't have the user's password
 available to me. How are other oauth based clients dealing with this? It
 seems my only option is building my own, but I'd rather hook into an
 existing service.

 Looking forward to your feedback!

 Thanks,

 Michael





-- 
Harshad RJ
http://hrj.wikidot.com


[twitter-dev] Re: How to get the most followed users?

2009-12-06 Thread dbasch


 not that I know of.  you could, conceivably, stroll through all the
 followers of a particular user, gather their number of followers, and
 then gather their followers and wash, lather, rinse, repeat.

It would be easier to do it the other way around. Start picking random
users and see how they follow. The list of the most followed people
should stabilize relatively quickly.


Re: [twitter-dev] How to get the most followed users?

2009-12-06 Thread Abraham Williams
If you want the top 1000 by followers you could parse
http://twitterholic.com/.

On Sat, Dec 5, 2009 at 16:10, developar develo...@gmail.com wrote:

 Hi

 I was just trying to know how I can ge a list of the top twitter users
 who have most number of followers? there is no API to do that?

 Regards




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | Awesome Lists | http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States


[twitter-dev] Perl Catalyst Twitter Authentication Module

2009-12-06 Thread Jesse Stay
For any of you using Perl and Catalyst, I've created a Module enabling you
to handle Twitter OAuth credentials seamlessly in the native Catalyst
authentication process.  After installing this module, authenticating the
user is as simple as running $realm-credential-authenticate_twitter_url($c)
to send them to Twitter, and then in your callback verifying
$c-authenticate(). For those familiar with the Flickr authentication
modules for Catalyst this works very similar.

The module is located at
http://search.cpan.org/~jessestay/Catalyst-Authentication-Credential-Twitter-0.01000/lib/Catalyst/Authentication/Credential/Twitter.pmand
all the documentation can be found there - if you have any questions,
suggestions or issues please let me know. I've been using this on my own
site in production since April, but I'd love to know how I can make this
better!

Jesse


[twitter-dev] Re: Any iPhone Twitter apps with OAuth login ?

2009-12-06 Thread Ram
Thanks for the info, can you please tell us the name of your app and
what feedback (if any) you've received from users about the OAuth
login UI.

On Dec 6, 12:55 am, Rich rhyl...@gmail.com wrote:
 Nope we use oAuth on the iPhone

 The UI is better than it used to be, I haven't checked recently on
 whether pressing the Done key on the iPhone keyboard still defaults to
 the Deny button though.

 It would be nice if they could auto detect mobile and give us a
 specific interface, a bit like they do for geolocation settings.

 On Dec 6, 8:08 am, Ram group...@cascadesoft.net wrote:



  As a followup to the mobile OAuth discussions from October 
  (seehttp://groups.google.com/group/twitter-development-talk/browse_thread...)
  

  Does anyone know of any (publicly released) iPhone or other mobile
  Twitter apps that use OAuth ?

  I'm partly curious to know/confirm whether our app is the only iPhone
  (or mobile) app that uses Twitter OAuth login for posting
  tweets, but I also want to know what you think of the UI, if
  you've used Twitter OAuth login in any publicly released mobile app.

  Thanks Ram- Hide quoted text -

 - Show quoted text -


[twitter-dev] simply verify that user exists

2009-12-06 Thread TJ Luoma
Sorry, I'm having a brain cramp. I've been checking the wiki and can't
for the life of me figure out what's the preferred way of taking a
name and validating / verifying if the name is valid Twitter account.

Is http://twitter.com/users/show.xml?screen_name=FOO; (and checking
the response) the best way?

TjL


[twitter-dev] curl --netrc fails for adding to lists

2009-12-06 Thread TJ Luoma
Summary:  When I try to add someone to a list using 'curl' with
--netrc it is failing, but if I use -u username:password it works.

Of course the first thought is that ~/.netrc isn't setup right
(although it's been working fine for months). But I double checked
that it is. Watch:

1) Verify that my information in ~/.netrc is valid and accessible:

#  curl --location --referer ;auto -D - -s --netrc
http://twitter.com/account/rate_limit_status.xml
HTTP/1.1 200 OK
Date: Sun, 06 Dec 2009 20:41:13 GMT
{edited}

2) verify AGAIN that netrc is working

# curl --location --referer ;auto -D - -s --netrc
http://twitter.com/blocks/blocking.xml
HTTP/1.1 200 OK
Date: Sun, 06 Dec 2009 20:44:19 GMT
Server: hi
X-RateLimit-Limit: 2
{edited}


3) Try to add someone to list new-followers

# curl --location --referer ;auto -D - -s --netrc -d id=25148966
http://api.twitter.com/1/tj/new-followers/members.xml

HTTP/1.1 401 Unauthorized
Date: Sun, 06 Dec 2009 20:45:34 GMT
Server: hi
Status: 401 Unauthorized
WWW-Authenticate: Basic realm=Twitter API
X-Runtime: 0.00164
Content-Type: application/xml; charset=utf-8
Content-Length: 152
Cache-Control: no-cache, max-age=1800
Set-Cookie: 
_twitter_sess=BAh7BzoHaWQiJTgwMDhmYWMwNDU4ODkxNmIzODFhZjJmMTY4ZTU3YzkwIgpm%250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG%250AOgpAdXNlZHsA--e8bdf83c0b67e77b39c841d940153e181af893a3;
domain=.twitter.com; path=/
Expires: Sun, 06 Dec 2009 21:15:34 GMT
Vary: Accept-Encoding
Connection: close

?xml version=1.0 encoding=UTF-8?
hash
  request/1/tj/new-followers/members.xml/request
  errorCould not authenticate you./error
/hash

This happens every time.


4) Try same command, but using -u instead of --netrc (password
*-ed out in email)

# curl --location --referer ;auto -D - -s -u tj:** -d
id=25148966 http://api.twitter.com/1/tj/new-followers/members.xml
HTTP/1.1 200 OK
Date: Sun, 06 Dec 2009 20:46:10 GMT
Server: hi
X-Transaction: 1260132370-28062-8379
Status: 200 OK


I have no idea why this might not be working. Can anyone hazard a guess?

TjL


[twitter-dev] Re: simply verify that user exists

2009-12-06 Thread Feras Allaou
Well , this is a useful Idea but I think you should write a lot of
line for parsing the XML code no ?
try this :
http://pear.php.net/package/Services_Twitter
I hope this can be useful for you .


Regards,
feras

On Dec 6, 10:59 pm, TJ Luoma luo...@luomat.net wrote:
 Sorry, I'm having a brain cramp. I've been checking the wiki and can't
 for the life of me figure out what's the preferred way of taking a
 name and validating / verifying if the name is valid Twitter account.

 Is http://twitter.com/users/show.xml?screen_name=FOO; (and checking
 the response) the best way?

 TjL


[twitter-dev] Re: strange search api behavior

2009-12-06 Thread Martin Omander

I noticed the same behavior in my app: when I include since_id in the
search API call, I often don't get all the tweets I should. If I run
without since_id, I see tweets with IDs that should have shown up in
the search where I included since_id.

Any response from Twitter? The since_id parameter is a very useful
feature of the API. It would reduce system load and bandwidth
considerably for everyone if it worked right.

/Martin


On Nov 23, 6:14 pm, Hayes Davis ha...@appozite.com wrote:
 +1 on this. I'm frequently getting 0 results from the search API (not an
 error, just 0 results) when including the since_id even though a search
 without the since_id shows that there are tweets with larger ids for the
 same query string.

 Hayes



 On Mon, Nov 23, 2009 at 1:16 AM, Karthik fermis...@gmail.com wrote:
  I have this problem as well. I use since_id and I query for newer
  results every minute. For past 10 days, I'm seeing my app was not
  indexing many tweets. I compared the results with search.twitter.com
  and I can clearly see that I'm missing out a lot of tweets, if I keep
  including the since_id parameter. I guess, there are some issues in
  the search system.

  On Nov 19, 3:30 am, Tadeu Andrade tadeu.andr...@gmail.com wrote:
   hi folks,
   since last week, I noticed thatsearchis behaving a little strange.
   For example, if I do a query on a keyword using since_id, sometimes I
   get no results. If I remove since_id parameters, the query succeed and
   if I repeat the initial query (with since_id), then I get results.
   Same thing occurs if I query from the web page and later from API (via
   json).
   Anyone else has noticed this weird behavior?

   cheers

   Tadeu


[twitter-dev] Max tweet ID

2009-12-06 Thread ESPR!T
Hi, I have used the search for tweets newer then some tweet id (cron
job accessing the search and getting all tweets containing some word
which id is more then previous one) but looks like it doesn't work for
me correctly anymore. I have modified my application a little week ago
but I didn't touched the functionality around the search.

Basically now I am getting also some older tweets in search result
again and again (I am storing all the searched tweet in my db so I can
see that the tweet is being found again even if the max id is higher).
Any1 has the same problem (maybe something changed in API in last 3-5
days) or is the problem really on my side?

Thanks


[twitter-dev] How to build a form to Login into Twitter?

2009-12-06 Thread Feras Allaou
Dear Sirs,

I really need your help . I tried to read the Api wiki but I didn't
understand anything :S . I want anyone who can help me in building a
form to Login into Twitter ! I am PHP programmer , so could anyone
explain the concept for me ?


Waiting your kind reply.



Regards,
Feras Allaou


Re: [twitter-dev] Re: strange search api behavior

2009-12-06 Thread Damon Clinkscales
On Sun, Dec 6, 2009 at 3:24 PM, Martin Omander moman...@google.com wrote:

 I noticed the same behavior in my app: when I include since_id in the
 search API call, I often don't get all the tweets I should. If I run
 without since_id, I see tweets with IDs that should have shown up in
 the search where I included since_id.

 Any response from Twitter? The since_id parameter is a very useful
 feature of the API. It would reduce system load and bandwidth
 considerably for everyone if it worked right.

Sounds like there is confirmation. Has anyone filed an issue?

Once you have an issue link, please post back to this thread so people
can star it.

Best,
-damon
--
http://twitter.com/damon


[twitter-dev] Tons of 502s

2009-12-06 Thread Dewald Pretorius
Twitter, are you aware that the API has been throwing tons of 502s on
all calls since around 5:00 PM CST?



Re: [twitter-dev] Tons of 502s

2009-12-06 Thread Chad Etzel
everything appears dead... website (failwhale), API, streams, ...
-chad

On Sun, Dec 6, 2009 at 6:13 PM, Dewald Pretorius dpr...@gmail.com wrote:
 Twitter, are you aware that the API has been throwing tons of 502s on
 all calls since around 5:00 PM CST?




RE: [twitter-dev] Tons of 502s

2009-12-06 Thread Dean Collins
www.Twitter.com is down here from Time Warner in NY. Was funny because
originally I thought it was me and something with my IP address because
I was testing something out for my www.LiveFootballChat.com app when it
stopped working and blocking all access to api and website.
 

 

Cheers,

Dean

 


-Original Message-
From: Dewald Pretorius [mailto:dpr...@gmail.com] 
Sent: Sunday, December 06, 2009 6:14 PM
To: Twitter Development Talk
Subject: [twitter-dev] Tons of 502s

Twitter, are you aware that the API has been throwing tons of 502s on
all calls since around 5:00 PM CST?



Re: [twitter-dev] Tons of 502s

2009-12-06 Thread Cameron Kaiser
 everything appears dead... website (failwhale), API, streams, ...

On the other hand, this gave my Fail Whale detector in TTYtter 1.0.0 a
really good workout. ;-)

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- FORTUNE: You will be hit with a lot of money. Avoid armoured trucks. ---


[twitter-dev] Re: Tons of 502s

2009-12-06 Thread LeeS - @semel
Everything is down for me too.
Twitter.com itself shows a fail whale.

Lee


[twitter-dev] Re: Tons of 502s

2009-12-06 Thread LeeS - @semel
I'm glad the fail whale is still around. I hadn't seen it in a while
and was starting to miss it.

Lee


[twitter-dev] Re: How to get the most followed users?

2009-12-06 Thread LeeS - @semel
You've got to basically build your own database of users.  That's what
I did to create this page:

http://listorious.com/top/followers

Lee

On Dec 6, 10:15 am, Abraham Williams 4bra...@gmail.com wrote:
 If you want the top 1000 by followers you could parsehttp://twitterholic.com/.

 On Sat, Dec 5, 2009 at 16:10, developar develo...@gmail.com wrote:
  Hi

  I was just trying to know how I can ge a list of the top twitter users
  who have most number of followers? there is no API to do that?

  Regards

 --
 Abraham Williams | Community Evangelist |http://web608.org
 Hacker |http://abrah.am|http://twitter.com/abraham
 Project | Awesome Lists |http://twitterli.st
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from Madison, WI, United States


Re: [twitter-dev] Re: Tons of 502s

2009-12-06 Thread Mark McBride
This should be resolved now

http://status.twitter.com/post/272315876/responding-to-whales

On Sun, Dec 6, 2009 at 3:33 PM, LeeS - @semel lse...@gmail.com wrote:
 I'm glad the fail whale is still around. I hadn't seen it in a while
 and was starting to miss it.

 Lee




-- 
   ---Mark

http://twitter.com/mccv


[twitter-dev] statuses/friends issue?

2009-12-06 Thread hansamann
Hi all,

my code is calling api method statuses/friends with an increasing
paging to get all friends information. Since a couple of hours it
seems it never reaches a page with no friends or less than n friends
so my code stops the recursion.

Anyone similar problems?


[twitter-dev] Re: Search API questions

2009-12-06 Thread enygmatic
@AJ Chen
You are 100% correct when you say that it’s the user’s responsibility
to clean up duplicates in the search results. My issue is not so much
about there being duplicates, but the fact that there are so many of
them. My concept of search is that if there have been new tweets
posted, say 30 odd since I last queried search, I ought to get the new
tweets on my next query. What I shouldn’t be getting is, search
results from say two hours ago whenever I query search. Maybe I am
wrong here, but that’s how I expected the search API to work.
On the issue of Rate Limiting, I am really not sure what the rate
limit would be, since the documentation does not give a clear picture
of what that limit is. The documentation (http://apiwiki.twitter.com/
Rate-limiting) merely hints that it is significantly higher than the
150 requests per hour limit for the REST API. Considering this, I
don’t think my application / script should be exceeding that limit
since I only make 4 requests per hour.
Anyway, would really appreciate it if someone could point me in the
right direction, or at least let me know if I am trying to the wrong
thing with the search API.

Regards,
Elroy

On Dec 3, 6:31 am, AJ Chen cano...@gmail.com wrote:
 unless I miss something, it's usually user's responsibility to dedup
 returned tweets on the client side. if you see duplicates between two feeds,
 just remove the duplicates. this is what client application should have in
 any case.

 if you see no fresh tweets but only old tweets, there may be a possibility
 that twitter returns only cashed results because you api calls exceed
 rate-limit. I'm not sure, though.  does any one know about rate-limit for
 using search 
 feedhttp://search.twitter.com/search.atomhttp://search.twitter.com/search.atom?geocode=19.017656%2C72.856178%2.
 ?

 -aj





 On Tue, Dec 1, 2009 at 8:49 PM, enygmatic enygma...@gmail.com wrote:
  Hi, Raffi
  Were you able to raise the cache issue with the search team?
  Seems the problem is worse than I thought. I have run my script
  (getting 25 results from search every 15 minutes, for Mumbai) for two
  days. The first day had 71% duplicate results due to the caching
  issue, while the second day fetched an amazing 90% duplicates. With
  these kind of results, I think it’s probably quite useless for me to
  even use the search API .
  So would appreciate if you could let me know if there is a chance that
  this issue may be resolved in the near future or if location specific
  streams would be available via the streaming API anytime soon. I
  understand that the twitter dev team has a lot on its hands, so it
  would be understandable if this isn’t anywhere in the list of features
  they intend to ship out in the near future. However, would definitely
  appreciate it if you could let me know if anything could be done or
  not.
  Thanks and Regards,
  Elroy Serrao

  On Nov 28, 7:45 pm, Raffi Krikorian ra...@twitter.com wrote:
   unfortunately, there is no (current) way to subscribe to the streaming
   API for a particular location.  as for the caching issue on the
   search, that's unfortunate, and i'll try to raise the issue with the
   search team next week.

@Abraham
I actually use the geocode with the search api for my script, so using
the search api isn't my problem. My problem is that I get stale
results from the search cache, even when querying after a sufficient
interval. Also the stale results seem hours old (at times, in fact
yesterday at 23:00 hours I got a few results that were from
22:00-22:30 hours. Didn't have the problem when using twitter search
from the browser). To overcome this Raffi Krikorian suggested using
the streaming api instead of the search api. My question was - how do
i get a location specific stream using the streaming api. From the
streaming api docs, there doesn't seem a way to do this at the moment,
which kind of defeats my purpose as I need to the deploy the script in
the next one week or so. Guess I'll have to live with the stale
results...

Anyway thanks for the help.

On Nov 28, 12:40 am, Abraham Williams 4bra...@gmail.com wrote:
On Fri, Nov 27, 2009 at 12:38, enygmatic enygma...@gmail.com wrote:
From what I have
gone through so far, there doesn't seem to be a way to query for
status updates from a certain geographical location, say limited
to a
city. I may be mistaken here, so do correct me if I am wrong.

Check out the search operators:http://search.twitter.com/operators

For example:http://search.twitter.com/search?q=near:NYC+within:15mi

Abraham
--
Abraham Williams | Community Evangelist |http://web608.org
Hacker |http://abrah.am|http://twitter.com/abraham
Project | Awesome Lists |http://twitterli.st
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States

   --
   Raffi Krikorian
   Twitter Platform Team
   ra...@twitter.com | @raffi- 

Re: [twitter-dev] Re: account/update_profile_background_image not working

2009-12-06 Thread Dhaval Parikh
Hey..

Has ne one implemented it with RoR?? I am not getting any error but the
image is not updated somehow.

Thanks

On Thu, Dec 3, 2009 at 1:45 PM, Matt matthewroberts...@gmail.com wrote:

 I haven't, but you have a space in the link you posed as the thread
 title.

 On Dec 3, 5:13 pm, dhaval dhaval.parik...@gmail.com wrote:
  Hey all
 
  Updating profile background image doesnt work for me. Is any one else
  facing the same issue?
 
  Let me know
 
  thanks




-- 
Dhaval Parikh
Software Engineer
Ruby on Rails
www.dhavalparikh.co.in
http://blog.dhavalparikh.co.in