[twitter-dev] Followers Timeline

2010-07-09 Thread Ron
Anyone know of any reason why an identical API call to the followers
timeline (api.twitter.com/1/statuses/followers.json) from two
different clients would return different results?  I'm specifying
"cursor=-1" for both, but in one client I get both the next and prev
cursor objects plus an array of user statuses, while in the other I
only get an array of user statuses.  Both requests are for the same
user account, which as only a handful of followers.

Anyone have any ideas?

Ron


[twitter-dev] API For Login

2010-07-09 Thread SoccerNation
Hey Guys,

I am trying to build an API that would help me build an application
wherein the user can log onto twitter from my website. Its kinda
similar to the "Facebook Connect" Application and I am trying to make
that in Classical ASP. Any help / ideas would be hugely appreciated.


PS: I am not talking about the twitter thing that would lead to my
website twitter account which would allow the users to look into the
tweets.




Re: [twitter-dev] Is users/lookup being throttled?

2010-07-09 Thread Matt Harris
Hi Adam,

The users/lookup method will return up to 100 users worth of information.
It's possible the users you are seeking do not exist on the system, are
suspended or have been deleted. If they are they will be dropped from the
100 IDs you send.

Matt

On Fri, Jul 9, 2010 at 6:58 AM, Adam Green <140...@gmail.com> wrote:

> I am calling 'http://api.twitter.com/1/users/lookup.json?
> screen_name=...' with a list of 100 screen names to update a list of
> users for an app I'm building for a client.. I'm running the script
> once per minute (so 60 api calls per hour), and checking return
> codes.  No other API calls are being made on this server.
>
> At first I was getting 100 user results. Then it dropped to 48. Then
> 25. Then 24. 23. 19. 18. 17. I have not received any error codes. Is
> this a general throttling algorithm? Is it specific to the world cup?
> Is there some limit I am exceeding, but still not getting an error
> code?
>
>


-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


Re: [twitter-dev] @anywhere iframes getting improper document domain?

2010-07-09 Thread Todd Kloots
Hello,

By chance are you only seeing this error in IE?  If so, the following
config for @Anywhere can fix your problem:

twttr.anywhere.config("domain", document.domain);

- Todd

On Fri, Jul 9, 2010 at 9:56 AM, dndrnkrd  wrote:
> I'm seeing same-origin policy issues at the completion of the
> @anywhere sign-in process, to the tune of: "permission denied for
> window www.example.com (document.domain has not been set) to get
> property Window.twttr from www.example.com (document.domain =
> http://example.com).
>
> My @anywhere app's primary domain is www.example.com, and to boot,
> example.com is in my allowed domains as well. Any ideas on why a) the
> generated tweetbox iframe sets its domain to http://example.com, and
> b) why this property get isn't permitted?
>


[twitter-dev] @anywhere iframes getting improper document domain?

2010-07-09 Thread dndrnkrd
I'm seeing same-origin policy issues at the completion of the
@anywhere sign-in process, to the tune of: "permission denied for
window www.example.com (document.domain has not been set) to get
property Window.twttr from www.example.com (document.domain =
http://example.com).

My @anywhere app's primary domain is www.example.com, and to boot,
example.com is in my allowed domains as well. Any ideas on why a) the
generated tweetbox iframe sets its domain to http://example.com, and
b) why this property get isn't permitted?


[twitter-dev] Re: Twitter Streaming API - Connection Refused

2010-07-09 Thread worksapp
It was an issue on our end. Thank you


[twitter-dev] Is users/lookup being throttled?

2010-07-09 Thread Adam Green
I am calling 'http://api.twitter.com/1/users/lookup.json?
screen_name=...' with a list of 100 screen names to update a list of
users for an app I'm building for a client.. I'm running the script
once per minute (so 60 api calls per hour), and checking return
codes.  No other API calls are being made on this server.

At first I was getting 100 user results. Then it dropped to 48. Then
25. Then 24. 23. 19. 18. 17. I have not received any error codes. Is
this a general throttling algorithm? Is it specific to the world cup?
Is there some limit I am exceeding, but still not getting an error
code?



Re: [twitter-dev] Any chance to get more than 20,000 calls per hour?

