[twitter-dev] Re: streaming api multiple connections

2009-06-29 Thread John Kalucki

Hardeep,

What is your use case? If you are attempting to get around limits in /
track or /follow, contact us to discuss higher access levels. If you
are building a service that creates a connection per user, let's
discuss how you can achieve the same ends with a single connection. If
you require both a sampled and a filtered resource, perhaps /
gardenhose and /track, you should create two accounts and your access
will be fine. Also, a test account and a production account are
reasonable use cases.

Other than several desktop clients hiding behind the same NAT router,
we currently know of few other valid use cases for more than one or
two connections from the same service, user or company.

-John Kalucki
Services, Twitter Inc.


On Jun 29, 10:06 pm, Hardeep Khehra 
wrote:
> will the streaming track api allow multiple connections from the same
> IP using different user accounts and if so, is there a maximum number
> of connections per IP?


[twitter-dev] Re: Search results stopped

2009-06-29 Thread Doug Williams
Chad,
It looks like search is back up and indexing again.

Thanks,
Doug



On Mon, Jun 29, 2009 at 10:11 PM, Chad Etzel  wrote:

>
> Didn't see any status on status.twitter or @twitterapi, so thought I'd
> ask... it looks like the Search results have not been indexed for
> about 2 hours... known issue?
>
> -Chad
>


[twitter-dev] Re: streaming api multiple connections

2009-06-29 Thread Arunachalam
As per my understanding, all multiple connection will have same sampled
output.

Cheers,
Arunachalam


On Tue, Jun 30, 2009 at 10:36 AM, Hardeep Khehra  wrote:

>
> will the streaming track api allow multiple connections from the same
> IP using different user accounts and if so, is there a maximum number
> of connections per IP?
>


[twitter-dev] Search results stopped

2009-06-29 Thread Chad Etzel

Didn't see any status on status.twitter or @twitterapi, so thought I'd
ask... it looks like the Search results have not been indexed for
about 2 hours... known issue?

-Chad


[twitter-dev] streaming api multiple connections

2009-06-29 Thread Hardeep Khehra

will the streaming track api allow multiple connections from the same
IP using different user accounts and if so, is there a maximum number
of connections per IP?


[twitter-dev] Re: how to get search result total?

2009-06-29 Thread yoga

thanks for the answer, Abe. I think there's a way, I just realize it.
but somehow, I don't know why, only a few tweets that will reply the
total result. the required parameter to get total result is since_id
and refresh (=true). and, why "refresh" parameter not listed on
twitter API documentation anyway?

On Jun 30, 10:56 am, Abraham Williams <4bra...@gmail.com> wrote:
> There is no way to get a total count for search results. You can
> paginate and see the number of results that are in the search database
> but that will be limited to less then 2 weeks.
>
> Abraham
>
> On Mon, Jun 29, 2009 at 22:36, yoga wrote:
>
> > hey there,
>
> > twitter may have a powerful search API to get what we want, but is
> > there any API to only get total of a search result? meanwhile, with
> > API, I just can get max. 100 result per page. any explanation will be
> > so thankful.
>
> > regards,
>
> --
> Abraham Williams | Community Evangelist |http://web608.org
> Hacker |http://abrah.am|http://twitter.com/abraham
> Project |http://fireeagle.labs.poseurtech.com
> This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: How are people getting to the first tweet

2009-06-29 Thread Chad Etzel

On Tue, Jun 30, 2009 at 12:10 AM, Scott Haneda wrote:
> If I use REST, then I am not sure how I would do this other than paging
> through the users timeline, which would take a long time.

Bingo. But, keep in mind you can only page back 3000 tweets (unless
things have changed...), so you might not be able to get the first
tweet afterall.


> I find that
> myfirsttweet.com is able to give very fast results.

They may do caching, so if you've been before it just stores the
result.  Otherwise, since they are whitelisted they can loop through
the pages quickly w/o fear of rate-limiting.

-Chad


[twitter-dev] How are people getting to the first tweet

2009-06-29 Thread Scott Haneda


Found a site today that gives you your first tweet.  Looking over the  
API, I can not figure out how to do this.  Would doing a date search,  
and going way back in time, to get the first tweet work?  I thought  
the search API only afforded you 7 days.


If I use REST, then I am not sure how I would do this other than  
paging through the users timeline, which would take a long time.  I  
find that myfirsttweet.com is able to give very fast results.


Are they pulling data from an archive?  They mention whitelisting on  
the site, implying they are polling the API, but I can not seem to  
figure out how this is being pulled off.


Thanks for any help.
--
Scott * If you contact me off list replace talklists@ with scott@ *



[twitter-dev] Re: how to get search result total?

2009-06-29 Thread Abraham Williams

There is no way to get a total count for search results. You can
paginate and see the number of results that are in the search database
but that will be limited to less then 2 weeks.

Abraham

On Mon, Jun 29, 2009 at 22:36, yoga wrote:
>
> hey there,
>
> twitter may have a powerful search API to get what we want, but is
> there any API to only get total of a search result? meanwhile, with
> API, I just can get max. 100 result per page. any explanation will be
> so thankful.
>
>
> regards,
>



-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: PIN Authentication Examples?

2009-06-29 Thread DWRoelands

