[twitter-dev] My Oauth started failing 2 days ago...

2011-04-15 Thread m36tb6ll

Hi--

Were there any changes on the Oauth implementation/API? I have a web
app which is working properly for almost a couple of months already. 2
days ago, it's oauth started to fail. I did not make any modification
and found no changes in the impementation. Can anyone please help me
out? The site is:

http://bslplus.m36tb6ll.com

Thanks,

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Authentication issue

2011-04-15 Thread m36tb6ll

Hi Ashish --

I'm experiencing the same thing which started 2 days ago. I hope
someone can give us an idea on what's going on--


On Apr 16, 1:23 am, ap aashish.pa...@gmail.com wrote:
 Twitter API authentication throwing errors on all our sites. Any known
 issues that are not reflected on your API Status page?

 Thanks,
 -Ashish

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Authentication issue

2011-04-15 Thread m36tb6ll

Hi Taylor--

I'm not much of a programmer but if it would help, the problem is
occurring after hitting ALLOW.

I'm using Sachin Khosla  (@realin) TwitterAPI wrapper class -- it was
using twitter.com/oauth which was not a problem until 2 days ago. I
already changed it to api.twitter.com/oauth but the problem persists.

Thanks-


On Apr 16, 1:35 am, m36tb6ll raeste...@gmail.com wrote:
 Hi-

 same issue here... seems like the tokens are not matching..

 On Apr 16, 1:28 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:







  What kind of errors are you seeing? Do you have an example of the status
  code and body message? What specific endpoints throw the error?

  @episod http://twitter.com/episod - Taylor Singletary

  On Fri, Apr 15, 2011 at 10:23 AM, ap aashish.pa...@gmail.com wrote:
   Twitter API authentication throwing errors on all our sites. Any known
   issues that are not reflected on your API Status page?

   Thanks,
   -Ashish

   --
   Twitter developer documentation and resources:http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Authentication issue

2011-04-15 Thread m36tb6ll

Hi-

same issue here... seems like the tokens are not matching..


On Apr 16, 1:28 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 What kind of errors are you seeing? Do you have an example of the status
 code and body message? What specific endpoints throw the error?

 @episod http://twitter.com/episod - Taylor Singletary







 On Fri, Apr 15, 2011 at 10:23 AM, ap aashish.pa...@gmail.com wrote:
  Twitter API authentication throwing errors on all our sites. Any known
  issues that are not reflected on your API Status page?

  Thanks,
  -Ashish

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Repeated connection request

2011-04-15 Thread m36tb6ll

Did you save the access tokens of each user and use them whenever a
user log-in to your site/app? If not, then they will be asked to allow
the app everytime they login to your site.

Hope this helps...


On Apr 16, 3:07 am, Konstantin rasf...@gmail.com wrote:
 Hello!

 We are trying to implement the sign in with twitter button...we can
 successfully connect a twitter account and be redirected back to our
 site. But if a user comes back to our site who has already
 authorized our application and clicks the sign in with twitter button,
 they have to go through the allow our site access step again and
 reauthorize our application.

 Does anybody have any idea why this might be
 happening instead of what is described in step 3 
 onhttp://dev.twitter.com/pages/sign_in_with_twitter?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Is profile_image supposed to be rate limited?

2011-03-30 Thread m36tb6ll

As per the your hourly limit of 150, i will assume that you did not
auth. What are you trying to do specifically with this API? Read the
notes on the documentation. You might find something there. ;)


On Mar 30, 5:35 pm, Christian Fazzini christian.fazz...@gmail.com
wrote:
 I suspect that the following is rate limited:

 http://dev.twitter.com/doc/get/users/profile_image/:screen_name

 In the above link it says rate limited: false.

 My rate limit status says: hourly_limit=150 remaining_hits=0
 reset_time=Wed Mar 30 09:37:17 + 2011
 reset_time_in_seconds=1301477837

 My remaining_hits is 0. If the above API call is not rate limited, why
 is it returning a 400 code?

 The error message:
 Twitter::BadRequest: 
 GEThttps://api.twitter.com/1/users/profile_image/ChrisFazz.json:
 400: error

 Can someone explain why this is being rate limited? Is the API doc for
 this call outdated?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Proposed Additional Feature