2010-07-09 Thread John Kalucki
I would suggest that you shouldn't limit your application development by
attempting to cover all user cases. It's highly unlikely that a celebrity
will ever use your service when it is starting out. Instead, I'd focus on
the common case user and first prove your value there.

-John Kalucki
http://twitter.com/jkalucki
Infrastructure, Twitter Inc.


On Fri, Jul 9, 2010 at 4:42 AM, deadlychaos wrote:

> Hi there,
>
> We have been building this application since 6 months now. It is anti-
> spam app which works with very different algorithms and has been very
> useful for twitter user (we have tested it with 150 calls). But the
> problem is our apps dig out lot of follower data to let the user know
> whether his followers are spam or not (it doesn't allow users to
> unfollow anyone). We all know, Twitter api consumes 1 call for
> retrieving 100 followers of a particular twitter user. Now 20,000
> calls are ok with normal users but some celebrities like Aston
> Kutcher, Britney Spears and EV have more than 2 million followers
> which means we cannot track. If they were few it would be ok but day
> by day as Twitter is growing at amazing rate many users are passing
> the 2 million milestone. So our app becomes useless for these users
> and which makes it imperfect. This is totally anti-spam app and I am
> sure folks at Twitter will love it once it does its work to chop off
> spam users. I know there have been many such apps but this is
> something everyone would love. We are done coding our app just wanted
> to know how can we track users more than 2 million followers? Would
> whitelisting more than 1 ip and switching them be the right thing to
> do? Can Twitter allow more than 20,000 calls for 1 ip on special
> request?
>
> Hoping to get answers,
> Thank you!
>


Re: [twitter-dev] Twitter Streaming API - Connection Refused

2010-07-09 Thread John Kalucki
I cannot reproduce this problem and the aggregate statistics on
stream.twitter.com look normal. Please email your account, ip address, the
exact time of an example failure in UTC, and also a sample curl -v run to
api at twitter dot com.

-John Kalucki
http://twitter.com/jkalucki
Twitter Inc.


On Fri, Jul 9, 2010 at 5:11 AM, worksapp  wrote:

> Since early morning today(EST), we are not able to connect to
> streaming API - LinkHose. We are getting the following response to our
> connection:
>
> 
> (111, 'Connection refused')
> 
>
> Is anyone else facing similar issue?
>
> Thank you
>


[twitter-dev] Re: Any chance to get more than 20,000 calls per hour?

2010-07-09 Thread Nik Fletcher
Normally you could request Twitter whitelisting by emailing
a...@twitter.com. However, you won't be able to until after the World
Cup:

http://groups.google.com/group/twitter-api-announce/browse_thread/thread/130a8c1749a87279

-N

On Jul 9, 12:42 pm, deadlychaos  wrote:
> Hi there,
>
> We have been building this application since 6 months now. It is anti-
> spam app which works with very different algorithms and has been very
> useful for twitter user (we have tested it with 150 calls). But the
> problem is our apps dig out lot of follower data to let the user know
> whether his followers are spam or not (it doesn't allow users to
> unfollow anyone). We all know, Twitter api consumes 1 call for
> retrieving 100 followers of a particular twitter user. Now 20,000
> calls are ok with normal users but some celebrities like Aston
> Kutcher, Britney Spears and EV have more than 2 million followers
> which means we cannot track. If they were few it would be ok but day
> by day as Twitter is growing at amazing rate many users are passing
> the 2 million milestone. So our app becomes useless for these users
> and which makes it imperfect. This is totally anti-spam app and I am
> sure folks at Twitter will love it once it does its work to chop off
> spam users. I know there have been many such apps but this is
> something everyone would love. We are done coding our app just wanted
> to know how can we track users more than 2 million followers? Would
> whitelisting more than 1 ip and switching them be the right thing to
> do? Can Twitter allow more than 20,000 calls for 1 ip on special
> request?
>
> Hoping to get answers,
> Thank you!


Re: [twitter-dev] Re: oauth status update returning error 401 invalid / used nonce

2010-07-09 Thread Fabien Penso
On Fri, Jul 9, 2010 at 3:38 AM, Fabien Penso  wrote:

> Where my application http://twitter.com/apps/edit/14088 has read&write
> access permission.

This is fixed, what happened :

- My application had read-only access for the user (myself in fact), I
revoked access and asked for a new oauth token => working.

- My application always had read-write access, there is no reason this
token was read-only.


[twitter-dev] Number of lists

2010-07-09 Thread live-maron
I want to get number of list.

If I will get number of list, Should I use HTML Parser?

Twitterでリストの数を取得したいと思っています。

In Japanese
あるアカウントのフォロワー数、フォロー数、ツイート数などは、apiで取得することができますが、
あるアカウントをフォローしているリスト数を取得するのは、apiでは、取得することは、できないのでしょうか?


[twitter-dev] Desktop Application / xAuth / Access Token Exchange

2010-07-09 Thread Craig
Hi

I am developing a link to Twitter from a desktop application - it's a
client/server application that runs on Windows.  We have many clients
using the software, each with anywhere from 1 to several hundred
users.  The brief is to allow an administrator to enter one or more
Twitter accounts in to the database so that the individual users can
post updates to any of the accounts without having to know the
authentication details.

We have permanent xAuth access token exchange with the Twitter API.
When a client administrator enters a Twitter account in to the
database, they will enter the user name and password - my code will
then immediately hit the API and exchange these for an access token
which will then be stored in the database ready to be used when a user
wants to post a status update.

Trouble is I am having some problems with the http call that exchanges
a user name and password for an access token, so any help and advice
would be appreciated.  I am developing in Delphi 7 but the https calls
are made from a C# .NET 2.0 ComVisible class library which uses
WebRequest/WebResponse.  I am also using Fiddler 2 to view the
traffic.

Ok, an example.  Here is my base signature (if I have the terminology
correct) - I have obfuscated any sensitive data:

POST&https%3A%2F%2Fapi.twitter.com%2Foauth
%2Faccess_token&oauth_consumer_key%3D%26oauth_nonce
%3DFTV8pi3ScCaYbkNkEHcdTqHHPPy6F3FpG8VHK2tv%26oauth_signature_method
%3DHMAC-SHA1%26oauth_timestamp%3D1278669373%26oauth_version
%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3D
%26x_auth_username%3DX

I then create the signature of this using HMAC SHA1 and the Twitter
xAuth signing secret which gives me:
b5d979ead19f4111b6e5b4db49aee893a2ccb30d

Finally I create my Authorisation header for the http request which
comes out like this:

Authorization: OAuth oauth_consumer_key="",
oauth_nonce="FTV8pi3ScCaYbkNkEHcdTqHHPPy6F3FpG8VHK2tv",
oauth_signature="b5d979ead19f4111b6e5b4db49aee893a2ccb30d",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1278669373",
oauth_version="1.0"