I've looked at Bojan's implementation of OAuth, and his code does not
strip the query parameters in the way I described.  I'm not using his
library (I'm trying to code a complete VB.NET client), but I can say
that it looks pretty solid and Bojan was very helpful to me when I had
questions about OAuth.

> Might I recommend my OAuth implementation for Twitter? It's based on
> Shannon's code and is up to date for the new PIN authentication.
>
> You can fetch the code fromhttp://twarp.googlecode.com'sSVN
> repository, and there are also fairly recent binaries on the download
> page. There are also C# examples in SVN, showing both synchronous and
> asynchronous login workflow.
>
> Regards,
>
> - --
> Bojan Rajkovic 


[twitter-dev] Re: PIN Authentication Examples?

2009-06-29 Thread DWRoelands

I've identified the issue and my PIN authentication is now working
correctly.  I'll do my best to explain the issue here to save others
the headaches I've had. :)

The OAuth class that Eran Sandler so graciously provided to the
community (http://oauth.googlecode.com/svn/code/csharp/OAuthBase.cs)
contains a method called "GetQueryParameters()".  GetQueryParameters
is used to build the query string of any OAuth web request.  If you
look at the code of that method, you'll see a foreach() loop that
contains the following IF statement:

if (!string.IsNullOrEmpty(s) && !s.StartsWith(OAuthParameterPrefix)) {

The effect of this code is that querystring parameters are only added
to the web request if they DO NOT start with "oauth_".  So, when I was
trying to create a web request with "oauth_verifier" on the
querystring, Eran's code was stripping it out.  Without that item on
the query string, Twitter was (quite rightly) telling me to get lost.

My immediate solution was to remove the "&& !s.StartsWith
(OAuthParameterPrefix)" from the above line.  This allowed the rest of
the OAuth class (and Shannon Whitley's extension class) to process my
PIN request correctly.

I understand that this may not be the BEST solution, and I would
greatly appreciate hearing better ones.

On Jun 29, 10:18 am, Matt Sanford  wrote:
> Hi Duane,
>
>      When you get the 401 what does the body say?
>
> Thanks;
>   – Matt Sanford / @mzsanford
>       Twitter Dev
>
> On Jun 29, 2009, at 4:29 AM, DWRoelands wrote:
>
>
>
> > I'm having a devil of a time getting my application to connect to
> > Twitter via OAuth and the six-digit pin method.
>
> > I've been working with the excellent OAuth library from
> > ShannonWhitley:
> >http://www.voiceoftech.com/swhitley/?p=681
>
> > I'm able to get an authorization link, open a browser, and get the  
> > six-
> > digit PIN.  However, I can't seem to submit that PIN back to Twitter
> > without getting a 401 Unauthorized error.
>
> > I added this method to Shannon's TWitter OAuth code:
>
> >        public bool ValidatePin(string PIN)
> >        {
> >            string response = WebRequest(Method.GET, string.Format
> > ("{0}?oauth_verifier={1}", ACCESS_TOKEN, PIN), string.Empty);
> >            if (response.Length > 0)
> >            {
> >                //Store the Token and Token Secret
> >                var qs = HttpUtility.ParseQueryString(response);
> >                if (!string.IsNullOrEmpty(qs["oauth_token"]))
> > this.Token = qs["oauth_token"];
> >                if (!string.IsNullOrEmpty(qs["oauth_token_secret"]))
> > this.TokenSecret = qs["oauth_token_secret"];
> >                return true;
> >            }
> >            else
> >            {
> >                return false;
> >            }
> >        }
>
> > Inevitably, I get 401 Unauthorized when submitting the
> > "oauth_verifier" web request.
> > I have a consumer key and a consumer key secret which work (as is
> > evidenced by the fact that I can get an authorization link).
>
> > Has anyone else encountered similar issues, or does anyone else have
> > any guidance on this particular issue?
>
> > Thanks in advance.
> > --Duane


[twitter-dev] Re: from and since_id 404 issues

2009-06-29 Thread Hayes Davis
Sounds related to my earlier post[1] about issues using from and since (as
opposed to since_id).

Hayes

http://groups.google.com/group/twitter-development-talk/browse_thread/thread/2960bcdf84fef6d6


On Mon, Jun 29, 2009 at 8:36 PM, primedynasty wrote:

>
> I am having issues using 'from' and 'since_id' resulting in 404
> errors.  There should be results and it certainly isn't a matter of
> being outside the Search time limit.
>
> an example:
> http://search.twitter.com/search?q=&since_id=2147483647&from=iHateRyanB
>
> should return some results.  I believe this is a bug, but it would be
> nice if there was some notification that the id is out of the scope of
> search, or that we could search through a user's timeline.
>


[twitter-dev] Re: PIN Authentication Examples?

2009-06-29 Thread Bojan Rajkovic

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

DWRoelands wrote:
> I'm having a devil of a time getting my application to connect to
> Twitter via OAuth and the six-digit pin method.
>
> I've been working with the excellent OAuth library from
> ShannonWhitley:
> http://www.voiceoftech.com/swhitley/?p=681
>
> I'm able to get an authorization link, open a browser, and get the six-
> digit PIN.  However, I can't seem to submit that PIN back to Twitter
> without getting a 401 Unauthorized error.
>
> I added this method to Shannon's TWitter OAuth code:
>
> public bool ValidatePin(string PIN)
> {
> string response = WebRequest(Method.GET, string.Format
> ("{0}?oauth_verifier={1}", ACCESS_TOKEN, PIN), string.Empty);
> if (response.Length > 0)
> {
> //Store the Token and Token Secret
> var qs = HttpUtility.ParseQueryString(response);
> if (!string.IsNullOrEmpty(qs["oauth_token"]))
> this.Token = qs["oauth_token"];
> if (!string.IsNullOrEmpty(qs["oauth_token_secret"]))
> this.TokenSecret = qs["oauth_token_secret"];
> return true;
> }
> else
> {
> return false;
> }
> }
>
> Inevitably, I get 401 Unauthorized when submitting the
> "oauth_verifier" web request.
> I have a consumer key and a consumer key secret which work (as is
> evidenced by the fact that I can get an authorization link).
>
> Has anyone else encountered similar issues, or does anyone else have
> any guidance on this particular issue?
>
> Thanks in advance.
> --Duane
>
Hi Duane,

Might I recommend my OAuth implementation for Twitter? It's based on
Shannon's code and is up to date for the new PIN authentication.

You can fetch the code from http://twarp.googlecode.com's SVN
repository, and there are also fairly recent binaries on the download
page. There are also C# examples in SVN, showing both synchronous and
asynchronous login workflow.

Regards,

- --
Bojan Rajkovic 
Biochemistry '10, Brandeis University
PGP Signature Key ID: 0x8783D016
PGP Encryption Key ID: 0x2497B8B2
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBCgAGBQJKSYhzAAoJEO4IwQyHg9AWydkP/1gBJN4u9SWJtgPZmrmCrlFJ
R+Ge2o3Byy/BboMGyDs8fVgfeJvIlnzK3lQWC7zflfQNCClc0crlM3TFP9cfd8Bf
3ugk6KZnYDYZIRtTJGqttnpCuxAc40NziS5xV4S2kWgBlp4YfyW1YBvcludLG5FG
wY7f+ww2vkVrPSPoMbfiHWuLfgGUHvlPnPVV8yeXp1o3UNRTunq7NoSXnfgHO8om
ZGYyt9OszgPPDp5bsbcNqEAmM/tMTq1ohpisQ7WQkxLMPZcsJ0al1L1/oMxKptkW
lX4SzEGyliEBGv0XagqjNlH1p+kIDH+jvnv4W+Zu26wWv8F0jy83F0s61EN9QAtp
H6a7Ao/d0lE39zlbE7e3v16z+RUKiPSW25WoFCXtVxDnlcto3nE1llikHgBKLEA+
MYtMaQUNYCnOlIwSw0J+6Qv3nAcJUxJ3JP7f0H1uXH0LjtborSXzbtPrSxvCApTW
9AVzhO4r3BqgvoHdGQh4rQtk7RxJ4xtyXaty+UkATOB6d0ogqtX53IYf1/FWMTe5
ZSFpWHvqqogxu15/OIwkcUatJwrKjt80mplif+HsPhwmj7B97gRdwJogJ83XAGhb
ocEq8q7L62nzkXnxblOJXUxvGfeVxxUpZaYGWwAj9tx2qzwtczBt7oMJIOkQVHcY
WOwo/NmDsaFx8VTSPC4j
=/KC3
-END PGP SIGNATURE-



[twitter-dev] how to get search result total?

2009-06-29 Thread yoga

hey there,

twitter may have a powerful search API to get what we want, but is
there any API to only get total of a search result? meanwhile, with
API, I just can get max. 100 result per page. any explanation will be
so thankful.


regards,


[twitter-dev] from and since_id 404 issues

2009-06-29 Thread primedynasty

I am having issues using 'from' and 'since_id' resulting in 404
errors.  There should be results and it certainly isn't a matter of
being outside the Search time limit.

an example:
http://search.twitter.com/search?q=&since_id=2147483647&from=iHateRyanB

should return some results.  I believe this is a bug, but it would be
nice if there was some notification that the id is out of the scope of
search, or that we could search through a user's timeline.


[twitter-dev] Re: source not working

2009-06-29 Thread JDG
there are plenty of great open source projects out there that you can use as
a guide for your development. Abraham's PHP client and Twitter4j as a java
client were both huge resources for me.

On Mon, Jun 29, 2009 at 20:34, DWRoelands  wrote:

>
> I symnpathize.  OAuth is not intuitive, nor is it easy to implement.
> I've been struggling with PIN-based authorization for days and I can't
> seem to make any headway on how to get Twitter to take the PIN and
> give me back valid tokens.
>
> But, it's all we have if you want to use the "Source" parameter.
>
>
>
> On Jun 29, 10:14 pm, Max  wrote:
> > so you cant use oauth with curl... awesome, i'm glad i installed it
> > last night. =[
> >
> > On Jun 29, 3:52 pm, Max  wrote:
> >
> > > Okay, I'm going to try and figure out OAuth later tonight.  Thank you
> > > very much.
> >
> > > On Jun 29, 9:11 am, DWRoelands  wrote:
> >
> > > > Max,
> >
> > > > Some time ago, Twitter stopped accepting the "Source" argument from
> > > > applications using Basic Auth.  Any apps that had been using Basic
> > > > Auth before that point were "grandfathered" in.  Any apps created
> > > > after that point need to use OAuth for the "Source" to be accepted.
> >
> > > > Which is why I'm wrestling with OAuth now. :)
> >
> > > > On Jun 29, 8:10 am, Max K  wrote:
> >
> > > > > So umm... how do I get something to work using basic auth?
> >
> > > > > On Mon, Jun 29, 2009 at 7:42 AM, Abraham Williams <
> 4bra...@gmail.com> wrote:
> >
> > > > > > Sources from OAuth applications don't work when used through
> basic auth.
> >
> > > > > > Abraham
> >
> > > > > > On Mon, Jun 29, 2009 at 05:49, Max K wrote:
> > > > > > > well I'm using the command
> > > > > > >>curl -v -d "source=roflcopterlolmachine&status=test" -u
> username:password
> > > > > > >>http://twitter.com/statuses/update.xml
> >
> > > > > > > and i have the name roflcopterlolmachine registered with
> twitter on
> > > > > > >http://twitter.com/oauth_clients.  i'm new to the twitter api
> and just
> > > > > > don't
> > > > > > > understand whats going on
> >
> > > > > > > On Sun, Jun 28, 2009 at 11:36 PM, JDG 
> wrote:
> >
> > > > > > >> Source only works with oauth, unless you had registered it
> before OAuth
> > > > > > >> was implemented. Are you using Basic auth?
> >
> > > > > > >> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
> >
> > > > > > >>> why is it that my source name doesn't work?  how long does it
> take for
> > > > > > >>> twitter to recognize an application... because if i use a
> name of an
> > > > > > >>> app that already exists [ex: max] it works, but if I do
> something like
> > > > > > >>> status=rdfglkdfjgklfdg
> >
> > > > > > >>> it doesnt...
> >
> > > > > > >>> why?
> >
> > > > > > >> --
> > > > > > >> Internets. Serious business.
> >
> > > > > > --
> > > > > > Abraham Williams | Community Evangelist |http://web608.org
> > > > > > Hacker |http://abrah.am|http://twitter.com/abraham
> > > > > > Project |http://fireeagle.labs.poseurtech.com
> > > > > > This email is: [ ] blogable [x] ask first [ ] private.
>



-- 
Internets. Serious business.


[twitter-dev] Re: source not working

2009-06-29 Thread DWRoelands

I symnpathize.  OAuth is not intuitive, nor is it easy to implement.
I've been struggling with PIN-based authorization for days and I can't
seem to make any headway on how to get Twitter to take the PIN and
give me back valid tokens.

But, it's all we have if you want to use the "Source" parameter.



On Jun 29, 10:14 pm, Max  wrote:
> so you cant use oauth with curl... awesome, i'm glad i installed it
> last night. =[
>
> On Jun 29, 3:52 pm, Max  wrote:
>
> > Okay, I'm going to try and figure out OAuth later tonight.  Thank you
> > very much.
>
> > On Jun 29, 9:11 am, DWRoelands  wrote:
>
> > > Max,
>
> > > Some time ago, Twitter stopped accepting the "Source" argument from
> > > applications using Basic Auth.  Any apps that had been using Basic
> > > Auth before that point were "grandfathered" in.  Any apps created
> > > after that point need to use OAuth for the "Source" to be accepted.
>
> > > Which is why I'm wrestling with OAuth now. :)
>
> > > On Jun 29, 8:10 am, Max K  wrote:
>
> > > > So umm... how do I get something to work using basic auth?
>
> > > > On Mon, Jun 29, 2009 at 7:42 AM, Abraham Williams <4bra...@gmail.com> 
> > > > wrote:
>
> > > > > Sources from OAuth applications don't work when used through basic 
> > > > > auth.
>
> > > > > Abraham
>
> > > > > On Mon, Jun 29, 2009 at 05:49, Max K wrote:
> > > > > > well I'm using the command
> > > > > >>curl -v -d "source=roflcopterlolmachine&status=test" -u 
> > > > > >>username:password
> > > > > >>http://twitter.com/statuses/update.xml
>
> > > > > > and i have the name roflcopterlolmachine registered with twitter on
> > > > > >http://twitter.com/oauth_clients.  i'm new to the twitter api and 
> > > > > >just
> > > > > don't
> > > > > > understand whats going on
>
> > > > > > On Sun, Jun 28, 2009 at 11:36 PM, JDG  wrote:
>
> > > > > >> Source only works with oauth, unless you had registered it before 
> > > > > >> OAuth
> > > > > >> was implemented. Are you using Basic auth?
>
> > > > > >> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
>
> > > > > >>> why is it that my source name doesn't work?  how long does it 
> > > > > >>> take for
> > > > > >>> twitter to recognize an application... because if i use a name of 
> > > > > >>> an
> > > > > >>> app that already exists [ex: max] it works, but if I do something 
> > > > > >>> like
> > > > > >>> status=rdfglkdfjgklfdg
>
> > > > > >>> it doesnt...
>
> > > > > >>> why?
>
> > > > > >> --
> > > > > >> Internets. Serious business.
>
> > > > > --
> > > > > Abraham Williams | Community Evangelist |http://web608.org
> > > > > Hacker |http://abrah.am|http://twitter.com/abraham
> > > > > Project |http://fireeagle.labs.poseurtech.com
> > > > > This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: source not working

2009-06-29 Thread Max

so you cant use oauth with curl... awesome, i'm glad i installed it
last night. =[

On Jun 29, 3:52 pm, Max  wrote:
> Okay, I'm going to try and figure out OAuth later tonight.  Thank you
> very much.
>
> On Jun 29, 9:11 am, DWRoelands  wrote:
>
> > Max,
>
> > Some time ago, Twitter stopped accepting the "Source" argument from
> > applications using Basic Auth.  Any apps that had been using Basic
> > Auth before that point were "grandfathered" in.  Any apps created
> > after that point need to use OAuth for the "Source" to be accepted.
>
> > Which is why I'm wrestling with OAuth now. :)
>
> > On Jun 29, 8:10 am, Max K  wrote:
>
> > > So umm... how do I get something to work using basic auth?
>
> > > On Mon, Jun 29, 2009 at 7:42 AM, Abraham Williams <4bra...@gmail.com> 
> > > wrote:
>
> > > > Sources from OAuth applications don't work when used through basic auth.
>
> > > > Abraham
>
> > > > On Mon, Jun 29, 2009 at 05:49, Max K wrote:
> > > > > well I'm using the command
> > > > >>curl -v -d "source=roflcopterlolmachine&status=test" -u 
> > > > >>username:password
> > > > >>http://twitter.com/statuses/update.xml
>
> > > > > and i have the name roflcopterlolmachine registered with twitter on
> > > > >http://twitter.com/oauth_clients.  i'm new to the twitter api and just
> > > > don't
> > > > > understand whats going on
>
> > > > > On Sun, Jun 28, 2009 at 11:36 PM, JDG  wrote:
>
> > > > >> Source only works with oauth, unless you had registered it before 
> > > > >> OAuth
> > > > >> was implemented. Are you using Basic auth?
>
> > > > >> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
>
> > > > >>> why is it that my source name doesn't work?  how long does it take 
> > > > >>> for
> > > > >>> twitter to recognize an application... because if i use a name of an
> > > > >>> app that already exists [ex: max] it works, but if I do something 
> > > > >>> like
> > > > >>> status=rdfglkdfjgklfdg
>
> > > > >>> it doesnt...
>
> > > > >>> why?
>
> > > > >> --
> > > > >> Internets. Serious business.
>
> > > > --
> > > > Abraham Williams | Community Evangelist |http://web608.org
> > > > Hacker |http://abrah.am|http://twitter.com/abraham
> > > > Project |http://fireeagle.labs.poseurtech.com
> > > > This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: How to list followers, including icons and usernames?

2009-06-29 Thread sull

yes it's a tough one all i wanted was to populate a dropdown menu
with followers names for direct message form.
would prefer a more efficient way.
but i am doing a follower import/update.
it's expensive on first session but not so bad if the user comes back
and only has a small batch of new followers.
still prefer a direct call to get usernames and ids.

this:
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-followers%C2%A0ids

should return both "ids".  numerical id and screen_name id.
they are both referred to "ids" elsewhere so both can be included in
this method without naming confusion.

i assume, however, that the querying for the screen_name and numeric
id is resource intensive on twitters end which is why it is not
available.
twitter assumes/hopes that you will import and cache.


On Jun 29, 8:02 am, Aaron Rankin  wrote:
> It looks like status/followers gets you part of the way there. First,
> some questions for Twitter:
>
> 1) Does status/followers return statuses for distinct users? E.g., if
> one of my followers has changed their status twice in the past minute,
> will this method return the latest or both?
> 2) For every follower, will this definitely return the last status for
> each, even if they've been idle for some time?
>
> Since this returns statuses in batches of 100, to get all data for all
> followers, you'll still to run a query for every 100 (including the
> remainder at the end). At least in the JSON, status/followers doesn't
> tell you how many followers there are. To know the number of queries
> (pages of 100) to fetch, you also need to query followers/ids. It's
> clearly better than 1 query per follower + 1 call to follower/ids for
> the main user in question.
>
> Is this the best way to get information for each follower of a given
> user?
>
> Thanks,
> Aaron
>
> On Jun 28, 12:41 pm, Abraham Williams <4bra...@gmail.com> wrote:
>
> > Check out this 
> > method:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f...
>
> > On Sun, Jun 28, 2009 at 12:26, Bemmu wrote:
>
> > > I'm wanting to do a friend selector that looks something like the
> > > selector on Facebook, where the user sees a list of their followers'
> > > names and icons, and can select some of them. Right now the only way I
> > > can think of is first getting all IDs of followers from "/followers/
> > > ids", and then calling "/users/show.json?user_id=" for each. Seems
> > > expensive and slow.
>
> > > What's the right way to do this? I see some apps have follower
> > > selectors, but I don't know if they screen scrape "http://twitter.com/
> > > followers/1401881", or do as I just described and simply not work for
> > > people with too many followers.
>
> > > My dream API method would allow sorting by name or follower count,
> > > something like this:
>
> > > Query: "/followers/list.json?sort=follower_count&page=1&per_page=1000"
> > > Response:
> > > [
> > >  { 'id' : 12345, 'icon' : 'http://...somethingjpg', 'username' :
> > > 'a' },
> > >  { 'id' : 67890, 'icon' : 'http://...somethingjpg', 'username' :
> > > 'b' },
> > >  ...
> > > ]
>
> > > Since many users will probably have thousands of followers, I thought
> > > I could ease the
>
> > --
> > Abraham Williams | Community Evangelist |http://web608.org
> > Hacker |http://abrah.am|http://twitter.com/abraham
> > Project |http://fireeagle.labs.poseurtech.com
> > This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Odd Search Issue with Since and From Parameters

2009-06-29 Thread Hayes Davis
Guys,

Something odd is going on with search when I use the since and from
parameters together. Specifically something's up with June 25th.

This page and the corresponding JSON-formatted API call both return an
HTML-formatted 404 response:
http://search.twitter.com/search?q=from%3Ahayesdavis+since%3A2009-06-25

This one
http://search.twitter.com/search?q=from%3Ahayesdavis+since%3A2009-06-24
and this one
http://search.twitter.com/search?q=from%3Ahayesdavis+since%3A2009-06-26
do not.

This seems to happen with any from:username for that date. It doesn't happen
for other dates. It also only happens if I use from and since together. If I
use each independently, no problems.

Should I file a bug?

Hayes

--
Hayes Davis
Founder, Appozite
http://cheaptweet.com
http://tweetreach.com


[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Support


Thanks for the quick change.  Nothing like real-time updates!

But I'll take you up on your querry:
We could use suggestions from desktop developers about the security  
issues they've run into. Developers working in sufficiently high- 
level languages shouldn't be dealing with buffer overflows and the  
usual security issues. What have you defended against?


Off the top of my head, it seems like the two things I put the most  
thought into were:


1.  Storage of access keys (for OAUTH) or passwords (for basic auth).
Since an access key provides nearly as many rights as a username/ 
password pair, it has just as much power if it is acquired by an  
untrusted 3rd party.  In Mac OS X the "Keychain" is the home of data  
that must be stored in an encrypted form and accessed through a secure  
API.  I'm not sure what AIR, Silverlight, or Windows devs are  
conquering this subject.  I imagine each platform has a set of best  
practices.  But it would probably be a good idea to at least mention  
the gravity of secure storage of these things.  Since OAuth keys are  
new to a lot of us, I can see someone accidentally misunderstanding  
this and storing them in a preference file unprotected.


2.  Obfuscation of the application's registered "key" and "secret."   
Are there any best practices?  What about an open source project?



Isaiah

YourHead Software
supp...@yourhead.com
http://www.yourhead.com










On Jun 29, 2009, at 4:40 PM, Alex Payne wrote:


Apologies, these two sections were under the wrong heading.

On Mon, Jun 29, 2009 at 16:32, Support  wrote:

Hi Alex,

I just thought I'd give you some feedback on the "Desktop  
Application Security" section here:

http://apiwiki.twitter.com/Security-Best-Practices#DesktopApplicationSecurity

Both of the sections below seem to be subheadings under this topic:





1.  Under this heading the sub-section of the document titled "Lack  
of Rate Limiting" states that we should use a "CAPTCHA" to slow down  
hackers.  This didn't make much sense to me as when I think of  
Desktop Application I think of the few that I've used:   
Twitteriffic, Tweetie, and Destroy Twitter.  All of those have  
direct control of their UI.  Although a CAPTCHA could be used to  
limit scripted behaviors, it would probably be more effective just  
to directly limit the resource.
It's not that a CAPTCHA *couldn't* be used, it's just not something  
I see very often in a desktop application.
It seems to me that CAPTCHA would be more appropriate for a multi- 
user service than a single user desktop app -- so I was wondering if  
this section of the document was in the wrong area.


2.  Under the sub-section Lack of Information about Threats, it  
begins, "If you think there's an issue with your web application,  
how do you find out for sure?"  This is clearly at least a typo in  
the *desktop* app section, but it goes on to describe creating a  
"dashboard" of critical stats.  Again, this would make more sense in  
the context of service administrator, but I'm having trouble  
understanding what this would mean to a desktop application developer.



Am I misunderstanding what is meant by "Desktop Application?"  Does  
that mean something other than the examples I mentioned?



Thanks,

Isaiah

YourHead Software
supp...@yourhead.com
http://www.yourhead.com



On Jun 29, 2009, at 3:34 PM, Alex Payne wrote:

I wanted to point out a blog post (http://apiblog.twitter.com/security-best-practices-for-twitter-apps 
) that addresses the coming "Month of Twitter Bugs". Long story  
short: Twitter is in the loop, we've got security at the forefront  
of our daily work right now, and we're available to help if your  
application is identified as vulnerable or compromised.


Please check out the new wiki page (http://apiwiki.twitter.com/Security-Best-Practices 
) and let us know what's missing. Thanks!


--
Alex Payne - Platform Lead, Twitter, Inc.
http://twitter.com/al3x






--
Alex Payne - Platform Lead, Twitter, Inc.
http://twitter.com/al3x






[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Alex Payne
Apologies, these two sections were under the wrong heading.

On Mon, Jun 29, 2009 at 16:32, Support  wrote:

>
> Hi Alex,
> I just thought I'd give you some feedback
> on the "Desktop Application Security" section here:
>
> http://apiwiki.twitter.com/Security-Best-Practices#DesktopApplicationSecurity
>
> Both of the sections below seem to be subheadings under this topic:
>
>
>
>
>
> 1.  Under this heading the sub-section of the
> document titled "Lack of Rate Limiting" states that we should use a
> "CAPTCHA" to slow down hackers.  This didn't make much sense to me as when I
> think of Desktop Application I think of the few that I've used:
>  Twitteriffic, Tweetie, and Destroy Twitter.  All of those have direct
> control of their UI.  Although a CAPTCHA could be used to limit scripted
> behaviors, it would probably be more effective just to directly limit the
> resource.
> It's not that a CAPTCHA *couldn't* be used, it's just not something I see
> very often in a desktop application.
> It seems to me that CAPTCHA would be more appropriate for a multi-user
> service than a single user desktop app -- so I was wondering if this section
> of the document was in the wrong area.
>
> 2.  Under the sub-section Lack of Information about Threats, it begins, "If
> you think there's an issue with your web application, how do you find out
> for sure?"  This is clearly at least a typo in the *desktop* app section,
> but it goes on to describe creating a "dashboard" of critical stats.
>  Again, this would make more sense in the context of service
> administrator, but I'm having trouble understanding what this would mean to
> a desktop application developer.
>
>
> Am I misunderstanding what is meant by "Desktop Application?"  Does that
> mean something other than the examples I mentioned?
>
>
> Thanks,
>
> Isaiah
>
> YourHead Software
> supp...@yourhead.com
> http://www.yourhead.com
>
>
>
> On Jun 29, 2009, at 3:34 PM, Alex Payne wrote:
>
> I wanted to point out a blog post (
> http://apiblog.twitter.com/security-best-practices-for-twitter-apps) that
> addresses the coming "Month of Twitter Bugs". Long story short: Twitter is
> in the loop, we've got security at the forefront of our daily work right
> now, and we're available to help if your application is identified as
> vulnerable or compromised.
> Please check out the new wiki page (
> http://apiwiki.twitter.com/Security-Best-Practices) and let us know what's
> missing. Thanks!
>
> --
> Alex Payne - Platform Lead, Twitter, Inc.
> http://twitter.com/al3x
>
>
>
>


-- 
Alex Payne - Platform Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Support
Hi Alex,I just thought I'd give you some feedback on the "Desktop Application Security" section here:http://apiwiki.twitter.com/Security-Best-Practices#DesktopApplicationSecurityBoth of the sections below seem to be subheadings under this topic:

pastedGraphic.pdf
Description: Adobe PDF document
1.  Under this heading the sub-section of the document titled "Lack of Rate Limiting" states that we should use a "CAPTCHA" to slow down hackers.  This didn't make much sense to me as when I think of Desktop Application I think of the few that I've used:  Twitteriffic, Tweetie, and Destroy Twitter.  All of those have direct control of their UI.  Although a CAPTCHA could be used to limit scripted behaviors, it would probably be more effective just to directly limit the resource.It's not that a CAPTCHA *couldn't* be used, it's just not something I see very often in a desktop application.It seems to me that CAPTCHA would be more appropriate for a multi-user service than a single user desktop app -- so I was wondering if this section of the document was in the wrong area.2.  Under the sub-section Lack of Information about Threats, it begins, "If you think there's an issue with your web application, how do you find out for sure?"  This is clearly at least a typo in the *desktop* app section, but it goes on to describe creating a "dashboard" of critical stats.  Again, this would make more sense in the context of service administrator, but I'm having trouble understanding what this would mean to a desktop application developer.Am I misunderstanding what is meant by "Desktop Application?"  Does that mean something other than the examples I mentioned?Thanks,IsaiahYourHead Softwaresupp...@yourhead.comhttp://www.yourhead.comOn Jun 29, 2009, at 3:34 PM, Alex Payne wrote:I wanted to point out a blog post (http://apiblog.twitter.com/security-best-practices-for-twitter-apps) that addresses the coming "Month of Twitter Bugs". Long story short: Twitter is in the loop, we've got security at the forefront of our daily work right now, and we're available to help if your application is identified as vulnerable or compromised.Please check out the new wiki page (http://apiwiki.twitter.com/Security-Best-Practices) and let us know what's missing. Thanks! -- Alex Payne - Platform Lead, Twitter, Inc.http://twitter.com/al3x

[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Alex Payne
We're in contact with TwitPic's developer, and we reach out to developers
with security issues. We want to keep the "barrier to entry" as low as
possible on the Twitter platform, and a vetting system doesn't dovetail with
that philosophy.

On Mon, Jun 29, 2009 at 16:03, Scott Haneda  wrote:

>
> Got to love these headlines:
> http://mashable.com/2009/06/28/britney-spears-dead/
>
> They clearly point the finger at twitter in the headline, but reading on,
> and it is clearly a twit pic issue.
>
> I see these all over the place.  Have you considered some sort of vetting
> system for sites that are asking for twitter credentials on a 3rd party
> site?
>
> I can see that twitpic may not be able to use o-auth, as they want to be
> able to stand alone and a image host.  If there was some sort of
> communication where you worked with the large sites like twit pic, it may
> help.  As it is now, I fell for it, I read the headline, and thought ti was
> a twitter issue.
>
> Just some food for thought.
>
> On Jun 29, 2009, at 3:54 PM, Alex Payne wrote:
>
>  Any recent celebrity-related compromises I'm aware of having been, as you
>> said, "media 'hacking'". The last issue I'm aware of that resulted from
>> actually taking advantage of a security flaw in our system was the
>> "Mikeyy"
>> worm that was going around for a weekend several months ago. We've done a
>> lot of security work since then, and there's more in progress.
>>
>> On Mon, Jun 29, 2009 at 15:40, Scott Haneda  wrote:
>>
>>
>>> I heard the other day that in the wake of the MJ stuff, a few high
>>> profile
>>> celebs accounts where hacked.  Is this media "hacking" and there were
>>> just
>>> weak passwords, or their email accounts were compromised, or were these
>>> real
>>> live hacks where someone brute forced, or did otherwise nefarious acts to
>>> get in.
>>>
>>> Some clarification on these events would help to let us know where and
>>> how
>>> people are getting in, so we can tighten things up on our end. If the
>>> hacks
>>> are just email accounts being gotten into, there is nothing twitter apps
>>> need to do.  If it is something else, there may be other things we can do
>>> to
>>> keep the accounts safe.
>>>
>>
> --
> Scott * If you contact me off list replace talklists@ with scott@ *
>
>


-- 
Alex Payne - Platform Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Alex Payne
Any recent celebrity-related compromises I'm aware of having been, as you
said, "media 'hacking'". The last issue I'm aware of that resulted from
actually taking advantage of a security flaw in our system was the "Mikeyy"
worm that was going around for a weekend several months ago. We've done a
lot of security work since then, and there's more in progress.

On Mon, Jun 29, 2009 at 15:40, Scott Haneda  wrote:

>
> I heard the other day that in the wake of the MJ stuff, a few high profile
> celebs accounts where hacked.  Is this media "hacking" and there were just
> weak passwords, or their email accounts were compromised, or were these real
> live hacks where someone brute forced, or did otherwise nefarious acts to
> get in.
>
> Some clarification on these events would help to let us know where and how
> people are getting in, so we can tighten things up on our end. If the hacks
> are just email accounts being gotten into, there is nothing twitter apps
> need to do.  If it is something else, there may be other things we can do to
> keep the accounts safe.
>
> Thanks.
>
> On Jun 29, 2009, at 3:34 PM, Alex Payne wrote:
>
>  I wanted to point out a blog post (
>> http://apiblog.twitter.com/security-best-practices-for-twitter-apps) that
>> addresses the coming "Month of Twitter Bugs". Long story short: Twitter is
>> in the loop, we've got security at the forefront of our daily work right
>> now, and we're available to help if your application is identified as
>> vulnerable or compromised.
>>
>> Please check out the new wiki page (
>> http://apiwiki.twitter.com/Security-Best-Practices) and let us know
>> what's missing. Thanks!
>>
>
> --
> Scott * If you contact me off list replace talklists@ with scott@ *
>
>


-- 
Alex Payne - Platform Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Scott Haneda


As a separate issue, I would like to talk about privacy on twitter.   
If this is the wrong place for this, let me know.


Twitter asks for my email address when I signed up.  I put some pretty  
stupid junk in my twitter account, and I thought I was anonymous.   
Somehow, many people I associate with are finding me, putting me in a  
bit of a bind.


I learned later on, by importing my personal address book into gmail,  
I can login to gmail via twitter, and find all sorts of people.


This is not explained anywhere that I can tell, that my email address  
can be used as a vector to locate me within twitter.  With this, as  
long as I use my real email address, I have no anonymity on twitter.


What are you comments on this?  I know I can change my email address,  
and I will shortly.  Though I overlooked this, and it took me some  
time to figure out how people were finding me so easily.

--
Scott * If you contact me off list replace talklists@ with scott@ *



[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Scott Haneda


Got to love these headlines:
http://mashable.com/2009/06/28/britney-spears-dead/

They clearly point the finger at twitter in the headline, but reading  
on, and it is clearly a twit pic issue.


I see these all over the place.  Have you considered some sort of  
vetting system for sites that are asking for twitter credentials on a  
3rd party site?


I can see that twitpic may not be able to use o-auth, as they want to  
be able to stand alone and a image host.  If there was some sort of  
communication where you worked with the large sites like twit pic, it  
may help.  As it is now, I fell for it, I read the headline, and  
thought ti was a twitter issue.


Just some food for thought.

On Jun 29, 2009, at 3:54 PM, Alex Payne wrote:

Any recent celebrity-related compromises I'm aware of having been,  
as you
said, "media 'hacking'". The last issue I'm aware of that resulted  
from
actually taking advantage of a security flaw in our system was the  
"Mikeyy"
worm that was going around for a weekend several months ago. We've  
done a

lot of security work since then, and there's more in progress.

On Mon, Jun 29, 2009 at 15:40, Scott Haneda   
wrote:




I heard the other day that in the wake of the MJ stuff, a few high  
profile
celebs accounts where hacked.  Is this media "hacking" and there  
were just
weak passwords, or their email accounts were compromised, or were  
these real
live hacks where someone brute forced, or did otherwise nefarious  
acts to

get in.

Some clarification on these events would help to let us know where  
and how
people are getting in, so we can tighten things up on our end. If  
the hacks
are just email accounts being gotten into, there is nothing twitter  
apps
need to do.  If it is something else, there may be other things we  
can do to

keep the accounts safe.


--
Scott * If you contact me off list replace talklists@ with scott@ *



[twitter-dev] API Changes for June 29, 2009

2009-06-29 Thread Matt Sanford

Two fixes and a small feature were launched today:

  • Fixed (Search):  Searches for accented and non-accented words are  
now combined.

Issue: http://code.google.com/p/twitter-api/issues/detail?id=503

  • Fixed (REST): The new friendships/show method no longer returns  
502 on large users.

Issue: http://code.google.com/p/twitter-api/issues/detail?id=757

  • Feature (Search): Added Farsi/Persian to the list of available  
languages.


   As always we've updated the change log at 
http://apiwiki.twitter.com/REST-API-Changelog

Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev



[twitter-dev] Re: Security Best Practices

2009-06-29 Thread Scott Haneda


I heard the other day that in the wake of the MJ stuff, a few high  
profile celebs accounts where hacked.  Is this media "hacking" and  
there were just weak passwords, or their email accounts were  
compromised, or were these real live hacks where someone brute forced,  
or did otherwise nefarious acts to get in.


Some clarification on these events would help to let us know where and  
how people are getting in, so we can tighten things up on our end. If  
the hacks are just email accounts being gotten into, there is nothing  
twitter apps need to do.  If it is something else, there may be other  
things we can do to keep the accounts safe.


Thanks.

On Jun 29, 2009, at 3:34 PM, Alex Payne wrote:

I wanted to point out a blog post (http://apiblog.twitter.com/security-best-practices-for-twitter-apps 
) that addresses the coming "Month of Twitter Bugs". Long story  
short: Twitter is in the loop, we've got security at the forefront  
of our daily work right now, and we're available to help if your  
application is identified as vulnerable or compromised.


Please check out the new wiki page (http://apiwiki.twitter.com/Security-Best-Practices 
) and let us know what's missing. Thanks!


--
Scott * If you contact me off list replace talklists@ with scott@ *



[twitter-dev] Security Best Practices

2009-06-29 Thread Alex Payne
I wanted to point out a blog post (
http://apiblog.twitter.com/security-best-practices-for-twitter-apps) that
addresses the coming "Month of Twitter Bugs". Long story short: Twitter is
in the loop, we've got security at the forefront of our daily work right
now, and we're available to help if your application is identified as
vulnerable or compromised.
Please check out the new wiki page (
http://apiwiki.twitter.com/Security-Best-Practices) and let us know what's
missing. Thanks!

-- 
Alex Payne - Platform Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Re: in_reply_to_status_id validation has changed

2009-06-29 Thread Doug Williams
I have updated the documentation to reflect this change. Thanks for pointing
out the error.

Thanks,
Doug



On Sun, Jun 28, 2009 at 9:01 AM, Nick  wrote:

>
> This is excellent news! (Sorry, I'm a little behind.)
>
> However, documentation still asserts that the @mention must be at the
> beginning of the tweet (maybe someone just needs to update this wiki
> page:
> http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update
> )
> and the Twitter web interface still appears to follow this rule.
>
> That is, if I click reply from the web, it starts the tweet with the
> @mention at the very beginning.  And if I move the @mention to
> somewhere else in the tweet (to avoid the #fixreplies bug and let my
> other followers see it), in_reply_to is silently dropped.  From the
> web interface, this makes it impossible to send a reply that your
> followers can both see and follow to the conversation thread.
>
> Is the web interface just behind the times?  Or are we encouraged not
> to use this newly-relaxed feature?
>
> Thanks,
> Nick
>
> On Apr 30, 6:02 pm, Doug Williams  wrote:
> > Before today, the value of the in_reply_to_status_id field was validated
> by
> > two requirements,:
> >
> > 1) It was set to a valid status_id
> > 2) The valid status_id's author from #1 was @replied in the update
> (@reply
> > here is the old definition where "@user" was at the beginning of the
> tweet).
> >
> > If the value of in_reply_to_status_id did not meet these criteria, it was
> > silently dropped.
> >
> > We have relaxed requirement #2 to permit mentions, meaning that the user
> of
> > the referenced tweet needs to be included somewhere in the update. Enjoy
> the
> > new data!
> >
> > Thanks,
> > Doug
> > --
> >
> > Doug Williams
> > Twitter Platform Supporthttp://twitter.com/dougw
>


[twitter-dev] Re: API search, json results, 404 pages, and docs

2009-06-29 Thread Scott Haneda


Hi Mark, I am just not there yet, 80% into the dev.  If I can take  
this off list, I would be more than happy to explain to you what it is  
all about.


Thanks for the reply and working with me on this.
I plan on being public and getting a normal API key soon, as soon as I  
manage to come up with a name, which is being more elusive than ever  
for some reason.


On Jun 29, 2009, at 3:02 PM, Doug Williams wrote:

Can you include the details of what you are attempting to do and how  
you are going about doing it? 2500 uniques an hour is pretty strong,  
what site will this application be running on?


--
Scott * If you contact me off list replace talklists@ with scott@ *



[twitter-dev] Re: API search, json results, 404 pages, and docs

2009-06-29 Thread Doug Williams
Scott,
Can you include the details of what you are attempting to do and how you are
going about doing it? 2500 uniques an hour is pretty strong, what site will
this application be running on?

Thanks,
Doug



On Mon, Jun 29, 2009 at 10:42 AM, Scott Haneda  wrote:

> Reposting. I should have fixed the horrendous spelling my phone dished out.
> Sorry for the double post, but this one should be clearer…
>
> Thanks. I have a feeling I'm going to go over the 20,000 a hour hit rate
> limit. Are those hard limits or does Twitter make concessions to busy sites?
>
> I can not have the user login, too much of a barrier. I figure each visit
> is going to be at best 2 API hits, and at worst, maybe 4.
>
> That's about 5000 unique visits per hour. I'll cache the page entirely so
> reload happy people to dot mess things up.
>
> After the 4 hits, there will be Ajax enabled options that allow them to
> drill in and hit Twitter more.
>
> 5000 a hour will soon become 2500 an hour. Respectible, but if I have my
> way, this site will get more traffic than that. Suggestions?
> --
> Scott
> Iphone says hello.
>


[twitter-dev] Re: How to list followers, including icons and usernames?

2009-06-29 Thread Doug Williams
Aaron,
The best way to get all of the information including latest status from each
follower is to use the statuses/followers method. It will return the latest
status for each follower (no matter how long they have been idle) in line
with their profile information.

Thanks,
Doug


--
Do you follow me? http://twitter.com/dougw



On Mon, Jun 29, 2009 at 5:02 AM, Aaron Rankin  wrote:

>
> It looks like status/followers gets you part of the way there. First,
> some questions for Twitter:
>
> 1) Does status/followers return statuses for distinct users? E.g., if
> one of my followers has changed their status twice in the past minute,
> will this method return the latest or both?
> 2) For every follower, will this definitely return the last status for
> each, even if they've been idle for some time?
>
> Since this returns statuses in batches of 100, to get all data for all
> followers, you'll still to run a query for every 100 (including the
> remainder at the end). At least in the JSON, status/followers doesn't
> tell you how many followers there are. To know the number of queries
> (pages of 100) to fetch, you also need to query followers/ids. It's
> clearly better than 1 query per follower + 1 call to follower/ids for
> the main user in question.
>
> Is this the best way to get information for each follower of a given
> user?
>
>
> Thanks,
> Aaron
>
> On Jun 28, 12:41 pm, Abraham Williams <4bra...@gmail.com> wrote:
> > Check out this method:
> http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f...
> >
> >
> >
> > On Sun, Jun 28, 2009 at 12:26, Bemmu wrote:
> >
> > > I'm wanting to do a friend selector that looks something like the
> > > selector on Facebook, where the user sees a list of their followers'
> > > names and icons, and can select some of them. Right now the only way I
> > > can think of is first getting all IDs of followers from "/followers/
> > > ids", and then calling "/users/show.json?user_id=" for each. Seems
> > > expensive and slow.
> >
> > > What's the right way to do this? I see some apps have follower
> > > selectors, but I don't know if they screen scrape "http://twitter.com/
> > > followers/1401881", or do as I just described and simply not work for
> > > people with too many followers.
> >
> > > My dream API method would allow sorting by name or follower count,
> > > something like this:
> >
> > > Query: "/followers/list.json?sort=follower_count&page=1&per_page=1000"
> > > Response:
> > > [
> > >  { 'id' : 12345, 'icon' : 'http://...somethingjpg', 'username' :
> > > 'a' },
> > >  { 'id' : 67890, 'icon' : 'http://...somethingjpg', 'username' :
> > > 'b' },
> > >  ...
> > > ]
> >
> > > Since many users will probably have thousands of followers, I thought
> > > I could ease the
> >
> > --
> > Abraham Williams | Community Evangelist |http://web608.org
> > Hacker |http://abrah.am|http://twitter.com/abraham
> > Project |http://fireeagle.labs.poseurtech.com
> > This email is: [ ] blogable [x] ask first [ ] private.
>


[twitter-dev] Re: Favourite Count

2009-06-29 Thread JDG
You should ping the guys who run favrd[1]. They use it somehow and maybe
they could help you.

[1] Favrd: http://favrd.textism.com/

On Mon, Jun 29, 2009 at 13:25, Twitticism wrote:

>
> Is there anyway to access/utilise the favourite count of an individual
> tweet? Can't seem to find any info anywhere.
>
> Cheers,
>
> S
>
>


-- 
Internets. Serious business.


[twitter-dev] Re: Favourite Count

2009-06-29 Thread Chris Thomson
As far as I know, no, there isn't a favorite count for tweets. Issue #459
[1] was opened for this reason, but has since been closed as WontFix because
twitter.com doesn't have this functionality (yet).
It
seems sites like Favrd [2] crawl the favorites of users individually,
then aggregate the data to show which tweets are most favorited.

-Chris Thomson

[1] - http://code.google.com/p/twitter-api/issues/detail?id=459
[2] - http://favrd.textism.com

On Mon, Jun 29, 2009 at 3:25 PM, Twitticism
wrote:

>
> Is there anyway to access/utilise the favourite count of an individual
> tweet? Can't seem to find any info anywhere.
>
> Cheers,
>
> S
>
>


[twitter-dev] Favourite Count

2009-06-29 Thread Twitticism

Is there anyway to access/utilise the favourite count of an individual
tweet? Can't seem to find any info anywhere.

Cheers,

S



[twitter-dev] Re: OAuth with a Console Mode Client

2009-06-29 Thread Matt Sanford


Hi Miles,

If you register your application as a Desktop app with Twitter it  
will use the new PIN-based flow. The idea would be that a user will  
have to go to twitter.com the first time and approve your emacs  
plugin. When they approve it they will be presented with a PIN they  
then type back into your plugin. When the PIN is re-entered you can  
request an access token that you save and the user can use that from  
then on.
For an example of a command line app that uses the flow check out  
the "oauth" command installed by the OAuth gem [1]. It pretty much  
outputs a URL and says "go here" followed by a prompt for the PIN.


Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

[1] - http://github.com/mojodna/oauth/tree/mergeable

On Jun 29, 2009, at 1:06 PM, Miles wrote:



Hello,

I'm writing up a small Twitter client that runs inside of Emacs. I
know there's already Twit.el, but I've been wanting to learn how to
customize Emacs and it's been a fun project. I am mostly done and in
the course of trying to set the "source" attribute on posts
originating from my client, I realized that the Twitter API wants me
to use OAuth.

Right now I'm communicating with Twitter over HTTPS, there's no
security issue there. Still, I'm looking through the OAuth
documentation and it seems to be very slanted towards a GUI
environment. Is there any sample code out there that demonstrates
using OAuth that doesn't involve these web-page redirects?

I'm using Curl to communicate with Twitter right now (as recommended
by the API documentation). Any code that demonstrates using OAuth with
Curl would be awesome. I started poking around but I'm starting to get
the impression that this just isn't something that will work.

Thank you,
-- Miles




[twitter-dev] OAuth with a Console Mode Client

2009-06-29 Thread Miles

Hello,

I'm writing up a small Twitter client that runs inside of Emacs. I
know there's already Twit.el, but I've been wanting to learn how to
customize Emacs and it's been a fun project. I am mostly done and in
the course of trying to set the "source" attribute on posts
originating from my client, I realized that the Twitter API wants me
to use OAuth.

Right now I'm communicating with Twitter over HTTPS, there's no
security issue there. Still, I'm looking through the OAuth
documentation and it seems to be very slanted towards a GUI
environment. Is there any sample code out there that demonstrates
using OAuth that doesn't involve these web-page redirects?

I'm using Curl to communicate with Twitter right now (as recommended
by the API documentation). Any code that demonstrates using OAuth with
Curl would be awesome. I started poking around but I'm starting to get
the impression that this just isn't something that will work.

Thank you,
-- Miles


[twitter-dev] Re: source not working

2009-06-29 Thread Max

Okay, I'm going to try and figure out OAuth later tonight.  Thank you
very much.

On Jun 29, 9:11 am, DWRoelands  wrote:
> Max,
>
> Some time ago, Twitter stopped accepting the "Source" argument from
> applications using Basic Auth.  Any apps that had been using Basic
> Auth before that point were "grandfathered" in.  Any apps created
> after that point need to use OAuth for the "Source" to be accepted.
>
> Which is why I'm wrestling with OAuth now. :)
>
> On Jun 29, 8:10 am, Max K  wrote:
>
>
>
> > So umm... how do I get something to work using basic auth?
>
> > On Mon, Jun 29, 2009 at 7:42 AM, Abraham Williams <4bra...@gmail.com> wrote:
>
> > > Sources from OAuth applications don't work when used through basic auth.
>
> > > Abraham
>
> > > On Mon, Jun 29, 2009 at 05:49, Max K wrote:
> > > > well I'm using the command
> > > >>curl -v -d "source=roflcopterlolmachine&status=test" -u 
> > > >>username:password
> > > >>http://twitter.com/statuses/update.xml
>
> > > > and i have the name roflcopterlolmachine registered with twitter on
> > > >http://twitter.com/oauth_clients.  i'm new to the twitter api and just
> > > don't
> > > > understand whats going on
>
> > > > On Sun, Jun 28, 2009 at 11:36 PM, JDG  wrote:
>
> > > >> Source only works with oauth, unless you had registered it before OAuth
> > > >> was implemented. Are you using Basic auth?
>
> > > >> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
>
> > > >>> why is it that my source name doesn't work?  how long does it take for
> > > >>> twitter to recognize an application... because if i use a name of an
> > > >>> app that already exists [ex: max] it works, but if I do something like
> > > >>> status=rdfglkdfjgklfdg
>
> > > >>> it doesnt...
>
> > > >>> why?
>
> > > >> --
> > > >> Internets. Serious business.
>
> > > --
> > > Abraham Williams | Community Evangelist |http://web608.org
> > > Hacker |http://abrah.am|http://twitter.com/abraham
> > > Project |http://fireeagle.labs.poseurtech.com
> > > This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Arunachalam
no...i dont have any idea of crawling twitter.

Cheers,
Arunachalam


On Mon, Jun 29, 2009 at 11:34 PM, Doug Williams  wrote:

> Please do not scrape our site. We have processes in place that will
> automatically block your spiders.
>
> If you feel that you have a compelling need for vast amounts of data please
> email the API team [1] with a detailed description of your needs and the
> value you hope to create and let's have a conversation.
>
> 1. http://apiwiki.twitter.com/Support
>
> Thanks,
> Doug
>
>
>
>
>
>
> On Mon, Jun 29, 2009 at 10:30 AM, Scott Haneda wrote:
>
>> I dint think this is a function of a workaround. This is a function of
>> Twitter having a good policy in place to prevent abuse.
>>
>> You can do what you want by incrementally querrying the API. The API
>> limits will make it take too long. Even with multiple accounts it will be
>> months before you get a final list. Even then, I'm not sure you could keep
>> on top of new user registrations.
>>
>> Having acces to this data could only be used for nefarious efforts. What
>> you want would be a spammers dream.
>>
>> I think you would be better and faster to build a crawl farm and crawl all
>> links on Twitter.com and parse the users out, bypassing the API.
>>
>> Even with the API, as you add new records, those records you just added
>> will expire, delete, get banned, blocked etc. There is no way you could ever
>> have a reconciled system.
>>
>> Consider if each username is an average 10 bytes. You have 520,000,000
>> bytes to download of just username data. Let's double that for http overhead
>> and other misc data that will come over the wire. 1 billion bytes.
>>
>> That's a strongly conservative terrabyte of data that you would have to
>> download once a day and reconcile against the previous day. A terrabyte of
>> just usernames.
>>
>> Then you have all the CPU that you will need, network lag, time to insert
>> into your data source.
>>
>> This is not something that can be worked around. This is simply a
>> limitation of scale, one that can not be overcome. You need a direct link to
>> twitters data sources, ideally from within their data center to reduce
>> network lag. This probably will not be approved :)
>> --
>> Scott
>> Iphone says hello.
>>
>> On Jun 29, 2009, at 9:06 AM, Arunachalam  wrote:
>>
>> Even if i have my account whitelisted, which have 20,000 request per hour,
>> i need to run for many days which is not feasible. Any other workaround.
>>
>> Any other way to get rid of these request limit.
>>
>> Cheers,
>> Arunachalam
>>
>>
>> On Mon, Jun 29, 2009 at 7:01 PM, Abraham Williams < <4bra...@gmail.com>
>> 4bra...@gmail.com> wrote:
>>
>>>
>>> There has been over 5200 profiles created. You could just start at
>>> 1 and count up. Might take you a while though.
>>>
>>> Abraham
>>>
>>> On Mon, Jun 29, 2009 at 07:55, Arunachalam< 
>>> arunachala...@gmail.com> wrote:
>>> > Any idea how to implement the same using php / any other language.
>>> > Im confused abt the implementation.
>>> >
>>> > Cheers,
>>> > Arunachalam
>>> >
>>> >
>>> > On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser <
>>> spec...@floodgap.com>
>>> > wrote:
>>> >>
>>> >> > I am looking to find the entire twitter user list ids.
>>> >> >
>>> >> > Social graph method provides the way to fetch the friends and
>>> followers
>>> >> > id,
>>> >> > thorough which we can access the profile of the person using user
>>> method
>>> >> > -
>>> >> > show. But this requires a code to be written to recursively crawl
>>> the
>>> >> > list
>>> >> > from any starting id and appending the followers and friends id of
>>> the
>>> >> > person without duplicating.
>>> >> >
>>> >> > Do we have any other API to get entire list. If not, any other ways
>>> >> > apart
>>> >> > from crawling to get the entire list.
>>> >>
>>> >> No, and no, there are no other ways.
>>> >>
>>> >> --
>>> >>  personal:
>>> >> http://www.cameronkaiser.com/ --
>>> >>  Cameron Kaiser * Floodgap Systems * 
>>> www.floodgap.com *
>>> >> ckai...@floodgap.com
>>> >> -- Careful with that Axe, Eugene. -- Pink Floyd
>>> >> ---
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Abraham Williams | Community Evangelist | 
>>> http://web608.org
>>> Hacker | http://abrah.am | 
>>> http://twitter.com/abraham
>>> Project | 
>>> http://fireeagle.labs.poseurtech.com
>>> This email is: [ ] blogable [x] ask first [ ] private.
>>>
>>
>>
>


[twitter-dev] Re: Twitter User List

2009-06-29 Thread David Fisher

Thanks for the replies Doug.

btw, as far as I can tell the ~ 52M integer values for user ids aren't
fully sequential, with some amount missing in between, which I'm
assuming is intentionally done to make it slightly more difficult to
know the exact user growth trends/patterns (seems valid to me) or for
some other system reason. There's definitely some gaps in there FYI.

dave

On Jun 29, 2:04 pm, Doug Williams  wrote:
> Please do not scrape our site. We have processes in place that will
> automatically block your spiders.
>
> If you feel that you have a compelling need for vast amounts of data please
> email the API team [1] with a detailed description of your needs and the
> value you hope to create and let's have a conversation.
>
> 1.http://apiwiki.twitter.com/Support
>
> Thanks,
> Doug
>
>
>
> On Mon, Jun 29, 2009 at 10:30 AM, Scott Haneda  wrote:
> > I dint think this is a function of a workaround. This is a function of
> > Twitter having a good policy in place to prevent abuse.
>
> > You can do what you want by incrementally querrying the API. The API limits
> > will make it take too long. Even with multiple accounts it will be months
> > before you get a final list. Even then, I'm not sure you could keep on top
> > of new user registrations.
>
> > Having acces to this data could only be used for nefarious efforts. What
> > you want would be a spammers dream.
>
> > I think you would be better and faster to build a crawl farm and crawl all
> > links on Twitter.com and parse the users out, bypassing the API.
>
> > Even with the API, as you add new records, those records you just added
> > will expire, delete, get banned, blocked etc. There is no way you could ever
> > have a reconciled system.
>
> > Consider if each username is an average 10 bytes. You have 520,000,000
> > bytes to download of just username data. Let's double that for http overhead
> > and other misc data that will come over the wire. 1 billion bytes.
>
> > That's a strongly conservative terrabyte of data that you would have to
> > download once a day and reconcile against the previous day. A terrabyte of
> > just usernames.
>
> > Then you have all the CPU that you will need, network lag, time to insert
> > into your data source.
>
> > This is not something that can be worked around. This is simply a
> > limitation of scale, one that can not be overcome. You need a direct link to
> > twitters data sources, ideally from within their data center to reduce
> > network lag. This probably will not be approved :)
> > --
> > Scott
> > Iphone says hello.
>
> > On Jun 29, 2009, at 9:06 AM, Arunachalam  wrote:
>
> > Even if i have my account whitelisted, which have 20,000 request per hour,
> > i need to run for many days which is not feasible. Any other workaround.
>
> > Any other way to get rid of these request limit.
>
> > Cheers,
> > Arunachalam
>
> > On Mon, Jun 29, 2009 at 7:01 PM, Abraham Williams < <4bra...@gmail.com>
> > 4bra...@gmail.com> wrote:
>
> >> There has been over 5200 profiles created. You could just start at
> >> 1 and count up. Might take you a while though.
>
> >> Abraham
>
> >> On Mon, Jun 29, 2009 at 07:55, Arunachalam< 
> >> arunachala...@gmail.com> wrote:
> >> > Any idea how to implement the same using php / any other language.
> >> > Im confused abt the implementation.
>
> >> > Cheers,
> >> > Arunachalam
>
> >> > On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser <
> >> spec...@floodgap.com>
> >> > wrote:
>
> >> >> > I am looking to find the entire twitter user list ids.
>
> >> >> > Social graph method provides the way to fetch the friends and
> >> followers
> >> >> > id,
> >> >> > thorough which we can access the profile of the person using user
> >> method
> >> >> > -
> >> >> > show. But this requires a code to be written to recursively crawl the
> >> >> > list
> >> >> > from any starting id and appending the followers and friends id of
> >> the
> >> >> > person without duplicating.
>
> >> >> > Do we have any other API to get entire list. If not, any other ways
> >> >> > apart
> >> >> > from crawling to get the entire list.
>
> >> >> No, and no, there are no other ways.
>
> >> >> --
> >> >>  personal:
> >> >> http://www.cameronkaiser.com/--
> >> >>  Cameron Kaiser * Floodgap Systems * 
> >>www.floodgap.com*
> >> >> ckai...@floodgap.com
> >> >> -- Careful with that Axe, Eugene. -- Pink Floyd
> >> >> ---
>
> >> --
> >> Abraham Williams | Community Evangelist | 
> >>http://web608.org
> >> Hacker | http://abrah.am| 
> >>http://twitter.com/abraham
> >> Project | 
> >>http://fireeagle.labs.poseurtech.com
> >> This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Dossy Shiobara


On 6/29/09 1:30 PM, Scott Haneda wrote:

Consider if each username is an average 10 bytes. You have 520,000,000
bytes to download of just username data. Let's double that for http
overhead and other misc data that will come over the wire. 1 billion bytes.

That's a strongly conservative terrabyte of data that you would have to
download once a day and reconcile against the previous day. A terrabyte
of just usernames.


1 billion bytes = 1 gigabyte, not 1 terabyte.  1 GB/day is significant, 
but not intractable.


--
Dossy Shiobara  | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Doug Williams
Please do not scrape our site. We have processes in place that will
automatically block your spiders.

If you feel that you have a compelling need for vast amounts of data please
email the API team [1] with a detailed description of your needs and the
value you hope to create and let's have a conversation.

1. http://apiwiki.twitter.com/Support

Thanks,
Doug





On Mon, Jun 29, 2009 at 10:30 AM, Scott Haneda  wrote:

> I dint think this is a function of a workaround. This is a function of
> Twitter having a good policy in place to prevent abuse.
>
> You can do what you want by incrementally querrying the API. The API limits
> will make it take too long. Even with multiple accounts it will be months
> before you get a final list. Even then, I'm not sure you could keep on top
> of new user registrations.
>
> Having acces to this data could only be used for nefarious efforts. What
> you want would be a spammers dream.
>
> I think you would be better and faster to build a crawl farm and crawl all
> links on Twitter.com and parse the users out, bypassing the API.
>
> Even with the API, as you add new records, those records you just added
> will expire, delete, get banned, blocked etc. There is no way you could ever
> have a reconciled system.
>
> Consider if each username is an average 10 bytes. You have 520,000,000
> bytes to download of just username data. Let's double that for http overhead
> and other misc data that will come over the wire. 1 billion bytes.
>
> That's a strongly conservative terrabyte of data that you would have to
> download once a day and reconcile against the previous day. A terrabyte of
> just usernames.
>
> Then you have all the CPU that you will need, network lag, time to insert
> into your data source.
>
> This is not something that can be worked around. This is simply a
> limitation of scale, one that can not be overcome. You need a direct link to
> twitters data sources, ideally from within their data center to reduce
> network lag. This probably will not be approved :)
> --
> Scott
> Iphone says hello.
>
> On Jun 29, 2009, at 9:06 AM, Arunachalam  wrote:
>
> Even if i have my account whitelisted, which have 20,000 request per hour,
> i need to run for many days which is not feasible. Any other workaround.
>
> Any other way to get rid of these request limit.
>
> Cheers,
> Arunachalam
>
>
> On Mon, Jun 29, 2009 at 7:01 PM, Abraham Williams < <4bra...@gmail.com>
> 4bra...@gmail.com> wrote:
>
>>
>> There has been over 5200 profiles created. You could just start at
>> 1 and count up. Might take you a while though.
>>
>> Abraham
>>
>> On Mon, Jun 29, 2009 at 07:55, Arunachalam< 
>> arunachala...@gmail.com> wrote:
>> > Any idea how to implement the same using php / any other language.
>> > Im confused abt the implementation.
>> >
>> > Cheers,
>> > Arunachalam
>> >
>> >
>> > On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser <
>> spec...@floodgap.com>
>> > wrote:
>> >>
>> >> > I am looking to find the entire twitter user list ids.
>> >> >
>> >> > Social graph method provides the way to fetch the friends and
>> followers
>> >> > id,
>> >> > thorough which we can access the profile of the person using user
>> method
>> >> > -
>> >> > show. But this requires a code to be written to recursively crawl the
>> >> > list
>> >> > from any starting id and appending the followers and friends id of
>> the
>> >> > person without duplicating.
>> >> >
>> >> > Do we have any other API to get entire list. If not, any other ways
>> >> > apart
>> >> > from crawling to get the entire list.
>> >>
>> >> No, and no, there are no other ways.
>> >>
>> >> --
>> >>  personal:
>> >> http://www.cameronkaiser.com/ --
>> >>  Cameron Kaiser * Floodgap Systems * 
>> www.floodgap.com *
>> >> ckai...@floodgap.com
>> >> -- Careful with that Axe, Eugene. -- Pink Floyd
>> >> ---
>> >
>> >
>>
>>
>>
>> --
>> Abraham Williams | Community Evangelist | 
>> http://web608.org
>> Hacker | http://abrah.am | 
>> http://twitter.com/abraham
>> Project | 
>> http://fireeagle.labs.poseurtech.com
>> This email is: [ ] blogable [x] ask first [ ] private.
>>
>
>


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Scott Haneda
I dint think this is a function of a workaround. This is a function of  
Twitter having a good policy in place to prevent abuse.


You can do what you want by incrementally querrying the API. The API  
limits will make it take too long. Even with multiple accounts it will  
be months before you get a final list. Even then, I'm not sure you  
could keep on top of new user registrations.


Having acces to this data could only be used for nefarious efforts.  
What you want would be a spammers dream.


I think you would be better and faster to build a crawl farm and crawl  
all links on Twitter.com and parse the users out, bypassing the API.


Even with the API, as you add new records, those records you just  
added will expire, delete, get banned, blocked etc. There is no way  
you could ever have a reconciled system.


Consider if each username is an average 10 bytes. You have 520,000,000  
bytes to download of just username data. Let's double that for http  
overhead and other misc data that will come over the wire. 1 billion  
bytes.


That's a strongly conservative terrabyte of data that you would have  
to download once a day and reconcile against the previous day. A  
terrabyte of just usernames.


Then you have all the CPU that you will need, network lag, time to  
insert into your data source.


This is not something that can be worked around. This is simply a  
limitation of scale, one that can not be overcome. You need a direct  
link to twitters data sources, ideally from within their data center  
to reduce network lag. This probably will not be approved :)

--
Scott
Iphone says hello.

On Jun 29, 2009, at 9:06 AM, Arunachalam   
wrote:


Even if i have my account whitelisted, which have 20,000 request per  
hour, i need to run for many days which is not feasible. Any other  
workaround.


Any other way to get rid of these request limit.

Cheers,
Arunachalam


On Mon, Jun 29, 2009 at 7:01 PM, Abraham Williams  
<4bra...@gmail.com> wrote:


There has been over 5200 profiles created. You could just start at
1 and count up. Might take you a while though.

Abraham

On Mon, Jun 29, 2009 at 07:55, Arunachalam  
wrote:

> Any idea how to implement the same using php / any other language.
> Im confused abt the implementation.
>
> Cheers,
> Arunachalam
>
>
> On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser >

> wrote:
>>
>> > I am looking to find the entire twitter user list ids.
>> >
>> > Social graph method provides the way to fetch the friends and  
followers

>> > id,
>> > thorough which we can access the profile of the person using  
user method

>> > -
>> > show. But this requires a code to be written to recursively  
crawl the

>> > list
>> > from any starting id and appending the followers and friends id  
of the

>> > person without duplicating.
>> >
>> > Do we have any other API to get entire list. If not, any other  
ways

>> > apart
>> > from crawling to get the entire list.
>>
>> No, and no, there are no other ways.
>>
>> --
>>  personal:
>> http://www.cameronkaiser.com/ --
>>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
>> ckai...@floodgap.com
>> -- Careful with that Axe, Eugene. -- Pink Floyd
>> ---
>
>



--
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.



[twitter-dev] Re: API search, json results, 404 pages, and docs

2009-06-29 Thread Scott Haneda
Reposting. I should have fixed the horrendous spelling my phone dished  
out. Sorry for the double post, but this one should be clearer…


Thanks. I have a feeling I'm going to go over the 20,000 a hour hit  
rate limit. Are those hard limits or does Twitter make concessions to  
busy sites?


I can not have the user login, too much of a barrier. I figure each  
visit is going to be at best 2 API hits, and at worst, maybe 4.


That's about 5000 unique visits per hour. I'll cache the page entirely  
so reload happy people to dot mess things up.


After the 4 hits, there will be Ajax enabled options that allow them  
to drill in and hit Twitter more.


5000 a hour will soon become 2500 an hour. Respectible, but if I have  
my way, this site will get more traffic than that. Suggestions?

--
Scott
Iphone says hello.

[twitter-dev] Re: API search, json results, 404 pages, and docs

2009-06-29 Thread Scott Haneda
Thanks. I have a feeling I'm going to go over the 20,000 a hour hits  
rate limit. Are those gard limits or dies Twitter make concessions to  
busy sites?


I can not have the use login, to much if a barrier. I figure each  
visit is going to be at best 2 API hits, and at worst, maybe 4.


That's about 5000 unique visits per hour. I'll cache the page entirely  
so reload happy people to dot mess things up.


After the 4 hits, there will be Ajax enabled options that allow them  
to drill in and hit Twitter more.


5000 a hour will soon become 2500 an hour. Respectible, but if I have  
my way, this site will get more traffic than that. Suggestions?

--
Scott
Iphone says hello.

On Jun 29, 2009, at 6:51 AM, Michael Ivey   
wrote:


The search API only has 7 days of history available, currently. Try  
the REST API for that user's updates.


 -- ivey


On Mon, Jun 29, 2009 at 3:50 AM, talklists   
wrote:


http://search.twitter.com/search.json?page=4&max_id=2384515303&rpp=80&q=from%3Acometbus

I have hit page 4 on that request.
Here is the JSON I am getting back:
{
   "results": [],
   "since_id": 0,
   "max_id": 2384515303,
   "previous_page": "?page=3&max_id=2384515303&rpp=80&q=from
%3Acometbus",
   "refresh_url": "?since_id=2384515303&q=from%3Acometbus",
   "results_per_page": 80,
   "total": 240,
   "completed_in": 0.273265,
   "page": 4,
   "query": "from%3Acometbus"
}

This account has 1600 updates, so rpp(80)*4 = 320, which is much less
than 1600.  The above is also a 404 page.  I have read the docs which
tell me the below conflicting information.

http://apiwiki.twitter.com/Things-Every-Developer-Should-Know#6Therearepaginationlimits
Search API Limit Clients may request up to 1,500 statuses
via the page and rpp parameters for the search method. The
response to a request exceeding this limit will be a
status code of 200 and an empty result in the format
requested. This artificial limit is in place to ensure the
performance of the search system. We also restrict the
size of the search index by placing a date limit on the
updates we allow you to search. This limit is currently
around 1.5 weeks but is dynamic and subject to shrink as
the number of tweets per day continues to grow.

I do not get a 200 response, I get a 404 response.  I can not go back
as far as I would like to.  Interestingly, the twitter website, as
well as tweetie client can go back much farther with no issue.

Thanks.



[twitter-dev] Have Follow Limits Changed?

2009-06-29 Thread Chris Latko

I've noticed that my daily follow limit has dropped to about 200 per  
day. I have more than 2,000 followers and my friend/follow ratio is  
below 1.0. According to http://help.twitter.com/forums/10713/entries/14959 
, I should be able to follow more people.

Has there been a change in policy? If so, I would like to inform my  
users if they encounter this problem.


Thank you.

--
Chris Latko
www.latko.org
@clatko





[twitter-dev] Re: Twitter User List

2009-06-29 Thread Doug Williams
Can you be more specific about your end goal? What is it that you are trying
to do? Let's figure out if there is a better way to get you there.

Thanks,
Doug




On Mon, Jun 29, 2009 at 9:06 AM, Arunachalam wrote:

> Even if i have my account whitelisted, which have 20,000 request per hour,
> i need to run for many days which is not feasible. Any other workaround.
>
> Any other way to get rid of these request limit.
>
> Cheers,
> Arunachalam
>
>
>
> On Mon, Jun 29, 2009 at 7:01 PM, Abraham Williams <4bra...@gmail.com>wrote:
>
>>
>> There has been over 5200 profiles created. You could just start at
>> 1 and count up. Might take you a while though.
>>
>> Abraham
>>
>> On Mon, Jun 29, 2009 at 07:55, Arunachalam
>> wrote:
>> > Any idea how to implement the same using php / any other language.
>> > Im confused abt the implementation.
>> >
>> > Cheers,
>> > Arunachalam
>> >
>> >
>> > On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser 
>> > wrote:
>> >>
>> >> > I am looking to find the entire twitter user list ids.
>> >> >
>> >> > Social graph method provides the way to fetch the friends and
>> followers
>> >> > id,
>> >> > thorough which we can access the profile of the person using user
>> method
>> >> > -
>> >> > show. But this requires a code to be written to recursively crawl the
>> >> > list
>> >> > from any starting id and appending the followers and friends id of
>> the
>> >> > person without duplicating.
>> >> >
>> >> > Do we have any other API to get entire list. If not, any other ways
>> >> > apart
>> >> > from crawling to get the entire list.
>> >>
>> >> No, and no, there are no other ways.
>> >>
>> >> --
>> >>  personal:
>> >> http://www.cameronkaiser.com/ --
>> >>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
>> >> ckai...@floodgap.com
>> >> -- Careful with that Axe, Eugene. -- Pink Floyd
>> >> ---
>> >
>> >
>>
>>
>>
>> --
>> Abraham Williams | Community Evangelist | http://web608.org
>> Hacker | http://abrah.am | http://twitter.com/abraham
>> Project | http://fireeagle.labs.poseurtech.com
>> This email is: [ ] blogable [x] ask first [ ] private.
>>
>
>


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Arunachalam
Even if i have my account whitelisted, which have 20,000 request per hour, i
need to run for many days which is not feasible. Any other workaround.

Any other way to get rid of these request limit.

Cheers,
Arunachalam


On Mon, Jun 29, 2009 at 7:01 PM, Abraham Williams <4bra...@gmail.com> wrote:

>
> There has been over 5200 profiles created. You could just start at
> 1 and count up. Might take you a while though.
>
> Abraham
>
> On Mon, Jun 29, 2009 at 07:55, Arunachalam wrote:
> > Any idea how to implement the same using php / any other language.
> > Im confused abt the implementation.
> >
> > Cheers,
> > Arunachalam
> >
> >
> > On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser 
> > wrote:
> >>
> >> > I am looking to find the entire twitter user list ids.
> >> >
> >> > Social graph method provides the way to fetch the friends and
> followers
> >> > id,
> >> > thorough which we can access the profile of the person using user
> method
> >> > -
> >> > show. But this requires a code to be written to recursively crawl the
> >> > list
> >> > from any starting id and appending the followers and friends id of the
> >> > person without duplicating.
> >> >
> >> > Do we have any other API to get entire list. If not, any other ways
> >> > apart
> >> > from crawling to get the entire list.
> >>
> >> No, and no, there are no other ways.
> >>
> >> --
> >>  personal:
> >> http://www.cameronkaiser.com/ --
> >>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
> >> ckai...@floodgap.com
> >> -- Careful with that Axe, Eugene. -- Pink Floyd
> >> ---
> >
> >
>
>
>
> --
> Abraham Williams | Community Evangelist | http://web608.org
> Hacker | http://abrah.am | http://twitter.com/abraham
> Project | http://fireeagle.labs.poseurtech.com
> This email is: [ ] blogable [x] ask first [ ] private.
>


[twitter-dev] Re: hello, my is Buboo SYSOP.

2009-06-29 Thread JDG
it's not that you CAN do it with OAuth, it's that you HAVE to do it with
OAuth.

On Mon, Jun 29, 2009 at 08:48, Mandakini kumari  wrote:

> Hello
>
> I have developed a twitter application on http://www.redcounty.com/
>
> How can I have the source = "myappid".
>
> I know we can do it using oAuth but want to do it without any tweet browser
> as such. -OAuth needs users to have an *accept/deny* button using a
> browser.
>
> If I just update the status using status=mystatus&source=myappid then it
> doesn't work out.
> Please guide me how to bring *ago from RedCounty.com*
>  instead *ago from web*
> .
>
>
> Please help me to do it.
>
>
>
> On Mon, Jun 29, 2009 at 8:11 PM, Matt Sanford  wrote:
>
>>
>> Hello there,
>>
>>It sounds like your IP address has been blacklisted by the Twitter
>> operations department. Please email a...@twitter.com with the following
>> information and we'll take a look:
>>
>> 1. The IP address you;re requesting from (included: 61.61.132.34)
>> 2. A sample request showing the error (included: see below)
>> 3. What are you doing with the Twitter API? (a link is very helpful)
>> 4. When did this problem begin?
>> 5. Was there anything prior to this problem that might have appeared
>> abusive from the Twitter.com perspective? (like a bug making 1000s of
>> requests)
>>
>> Thanks;
>>  — Matt Sanford
>>
>> On Jun 26, 2009, at 6:17 PM, kang wrote:
>>
>>
>>> hello,
>>>
>>> I come from taiwan http://buboo.tw SYSOP.
>>>
>>> my buboo server (61.61.132.34) can't send data to twitter api server..
>>> ===
>>> [r...@www ~]# telnet twitter.com 80
>>> Trying 128.121.146.100...
>>> telnet: connect to address 128.121.146.100: Connection timed out
>>> telnet: Unable to connect to remote host: Connection timed out
>>>
>>> [r...@www ~]# telnet 168.143.162.68 80
>>> Trying 168.143.162.68...
>>> telnet: connect to address 168.143.162.68: Connection timed out
>>> telnet: Unable to connect to remote host: Connection timed out
>>> ===
>>>
>>> But from the other server (61.61.132.35) can send data to twitter api
>>> server.
>>> ===
>>> [r...@www buboo]# telnet twitter.com 80
>>> Trying 168.143.162.68...
>>> Connected to twitter.com (168.143.162.68).
>>> Escape character is '^]'.
>>> ===
>>>
>>> What is the problem?
>>>
>>
>>
>
>
> --
> Regards
> Mandakini
>



-- 
Internets. Serious business.


[twitter-dev] Re: hello, my is Buboo SYSOP.

2009-06-29 Thread Mandakini kumari
Hello

I have developed a twitter application on http://www.redcounty.com/

How can I have the source = "myappid".

I know we can do it using oAuth but want to do it without any tweet browser
as such. -OAuth needs users to have an *accept/deny* button using a
browser.

If I just update the status using status=mystatus&source=myappid then it
doesn't work out.
Please guide me how to bring *ago from RedCounty.com*
 instead *ago from web*.


Please help me to do it.



On Mon, Jun 29, 2009 at 8:11 PM, Matt Sanford  wrote:

>
> Hello there,
>
>It sounds like your IP address has been blacklisted by the Twitter
> operations department. Please email a...@twitter.com with the following
> information and we'll take a look:
>
> 1. The IP address you;re requesting from (included: 61.61.132.34)
> 2. A sample request showing the error (included: see below)
> 3. What are you doing with the Twitter API? (a link is very helpful)
> 4. When did this problem begin?
> 5. Was there anything prior to this problem that might have appeared
> abusive from the Twitter.com perspective? (like a bug making 1000s of
> requests)
>
> Thanks;
>  — Matt Sanford
>
> On Jun 26, 2009, at 6:17 PM, kang wrote:
>
>
>> hello,
>>
>> I come from taiwan http://buboo.tw SYSOP.
>>
>> my buboo server (61.61.132.34) can't send data to twitter api server..
>> ===
>> [r...@www ~]# telnet twitter.com 80
>> Trying 128.121.146.100...
>> telnet: connect to address 128.121.146.100: Connection timed out
>> telnet: Unable to connect to remote host: Connection timed out
>>
>> [r...@www ~]# telnet 168.143.162.68 80
>> Trying 168.143.162.68...
>> telnet: connect to address 168.143.162.68: Connection timed out
>> telnet: Unable to connect to remote host: Connection timed out
>> ===
>>
>> But from the other server (61.61.132.35) can send data to twitter api
>> server.
>> ===
>> [r...@www buboo]# telnet twitter.com 80
>> Trying 168.143.162.68...
>> Connected to twitter.com (168.143.162.68).
>> Escape character is '^]'.
>> ===
>>
>> What is the problem?
>>
>
>


-- 
Regards
Mandakini


[twitter-dev] Re: OAuth IDN/Punycode domain names

2009-06-29 Thread Matt Sanford


Hello,

That's something I should be able to fix. Please file an issue at http://code.google.com/p/twitter-api/issues/entry 
 so I don't forget.


Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

On Jun 27, 2009, at 5:58 PM, Harrison wrote:



Hi there,

I'm wondering if there are plans to recognise IDN domain names as
valid in the OAuth application setup pages? My domain itself (http://
✪➝.ws/) isn't recognised as valid URL format which is  
understandable,

however the punycode version of the same domain name (http://
xn--2ci9n.ws/) also isn't recognised. This is suboptimal and requires
me to do some ugly domain hacks to get basic callback functionality in
place.

Thanks.




[twitter-dev] Re: hello, my is Buboo SYSOP.

2009-06-29 Thread Matt Sanford


Hello there,

It sounds like your IP address has been blacklisted by the  
Twitter operations department. Please email a...@twitter.com with the  
following information and we'll take a look:


1. The IP address you;re requesting from (included: 61.61.132.34)
2. A sample request showing the error (included: see below)
3. What are you doing with the Twitter API? (a link is very helpful)
4. When did this problem begin?
5. Was there anything prior to this problem that might have appeared  
abusive from the Twitter.com perspective? (like a bug making 1000s of  
requests)


Thanks;
  — Matt Sanford

On Jun 26, 2009, at 6:17 PM, kang wrote:



hello,

I come from taiwan http://buboo.tw SYSOP.

my buboo server (61.61.132.34) can't send data to twitter api server..
===
[r...@www ~]# telnet twitter.com 80
Trying 128.121.146.100...
telnet: connect to address 128.121.146.100: Connection timed out
telnet: Unable to connect to remote host: Connection timed out

[r...@www ~]# telnet 168.143.162.68 80
Trying 168.143.162.68...
telnet: connect to address 168.143.162.68: Connection timed out
telnet: Unable to connect to remote host: Connection timed out
===

But from the other server (61.61.132.35) can send data to twitter api
server.
===
[r...@www buboo]# telnet twitter.com 80
Trying 168.143.162.68...
Connected to twitter.com (168.143.162.68).
Escape character is '^]'.
===

What is the problem?




[twitter-dev] Re: PIN Authentication Examples?

2009-06-29 Thread Matt Sanford


Hi Duane,

When you get the 401 what does the body say?

Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

On Jun 29, 2009, at 4:29 AM, DWRoelands wrote:



I'm having a devil of a time getting my application to connect to
Twitter via OAuth and the six-digit pin method.

I've been working with the excellent OAuth library from
ShannonWhitley:
http://www.voiceoftech.com/swhitley/?p=681

I'm able to get an authorization link, open a browser, and get the  
six-

digit PIN.  However, I can't seem to submit that PIN back to Twitter
without getting a 401 Unauthorized error.

I added this method to Shannon's TWitter OAuth code:

   public bool ValidatePin(string PIN)
   {
   string response = WebRequest(Method.GET, string.Format
("{0}?oauth_verifier={1}", ACCESS_TOKEN, PIN), string.Empty);
   if (response.Length > 0)
   {
   //Store the Token and Token Secret
   var qs = HttpUtility.ParseQueryString(response);
   if (!string.IsNullOrEmpty(qs["oauth_token"]))
this.Token = qs["oauth_token"];
   if (!string.IsNullOrEmpty(qs["oauth_token_secret"]))
this.TokenSecret = qs["oauth_token_secret"];
   return true;
   }
   else
   {
   return false;
   }
   }

Inevitably, I get 401 Unauthorized when submitting the
"oauth_verifier" web request.
I have a consumer key and a consumer key secret which work (as is
evidenced by the fact that I can get an authorization link).

Has anyone else encountered similar issues, or does anyone else have
any guidance on this particular issue?

Thanks in advance.
--Duane





[twitter-dev] Re: API search, json results, 404 pages, and docs

2009-06-29 Thread Michael Ivey
The search API only has 7 days of history available, currently. Try the REST
API for that user's updates.
 -- ivey


On Mon, Jun 29, 2009 at 3:50 AM, talklists  wrote:

>
>
> http://search.twitter.com/search.json?page=4&max_id=2384515303&rpp=80&q=from%3Acometbus
>
> I have hit page 4 on that request.
> Here is the JSON I am getting back:
> {
>"results": [],
>"since_id": 0,
>"max_id": 2384515303,
>"previous_page": "?page=3&max_id=2384515303&rpp=80&q=from
> %3Acometbus",
>"refresh_url": "?since_id=2384515303&q=from%3Acometbus",
>"results_per_page": 80,
>"total": 240,
>"completed_in": 0.273265,
>"page": 4,
>"query": "from%3Acometbus"
> }
>
> This account has 1600 updates, so rpp(80)*4 = 320, which is much less
> than 1600.  The above is also a 404 page.  I have read the docs which
> tell me the below conflicting information.
>
>
> http://apiwiki.twitter.com/Things-Every-Developer-Should-Know#6Therearepaginationlimits
> Search API Limit Clients may request up to 1,500 statuses
> via the page and rpp parameters for the search method. The
> response to a request exceeding this limit will be a
> status code of 200 and an empty result in the format
> requested. This artificial limit is in place to ensure the
> performance of the search system. We also restrict the
> size of the search index by placing a date limit on the
> updates we allow you to search. This limit is currently
> around 1.5 weeks but is dynamic and subject to shrink as
> the number of tweets per day continues to grow.
>
> I do not get a 200 response, I get a 404 response.  I can not go back
> as far as I would like to.  Interestingly, the twitter website, as
> well as tweetie client can go back much farther with no issue.
>
> Thanks.
>


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Abraham Williams

There has been over 5200 profiles created. You could just start at
1 and count up. Might take you a while though.

Abraham

On Mon, Jun 29, 2009 at 07:55, Arunachalam wrote:
> Any idea how to implement the same using php / any other language.
> Im confused abt the implementation.
>
> Cheers,
> Arunachalam
>
>
> On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser 
> wrote:
>>
>> > I am looking to find the entire twitter user list ids.
>> >
>> > Social graph method provides the way to fetch the friends and followers
>> > id,
>> > thorough which we can access the profile of the person using user method
>> > -
>> > show. But this requires a code to be written to recursively crawl the
>> > list
>> > from any starting id and appending the followers and friends id of the
>> > person without duplicating.
>> >
>> > Do we have any other API to get entire list. If not, any other ways
>> > apart
>> > from crawling to get the entire list.
>>
>> No, and no, there are no other ways.
>>
>> --
>>  personal:
>> http://www.cameronkaiser.com/ --
>>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
>> ckai...@floodgap.com
>> -- Careful with that Axe, Eugene. -- Pink Floyd
>> ---
>
>



-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: source not working

2009-06-29 Thread DWRoelands

Max,

Some time ago, Twitter stopped accepting the "Source" argument from
applications using Basic Auth.  Any apps that had been using Basic
Auth before that point were "grandfathered" in.  Any apps created
after that point need to use OAuth for the "Source" to be accepted.

Which is why I'm wrestling with OAuth now. :)

On Jun 29, 8:10 am, Max K  wrote:
> So umm... how do I get something to work using basic auth?
>
> On Mon, Jun 29, 2009 at 7:42 AM, Abraham Williams <4bra...@gmail.com> wrote:
>
> > Sources from OAuth applications don't work when used through basic auth.
>
> > Abraham
>
> > On Mon, Jun 29, 2009 at 05:49, Max K wrote:
> > > well I'm using the command
> > >>curl -v -d "source=roflcopterlolmachine&status=test" -u username:password
> > >>http://twitter.com/statuses/update.xml
>
> > > and i have the name roflcopterlolmachine registered with twitter on
> > >http://twitter.com/oauth_clients.  i'm new to the twitter api and just
> > don't
> > > understand whats going on
>
> > > On Sun, Jun 28, 2009 at 11:36 PM, JDG  wrote:
>
> > >> Source only works with oauth, unless you had registered it before OAuth
> > >> was implemented. Are you using Basic auth?
>
> > >> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
>
> > >>> why is it that my source name doesn't work?  how long does it take for
> > >>> twitter to recognize an application... because if i use a name of an
> > >>> app that already exists [ex: max] it works, but if I do something like
> > >>> status=rdfglkdfjgklfdg
>
> > >>> it doesnt...
>
> > >>> why?
>
> > >> --
> > >> Internets. Serious business.
>
> > --
> > Abraham Williams | Community Evangelist |http://web608.org
> > Hacker |http://abrah.am|http://twitter.com/abraham
> > Project |http://fireeagle.labs.poseurtech.com
> > This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Arunachalam
Any idea how to implement the same using php / any other language.
Im confused abt the implementation.

Cheers,
Arunachalam


On Mon, Jun 29, 2009 at 5:57 PM, Cameron Kaiser wrote:

>
> > I am looking to find the entire twitter user list ids.
> >
> > Social graph method provides the way to fetch the friends and followers
> id,
> > thorough which we can access the profile of the person using user method
> -
> > show. But this requires a code to be written to recursively crawl the
> list
> > from any starting id and appending the followers and friends id of the
> > person without duplicating.
> >
> > Do we have any other API to get entire list. If not, any other ways apart
> > from crawling to get the entire list.
>
> No, and no, there are no other ways.
>
> --
>  personal:
> http://www.cameronkaiser.com/ --
>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
> ckai...@floodgap.com
> -- Careful with that Axe, Eugene. -- Pink Floyd
> ---
>


[twitter-dev] Re: Twitter User List

2009-06-29 Thread Cameron Kaiser

> I am looking to find the entire twitter user list ids.
> 
> Social graph method provides the way to fetch the friends and followers id,
> thorough which we can access the profile of the person using user method -
> show. But this requires a code to be written to recursively crawl the list
> from any starting id and appending the followers and friends id of the
> person without duplicating.
> 
> Do we have any other API to get entire list. If not, any other ways apart
> from crawling to get the entire list.

No, and no, there are no other ways.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Careful with that Axe, Eugene. -- Pink Floyd ---


[twitter-dev] Re: source not working

2009-06-29 Thread Max K
So umm... how do I get something to work using basic auth?

On Mon, Jun 29, 2009 at 7:42 AM, Abraham Williams <4bra...@gmail.com> wrote:

>
> Sources from OAuth applications don't work when used through basic auth.
>
> Abraham
>
> On Mon, Jun 29, 2009 at 05:49, Max K wrote:
> > well I'm using the command
> >>curl -v -d "source=roflcopterlolmachine&status=test" -u username:password
> >> http://twitter.com/statuses/update.xml
> >
> > and i have the name roflcopterlolmachine registered with twitter on
> > http://twitter.com/oauth_clients.  i'm new to the twitter api and just
> don't
> > understand whats going on
> >
> > On Sun, Jun 28, 2009 at 11:36 PM, JDG  wrote:
> >>
> >> Source only works with oauth, unless you had registered it before OAuth
> >> was implemented. Are you using Basic auth?
> >>
> >> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
> >>>
> >>> why is it that my source name doesn't work?  how long does it take for
> >>> twitter to recognize an application... because if i use a name of an
> >>> app that already exists [ex: max] it works, but if I do something like
> >>> status=rdfglkdfjgklfdg
> >>>
> >>> it doesnt...
> >>>
> >>> why?
> >>
> >>
> >>
> >> --
> >> Internets. Serious business.
> >
> >
>
>
>
> --
> Abraham Williams | Community Evangelist | http://web608.org
> Hacker | http://abrah.am | http://twitter.com/abraham
> Project | http://fireeagle.labs.poseurtech.com
> This email is: [ ] blogable [x] ask first [ ] private.
>


[twitter-dev] Re: How to list followers, including icons and usernames?

2009-06-29 Thread Aaron Rankin

It looks like status/followers gets you part of the way there. First,
some questions for Twitter:

1) Does status/followers return statuses for distinct users? E.g., if
one of my followers has changed their status twice in the past minute,
will this method return the latest or both?
2) For every follower, will this definitely return the last status for
each, even if they've been idle for some time?

Since this returns statuses in batches of 100, to get all data for all
followers, you'll still to run a query for every 100 (including the
remainder at the end). At least in the JSON, status/followers doesn't
tell you how many followers there are. To know the number of queries
(pages of 100) to fetch, you also need to query followers/ids. It's
clearly better than 1 query per follower + 1 call to follower/ids for
the main user in question.

Is this the best way to get information for each follower of a given
user?


Thanks,
Aaron

On Jun 28, 12:41 pm, Abraham Williams <4bra...@gmail.com> wrote:
> Check out this 
> method:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f...
>
>
>
> On Sun, Jun 28, 2009 at 12:26, Bemmu wrote:
>
> > I'm wanting to do a friend selector that looks something like the
> > selector on Facebook, where the user sees a list of their followers'
> > names and icons, and can select some of them. Right now the only way I
> > can think of is first getting all IDs of followers from "/followers/
> > ids", and then calling "/users/show.json?user_id=" for each. Seems
> > expensive and slow.
>
> > What's the right way to do this? I see some apps have follower
> > selectors, but I don't know if they screen scrape "http://twitter.com/
> > followers/1401881", or do as I just described and simply not work for
> > people with too many followers.
>
> > My dream API method would allow sorting by name or follower count,
> > something like this:
>
> > Query: "/followers/list.json?sort=follower_count&page=1&per_page=1000"
> > Response:
> > [
> >  { 'id' : 12345, 'icon' : 'http://...somethingjpg', 'username' :
> > 'a' },
> >  { 'id' : 67890, 'icon' : 'http://...somethingjpg', 'username' :
> > 'b' },
> >  ...
> > ]
>
> > Since many users will probably have thousands of followers, I thought
> > I could ease the
>
> --
> Abraham Williams | Community Evangelist |http://web608.org
> Hacker |http://abrah.am|http://twitter.com/abraham
> Project |http://fireeagle.labs.poseurtech.com
> This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Re: source not working

2009-06-29 Thread Abraham Williams

Sources from OAuth applications don't work when used through basic auth.

Abraham

On Mon, Jun 29, 2009 at 05:49, Max K wrote:
> well I'm using the command
>>curl -v -d "source=roflcopterlolmachine&status=test" -u username:password
>> http://twitter.com/statuses/update.xml
>
> and i have the name roflcopterlolmachine registered with twitter on
> http://twitter.com/oauth_clients.  i'm new to the twitter api and just don't
> understand whats going on
>
> On Sun, Jun 28, 2009 at 11:36 PM, JDG  wrote:
>>
>> Source only works with oauth, unless you had registered it before OAuth
>> was implemented. Are you using Basic auth?
>>
>> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
>>>
>>> why is it that my source name doesn't work?  how long does it take for
>>> twitter to recognize an application... because if i use a name of an
>>> app that already exists [ex: max] it works, but if I do something like
>>> status=rdfglkdfjgklfdg
>>>
>>> it doesnt...
>>>
>>> why?
>>
>>
>>
>> --
>> Internets. Serious business.
>
>



-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] PIN Authentication Examples?

2009-06-29 Thread DWRoelands

I'm having a devil of a time getting my application to connect to
Twitter via OAuth and the six-digit pin method.

I've been working with the excellent OAuth library from
ShannonWhitley:
http://www.voiceoftech.com/swhitley/?p=681

I'm able to get an authorization link, open a browser, and get the six-
digit PIN.  However, I can't seem to submit that PIN back to Twitter
without getting a 401 Unauthorized error.

I added this method to Shannon's TWitter OAuth code:

public bool ValidatePin(string PIN)
{
string response = WebRequest(Method.GET, string.Format
("{0}?oauth_verifier={1}", ACCESS_TOKEN, PIN), string.Empty);
if (response.Length > 0)
{
//Store the Token and Token Secret
var qs = HttpUtility.ParseQueryString(response);
if (!string.IsNullOrEmpty(qs["oauth_token"]))
this.Token = qs["oauth_token"];
if (!string.IsNullOrEmpty(qs["oauth_token_secret"]))
this.TokenSecret = qs["oauth_token_secret"];
return true;
}
else
{
return false;
}
}

Inevitably, I get 401 Unauthorized when submitting the
"oauth_verifier" web request.
I have a consumer key and a consumer key secret which work (as is
evidenced by the fact that I can get an authorization link).

Has anyone else encountered similar issues, or does anyone else have
any guidance on this particular issue?

Thanks in advance.
--Duane



[twitter-dev] API search, json results, 404 pages, and docs

2009-06-29 Thread talklists

http://search.twitter.com/search.json?page=4&max_id=2384515303&rpp=80&q=from%3Acometbus

I have hit page 4 on that request.
Here is the JSON I am getting back:
{
"results": [],
"since_id": 0,
"max_id": 2384515303,
"previous_page": "?page=3&max_id=2384515303&rpp=80&q=from
%3Acometbus",
"refresh_url": "?since_id=2384515303&q=from%3Acometbus",
"results_per_page": 80,
"total": 240,
"completed_in": 0.273265,
"page": 4,
"query": "from%3Acometbus"
}

This account has 1600 updates, so rpp(80)*4 = 320, which is much less
than 1600.  The above is also a 404 page.  I have read the docs which
tell me the below conflicting information.

http://apiwiki.twitter.com/Things-Every-Developer-Should-Know#6Therearepaginationlimits
 Search API Limit Clients may request up to 1,500 statuses
 via the page and rpp parameters for the search method. The
 response to a request exceeding this limit will be a
 status code of 200 and an empty result in the format
 requested. This artificial limit is in place to ensure the
 performance of the search system. We also restrict the
 size of the search index by placing a date limit on the
 updates we allow you to search. This limit is currently
 around 1.5 weeks but is dynamic and subject to shrink as
 the number of tweets per day continues to grow.

I do not get a 200 response, I get a 404 response.  I can not go back
as far as I would like to.  Interestingly, the twitter website, as
well as tweetie client can go back much farther with no issue.

Thanks.


[twitter-dev] Twitter User List

2009-06-29 Thread Arunachalam
Hi,

I am looking to find the entire twitter user list ids.

Social graph method provides the way to fetch the friends and followers id,
thorough which we can access the profile of the person using user method -
show. But this requires a code to be written to recursively crawl the list
from any starting id and appending the followers and friends id of the
person without duplicating.

Do we have any other API to get entire list. If not, any other ways apart
from crawling to get the entire list.


Cheers,
Arunachalam


[twitter-dev] Re: source not working

2009-06-29 Thread Max K
well I'm using the command
>curl -v -d "source=roflcopterlolmachine&status=test" -u username:password
http://twitter.com/statuses/update.xml

and i have the name roflcopterlolmachine registered with twitter on
http://twitter.com/oauth_clients.  i'm new to the twitter api and just don't
understand whats going on

On Sun, Jun 28, 2009 at 11:36 PM, JDG  wrote:

> Source only works with oauth, unless you had registered it before OAuth was
> implemented. Are you using Basic auth?
>
>
> On Sun, Jun 28, 2009 at 21:01, Max  wrote:
>
>>
>> why is it that my source name doesn't work?  how long does it take for
>> twitter to recognize an application... because if i use a name of an
>> app that already exists [ex: max] it works, but if I do something like
>> status=rdfglkdfjgklfdg
>>
>> it doesnt...
>>
>> why?
>>
>
>
>
> --
> Internets. Serious business.
>