2011-03-14 Thread m36tb6ll

Hi -- would anyone agree if the GET users/lookup and other related API
would include the followed_by in the response rather than making
additional calls to the API to determine the relationship of a user
with the authenticating user?

Just a thought -- or is it already there?

Thanks..

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Cancel Follow Request API

2011-03-10 Thread m36tb6ll

Hi -- I just read that there was already a request to add this in the
API but it seems that it was not implemented yet. Do we have an ETA
for it? Is there a workaround? All I can think of now it to direct
users to the twitter page of the protected account that they want to
cancel the follow request but I am hoping that there is a better way.

Thanks --

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Missing X-Ratelimits in the headers

2011-03-08 Thread m36tb6ll

Hi -- I can't seem to see the X-Ratelimits in the headers after an
authenticated call. Was it removed?

Thanks--

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Missing X-Ratelimits in the headers

2011-03-08 Thread m36tb6ll

Thanks for the reply, Taylor...

I'm quite new at this so I'll try to explain the best I could. I am
using Sachin Khosla's Twitter OAuth library and am using GET users/
lookup. After the page already have loaded, I checked the headers and
this is what I am seeing using Firebug:

Response Headers

DateTue, 08 Mar 2011 18:38:52 GMT
Content-Typetext/html
Connection  close
Server  Apache/2
X-Powered-ByPHP/5.2.17
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Pragma  no-cache
Content-Length  6013

Request Headers