Now, if I am correct I am ready to post (to 
https://api.twitter.com/oauth/access_token)
so I add the header but I am unclear as to whether I need to post the
base signature string with it or whether this is discarded once the
Authorisation header has been created, so I have tried both.  The
header is sent in each request but one request also sends the base
signature in the SendStream where as the other request posts no data
at all (but has the header).

Header only returns an error: The remote server returned an error:
(401) Unauthorized

Header and data returns an error: The remote server returned an error:
(417) Expectation Failed

The second call (header and data) is interesting because when you view
the traffic in Fiddler 2 I see the following headers:

Cookies / Login
  Authorization: OAuth oauth_consun=mer_key=".
Entity
  Content-Length: 337
  Content-Type: application/x-www-form-urlencoded
Transport
  Connection: Keep-Alive
  Expect: 100-continue
  Host: api.twitter.com

and yet looking at the response:



417 Expectation Failed

Expectation Failed
The expectation given in the Expect request-header
field could not be met by this server.
The client sent
Expect: 100-continue

but we only allow the 100-continue expectation.


So a 100-continue was sent which is the only thing allowed and yet it
is complaining about it?!

As I mentioned, any help or advice would be very welcome.

Regards
Craig


[twitter-dev] Any chance to get more than 20,000 calls per hour?

2010-07-09 Thread deadlychaos
Hi there,

We have been building this application since 6 months now. It is anti-
spam app which works with very different algorithms and has been very
useful for twitter user (we have tested it with 150 calls). But the
problem is our apps dig out lot of follower data to let the user know
whether his followers are spam or not (it doesn't allow users to
unfollow anyone). We all know, Twitter api consumes 1 call for
retrieving 100 followers of a particular twitter user. Now 20,000
calls are ok with normal users but some celebrities like Aston
Kutcher, Britney Spears and EV have more than 2 million followers
which means we cannot track. If they were few it would be ok but day
by day as Twitter is growing at amazing rate many users are passing
the 2 million milestone. So our app becomes useless for these users
and which makes it imperfect. This is totally anti-spam app and I am
sure folks at Twitter will love it once it does its work to chop off
spam users. I know there have been many such apps but this is
something everyone would love. We are done coding our app just wanted
to know how can we track users more than 2 million followers? Would
whitelisting more than 1 ip and switching them be the right thing to
do? Can Twitter allow more than 20,000 calls for 1 ip on special
request?

Hoping to get answers,
Thank you!


Re: [twitter-dev] Twitter service authentication

2010-07-09 Thread lebogang mothapo
On 7/7/10, t.arnf...@googlemail.com  wrote:
> Hello :)
>
> I am building a service for twitter apps to use which has an API thats
> quite simple. The question I have is that, I need to - from some kind
> of data the application sends me - get hold of the users twitter
> account to first, check if its a valid account, second to get their
> profile pic url and third to get their twitter name.
>
> Could anyone suggest to me the *valid* data I need the twitter
> application (that is already O/XAuth'd with twitter) to send to my API
> for me to get this information?
>
> Any help would be much appreciated!
>
> Thanks!

-- 
Sent from my mobile device


[twitter-dev] Re: Streaming API time drifting problem and possible solutions

2010-07-09 Thread Larry Zhang
Thank everyone for the quick reply, I have implemented a downloading
program which uses curl, and it is fast enough to avoid the time
drift.
-Larry


On Jul 8, 5:00 pm, Pascal Jürgens
 wrote:
> Larry,
>
> moreover, I assume you checked I/O and CPU load. But even if that's not the 
> issue, you should absolutely check if you have simplejson with c extension 
> installed. The python included version is 1.9 which is decidedly slower than 
> the new 2.x branch. You might see json decoding load drop by 50% or more.
>
> Pascal
>
> On Jul 8, 2010, at 17:31 , Larry Zhang wrote:
>
>
>
> > Hi everyone,
>
> > I have a program calling the statuses/sample method of a garden hose
> > of the Streaming API, and I am experiencing the following problem: the
> > timestamps of the tweets that I downloaded constantly drift behind
> > real-time, the time drift keeps increasing until it reaches around 25
> > minutes, and then I get a timeout from the request, sleep for 5
> > seconds and reset the connection. The time drift is also reset to 0
> > when the connection is reset.
>
> > One solution for this I have now is to proactively reset the
> > connection more frequently, e.g., if I reconnect every 1 minute, the
> > time drift I get will be at most 1 minute. But I am not sure whether
> > this is allow by the API.
>
> > So could anyone tell me if you have the same problem as mine or I am
> > using the API in the wrong way. And is it OK to reset connection every
> > minute?
>
> > I am using Tweepy (http://github.com/joshthecoder/tweepy) as the
> > library for accessing the Streaming API.
>
> > Thanks a lot!
> > -Larry


[twitter-dev] Re: Location information only delivered on geocoded searches?

2010-07-09 Thread James
Sure, I'll report the bug.  I also know that location should secondary
to geo, I just was trying to get any/all relevant geo.

On Jul 8, 5:57 pm, Matt Harris  wrote:
> Hi James,
>
> I'm not sure why the location field is missing from those search results so
> I'll need to follow that up. Can you file it as a defect in the API Issues
> List:http://code.google.com/p/twitter-api/issues/list
> and i'll look into it.
>
> Just to clarify though, the location field is the location you see under a
> users name on their Twitter profile page. It is a free-text field in which
> the user can put anything they want. If Twitter Search can reverse geocode
> the text in that field it will use it as the geo for the Tweet only when the
> Tweet itself doesn't have any geo co-ordinates. This means when you perform
> a Geocoded Twitter Search you may see results you wouldn't expect. For
> example somebody who says their location is San Francisco but is on holiday
> in New York may not geocode their Tweets and so their Tweets will be indexed
> as being in San Francisco.
>
> Hope that explains how this works.
>
> Thanks,
> Matt
>
>
>
> On Thu, Jul 8, 2010 at 6:16 AM, James  wrote:
> > Hi there,
>
> > I'm getting started with using the search API; I'm a GIS guy looking
> > at how to ingest tweets with geo or location info.  I'm seeing an odd
> > behavior with the location element- it seems the location info is only
> > displayed when I submit a geocoded search.  As an example:
>
> > In the results for
> >http://search.twitter.com//search.json?q=%23geoglobaldomination
> > is the following tweet:
> > {"Thu, 08 Jul 2010 01:43:02 +",
> > "from_user":"geo_rube",
> > "metadata":{"result_type":"recent"},
> > "to_user_id":1203277,"text":"@wonderchook  You need to write a book
> > "Adventures in #Geoglobaldomination" or "Bangin
> > BP"",
> > "id":17997780478,"from_user_id":100089794,
> > "to_user":"wonderchook","geo":null,"iso_language_code":"en","source":" > href="http://www.tweetdeck.com";
> > rel="nofollow">TweetDeck"}
>
> > Note no location info.  However, if I do
>
> >http://search.twitter.com/search.json?q=%23geoglobaldomination&geocod...
> > The result is:
> > {"location":"Springfield, VA","profile_image_url":"http://a1.twimg.com/
> > profile_images/907787936/shitstorm_normal.jpg","created_at":"Thu, 08
> > Jul 2010 01:43:02 +","from_user":"geo_rube","metadata":
> > {"result_type":"recent"},"to_user_id":1203277,"text":"@wonderchook
> > You need to write a book "Adventures in
> > #Geoglobaldomination" or "Bangin BP"","id":
> > 17997780478,"from_user_id":
>
> > 100089794,"to_user":"wonderchook","geo":null,"iso_language_code":"en","source":" > href="http://www.tweetdeck.com";
> > rel="nofollow">TweetDeck"}
>
> --
>
> Matt Harris
> Developer Advocate, Twitterhttp://twitter.com/themattharris


[twitter-dev] Re: Getting feed for multiple accounts (how does hootsuite/tweetdeck do it so fast?)

2010-07-09 Thread cballou
Make your requests asynchronous so they are handled independently of
one another.  Each of your 5 API calls for the 5 columns would return
their results as soon as they are available for population of the
column.

On Jul 8, 12:01 am, rksprst  wrote:
> Let's say I have five columns that show the @replies for five
> different twitter accounts.
>
> Since each account has its own authentication with oath, I would need
> to make 5 API calls to load up these columns.
>
> This seems inefficient and also slow. Is there anyway to speed this
> process up?
>
> Hootsuite seems to do this quite fast, do they actually make a request
> for every column when you load up their client. Do you guys have any
> suggestions on improving speed for this?
>
> Thanks!
> Alex


[twitter-dev] Twitter Streaming API - Connection Refused

2010-07-09 Thread worksapp
Since early morning today(EST), we are not able to connect to
streaming API - LinkHose. We are getting the following response to our
connection:


(111, 'Connection refused')


Is anyone else facing similar issue?

Thank you


[twitter-dev] Re: Which one are you using in your mobile app? xAuth or oAuth?

2010-07-09 Thread Bess
So far I only learn of one Twitter-based app is using OAuth - Twitter
official app (not sure it is out in app store yet).

I personally like to learn the best practice on OAuth and best OAuth
library used in iPhone, Android, Nokia and Blackberry.

On Jul 7, 10:19 am, Oscar Cortes  wrote:
>  Thanks for the feedback Rich.  I didn't know that the embedded web
> browser could be used for this. Can someone point me out to an iPhone
> or iPad app that uses oAuth with the embedded web browser? I would
> like to try it out.
>
> Oscar
>
> On Jul 6, 6:28 pm, Rich  wrote:
>
> > We are using oAuth on the iPhone. It works great and I don't see why
> > xAuth should be allowed on iPhone as the embedded web browser is more
> > than capable
>
> > On Jul 6, 8:55 pm, Oscar Cortes  wrote:
>
> > > We are about to integrate Twitter support in our iOS library and we
> > > are seeing that some devs prefer xAuth over oAuth? Which one are you
> > > using and why? Does Twitter push for one of them more?
>
> > > Thanks