Hostbslplus.m36tb6ll.com
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
1.9.2.14) Gecko/20110218 Firefox/3.6.14
Accept  */*
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  115
Connection  keep-alive
Referer
http://bslplus.m36tb6ll.com/scripts/indexCallback.php?oauth_token=IkZnC9Cq7MvlRpPnKjM8Lx8uQLuuOxz7aIO7pI0GeIoauth_verifier=fL5q1rapYVOCXDUxTli1JRI8YS8FYyXpXSKpXayu2v0
Cookie  PHPSESSID=3839f152da9eae907ff976f88dd45030;
__utma=45007288.931001284.1299609306.1299609306.1299609306.1;
__utmb=45007288.1.10.1299609306; __utmc=45007288;
__utmz=45007288.1299609306.1.1.utmcsr=(direct)|utmccn=(direct)|
utmcmd=(none)


Thanks in advance..


On Mar 9, 12:37 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Can you provide an example execution where they are missing?

 The twurl console app has a trace mode that also provides the headers of the
 response.https://github.com/marcel/twurl

 If you run a command like:

 twurl --trace /1/statuses/home_timeline.json?count=1 | grep x-ratelimit

 It will yield headers like these under normal operation:
 x-ratelimit-reset: 1299604011
 x-ratelimit-limit: 350
 x-ratelimit-class: api_identified
 x-ratelimit-remaining: 338

 Taylor

 @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer
 Advocate

 On Tue, Mar 8, 2011 at 7:25 AM, m36tb6ll raeste...@gmail.com wrote:

  Hi -- I can't seem to see the X-Ratelimits in the headers after an
  authenticated call. Was it removed?

  Thanks--

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Protected accounts being listed twice in followers/ids and friends/ids

2011-03-08 Thread m36tb6ll

Hi -- I ran into a scenario where as protected accounts were being
listed twice using GET followers/ids and friends/ids. I have run this
many times and verified that the duplicates are only happening to
protected accounts.

Any advise on this?

Thanks --

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Where can I find the updated rate limit after OAuth?

2010-11-30 Thread m36tb6ll

This is awesome... Thank you..

Will start playing with your suggestion.

Best,
Randolph


On Nov 30, 2:59 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 statuses/followers and statuses/friends don't require authentication and are
 likely subject to this condition. When calling these resources, are you
 explicitly providing the user_id or screen_name?

 These methods are some of the oldest offered in the API and aren't really
 the best choices for consuming data of that nature. You would be better
 positioned to use friends/ids and followers/ids in conjunction with
 users/lookup

 Taylor

 On Mon, Nov 29, 2010 at 10:54 AM, m36tb6ll raeste...@gmail.com wrote:

  Thanks for the reply, Taylor...

  Are the API requests statuses/followers and statuses/friends
  included in the public-only resources that you are referring to? Or,
  I'm I not making any sense? :)

  Randolph

  On Nov 30, 2:19 am, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
   There are some API methods that don't have the concept of an
  unauthenticated
   user -- these public-only resources will not consider OAuth credentials
   when calculating the rate limit. We are looking to make the application
  of
   rate limiting across resources, regardless of whether the resource
  expects
   auth or not, consistent in the future.

   Taylor

   On Mon, Nov 29, 2010 at 10:05 AM, Randolph Estebat raeste...@gmail.com
  wrote:

Thanks for the reply, Igor...

Yes it should be. The problem is that the headers are giving me the
  limit
150 rather than the expected 350 after OAuth.

Any ideas why this is the case?

Thanks again.

On Mon, Nov 29, 2010 at 8:17 PM, Igor Kharin igorkha...@gmail.com
  wrote:

All rate limited methods responses include X-Ratelimit-Remaining and
X-Ratelimit-Limit HTTP-headers, use them or
   http://dev.twitter.com/doc/get/account/rate_limit_status

On Fri, Nov 26, 2010 at 1:55 PM, m36tb6ll raeste...@gmail.com
  wrote:

 Hi! I am a newbie in the field and am working on my first twitter
  web
 app. I have created a variable loop timer using rate_limit_status
 which works well in maximizing the usage of the twitter API without
 going over the hourly limits.

 Now that I have incorporated OAuth, I was expecting to see the limit
 increase from 150 (unauthenticated requests) to 350 (authenticated
 requests). But, I am still seeing the 150 limit both in the response
 headers and Firebug when calling rate_limit_status API after OAuth.

 Is there something I'm missing here?

 Your help would be greatly appreciated. Thanks in advance...

 --
 Twitter developer documentation and resources:
   http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
   http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
   http://groups.google.com/group/twitter-development-talk

--
Twitter developer documentation and resources:
 http://dev.twitter.com/doc
API updates via Twitter:http://twitter.com/twitterapi
Issues/Enhancements Tracker:
   http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
   http://groups.google.com/group/twitter-development-talk

--
Randolph Estebat

--
Twitter developer documentation and resources:
 http://dev.twitter.com/doc
API updates via Twitter:http://twitter.com/twitterapi
Issues/Enhancements Tracker:
   http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
   http://groups.google.com/group/twitter-development-talk

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk



-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Where can I find the updated rate limit after OAuth?

2010-11-29 Thread m36tb6ll

Thanks for the reply, Taylor...

Are the API requests statuses/followers and statuses/friends
included in the public-only resources that you are referring to? Or,
I'm I not making any sense? :)

Randolph


On Nov 30, 2:19 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 There are some API methods that don't have the concept of an unauthenticated
 user -- these public-only resources will not consider OAuth credentials
 when calculating the rate limit. We are looking to make the application of
 rate limiting across resources, regardless of whether the resource expects
 auth or not, consistent in the future.

 Taylor

 On Mon, Nov 29, 2010 at 10:05 AM, Randolph Estebat raeste...@gmail.comwrote:



  Thanks for the reply, Igor...

  Yes it should be. The problem is that the headers are giving me the limit
  150 rather than the expected 350 after OAuth.

  Any ideas why this is the case?

  Thanks again.

  On Mon, Nov 29, 2010 at 8:17 PM, Igor Kharin igorkha...@gmail.com wrote:

  All rate limited methods responses include X-Ratelimit-Remaining and
  X-Ratelimit-Limit HTTP-headers, use them or
 http://dev.twitter.com/doc/get/account/rate_limit_status

  On Fri, Nov 26, 2010 at 1:55 PM, m36tb6ll raeste...@gmail.com wrote:

   Hi! I am a newbie in the field and am working on my first twitter web
   app. I have created a variable loop timer using rate_limit_status
   which works well in maximizing the usage of the twitter API without
   going over the hourly limits.

   Now that I have incorporated OAuth, I was expecting to see the limit
   increase from 150 (unauthenticated requests) to 350 (authenticated
   requests). But, I am still seeing the 150 limit both in the response
   headers and Firebug when calling rate_limit_status API after OAuth.

   Is there something I'm missing here?

   Your help would be greatly appreciated. Thanks in advance...

   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

  --
  Randolph Estebat

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Where can I find the updated rate limit after OAuth?

2010-11-27 Thread m36tb6ll

Yes.. I was expecting 350 oauthenticated calls per hour but was not
able to find it after OAuth. It is still giving me the 150 rate limit.

Thanks.


On Nov 27, 5:06 am, Edward Hotchkiss edw...@edwardhotchkiss.com
wrote:
 it's 150 requests for flat file data per hour and 350 oauthenticated calls 
 per hour ... unless you use a proxy. :P

 On Nov 26, 2010, at 2:55 AM, m36tb6ll wrote:





  Hi! I am a newbie in the field and am working on my first twitter web
  app. I have created a variable loop timer using rate_limit_status
  which works well in maximizing the usage of the twitter API without
  going over the hourly limits.

  Now that I have incorporated OAuth, I was expecting to see the limit
  increase from 150 (unauthenticated requests) to 350 (authenticated
  requests). But, I am still seeing the 150 limit both in the response
  headers and Firebug when calling rate_limit_status API after OAuth.

  Is there something I'm missing here?

  Your help would be greatly appreciated. Thanks in advance...

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk

 Regards,

 
 Edward Hotchkiss
 edw...@edwardhotchkiss.comhttp://www.edwardhotchkiss.com/
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: How to fetch all followers of a random user of twitter?

2010-11-27 Thread m36tb6ll

Correct me if I'm wrong, using ids/followers will only give me the IDs
and you would need to to fetch the other information for each of the
IDs one by one. Meaning, you would need to make 5001 api requests to
fetch information for 5000 followers/friends (such as # of following,
# of followers, # of tweets, and many more). Unlike to the method I
have noted above, you would only need to do 50 api requests to fetch
information on 5000 followers/friends.

If there is a way I'm missing with regards to the use of the IDs, I'm
all ears.

Thanks!


On Nov 27, 5:08 am, Edward Hotchkiss edw...@edwardhotchkiss.com
wrote:
 dude just use oauth, 5000 per call ids/followers is the method. look it up.

 On Nov 26, 2010, at 3:04 AM,m36tb6llwrote:





  Hi. If it would help. I just created a web app using
 http://api.twitter.com/1/statuses/followers.jsonand made a loop using
  a variable delay time 
  usinghttp://api.twitter.com/1/account/rate_limit_status.json
  so as to avoid going over the limits. It allowed me to fetch
  approximately 15000 (100 per call) in 1 hour using unauthenticated
  requests.

  ;)

  On Nov 24, 2:29 am, Edward Hotchkiss edw...@edwardhotchkiss.com
  wrote:
  just make sure to check for next_cursor_str to grab the next page if the 
  user has more than 5000. note that next_cursor_str does not ever return 
  null
  On Nov 23, 2010, at 1:17 PM, Matt Harris wrote:

  You can get the list of all followers using the API request:
     https://api.twitter.com/1/followers/ids.json?cursor=-1

  That request will return up to 5000 follower IDs in one request. You can 
  then look up details of those users using the /1/users/lookup method.

  More information on these methods is available here:
     http://dev.twitter.com/doc/get/followers/ids
  and
     http://dev.twitter.com/doc/get/users/lookup

  Best
  @themattharris
  Developer Advocate, Twitter
 http://twitter.com/themattharris

  On Tue, Nov 23, 2010 at 5:11 AM, jaojao wuwei.yuan...@gmail.com wrote:
  Hi,
  I have written a php to fetch followers of a given username of twitter
  by using twitter API.
  But the result is limited by the number of followers.
  For example, there are only 100 followers of BBCWorld listed in
  result, instead of 367,480.

  What is the solution to overcome this limitation?

  my code:
  ?php
  $username=BBCWorld; //input user name of twitter
  $follower_url = http://api.twitter.com/1/statuses/followers/;.
  $username..xml;

  $twFriends = curl_init();
  curl_setopt($twFriends, CURLOPT_URL, $follower_url);
  curl_setopt($twFriends, CURLOPT_RETURNTRANSFER, TRUE);
  $twiFriends = curl_exec($twFriends);
  $response = new SimpleXMLElement($twiFriends);

  foreach($response-user as $friends){
  $thumb = $friends-profile_image_url;
  $url = $friends-screen_name;
  $name = $friends-name;
  ?
  a title=?php echo $name;? href=http://www.twitter.com/?php echo
  $url;?img class=photo-img src=?php echo $thumb? border=0
  alt= width=40 //a
  ?php
  }
  ?

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements 
  Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements 
  Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk

  Regards,

  
  Edward Hotchkiss
  edw...@edwardhotchkiss.comhttp://www.edwardhotchkiss.com/
  

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk

 Regards,

 
 Edward Hotchkiss
 edw...@edwardhotchkiss.comhttp://www.edwardhotchkiss.com/
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Where can I find the updated rate limit after OAuth?

2010-11-26 Thread m36tb6ll

Hi! I am a newbie in the field and am working on my first twitter web
app. I have created a variable loop timer using rate_limit_status
which works well in maximizing the usage of the twitter API without
going over the hourly limits.

Now that I have incorporated OAuth, I was expecting to see the limit
increase from 150 (unauthenticated requests) to 350 (authenticated
requests). But, I am still seeing the 150 limit both in the response
headers and Firebug when calling rate_limit_status API after OAuth.

Is there something I'm missing here?

Your help would be greatly appreciated. Thanks in advance...

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: How to fetch all followers of a random user of twitter?

2010-11-26 Thread m36tb6ll

Hi. If it would help. I just created a web app using
http://api.twitter.com/1/statuses/followers.json and made a loop using
a variable delay time using 
http://api.twitter.com/1/account/rate_limit_status.json
so as to avoid going over the limits. It allowed me to fetch
approximately 15000 (100 per call) in 1 hour using unauthenticated
requests.

;)


On Nov 24, 2:29 am, Edward Hotchkiss edw...@edwardhotchkiss.com
wrote:
 just make sure to check for next_cursor_str to grab the next page if the user 
 has more than 5000. note that next_cursor_str does not ever return null
 On Nov 23, 2010, at 1:17 PM, Matt Harris wrote:



  You can get the list of all followers using the API request:
     https://api.twitter.com/1/followers/ids.json?cursor=-1

  That request will return up to 5000 follower IDs in one request. You can 
  then look up details of those users using the /1/users/lookup method.

  More information on these methods is available here:
     http://dev.twitter.com/doc/get/followers/ids
  and
     http://dev.twitter.com/doc/get/users/lookup

  Best
  @themattharris
  Developer Advocate, Twitter
 http://twitter.com/themattharris

  On Tue, Nov 23, 2010 at 5:11 AM, jaojao wuwei.yuan...@gmail.com wrote:
  Hi,
  I have written a php to fetch followers of a given username of twitter
  by using twitter API.
  But the result is limited by the number of followers.
  For example, there are only 100 followers of BBCWorld listed in
  result, instead of 367,480.

  What is the solution to overcome this limitation?

  my code:
  ?php
  $username=BBCWorld; //input user name of twitter
  $follower_url = http://api.twitter.com/1/statuses/followers/;.
  $username..xml;

  $twFriends = curl_init();
  curl_setopt($twFriends, CURLOPT_URL, $follower_url);
  curl_setopt($twFriends, CURLOPT_RETURNTRANSFER, TRUE);
  $twiFriends = curl_exec($twFriends);
  $response = new SimpleXMLElement($twiFriends);

  foreach($response-user as $friends){
  $thumb = $friends-profile_image_url;
  $url = $friends-screen_name;
  $name = $friends-name;
  ?
  a title=?php echo $name;? href=http://www.twitter.com/?php echo
  $url;?img class=photo-img src=?php echo $thumb? border=0
  alt= width=40 //a
  ?php
  }
  ?

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk

 Regards,

 
 Edward Hotchkiss
 edw...@edwardhotchkiss.comhttp://www.edwardhotchkiss.com/
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk