Re: [twitter-dev] Re: Streaming API Client DNS TTL issue

2009-12-30 Thread Rushikesh Bhanage
  Dear Sir,

 I need followers count, I get it exactly if it is below 100, but if it
is above 100, getting count as 100 only, instead of exact figure, what
should I do?

Thanking You already.


Rushikesh


[twitter-dev] help in getting list.

2010-01-03 Thread Rushikesh Bhanage
  Dear Sir,
  i am using twitter api, when i  display user's following list. list is
getting displayed for 100 people only, actually user is having
 2000 following. i want all 2000 following of user to be displayed . how can
i do that?  can anybody help me on this?

Thanking u in advance.
wish u happy new year.


Rushikesh.


[twitter-dev] about calls automatically reduction.

2010-01-19 Thread Rushikesh Bhanage
Hello Sir,
   I am facing problem regarding calls to twitter api. Sometimes it happens
that calls start reducing one by one , though none of the program is
running. it takes calls for update or what?

   Can anybody help me  please?

Thank you in advance.

with regards
Rushikesh.


[twitter-dev] Dealing with api calls using two ip's

2010-02-04 Thread Rushikesh Bhanage
Hi,
  my problem is that i have 2 whitelisted ip's , in my application, when
a user ends up with the calls to api on one ip, instead of giving error
message in this case, i want 2nd ip to be used immediately. what code should
i write. can anybody help me on this?

 Thank you in advance.


from
Rushikesh.


[twitter-dev] Using multiple whitelisted IP's to fetch data of a single user without break

2010-02-11 Thread Rushikesh Bhanage
Hi,

We are building a twitter application which fetches lot of follower data of
particular user. Some users consume around 80,000 calls to complete the
task. So how can we use 4-5 whitelisted ip's to perform single task without
break. Is this possible? If so, how?
Eagerly looking for help from your side.

Thank you.
Rushikesh!


[twitter-dev] about image-size in newtwitter

2010-10-01 Thread Rushikesh Bhanage
Hi there,

 I got the new look of new twitter, and liked it a lot.

 The profile-image size in newtwitter has been increased from
previous(48*48). When I increase the profile image size of the user(the
image i get from api right now), it looks unclear, blur type. I just need to
know that, will I get a big image from twitter API, once new twitter will
come in service completely? or can I do it from my side?


Thank you 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] just to know that, why I am not getting data for big user ?

2010-10-06 Thread Rushikesh Bhanage
Hi there,

   I just need to know that is there any problem in getting data from API?

   I am using rest API to get data from API, mainly accessing user's
followers data. I have been able to search a user having 1L followers on my
site but from last 2 - 3 days, I am not able to search user having 30k
followers, neither get any error nor result.

So just need to ask that is this from twitter side?  because this is also
happening when I run a code snippet in separate file.

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


Re: [twitter-dev] just to know that, why I am not getting data for big user ?

2010-10-06 Thread Rushikesh Bhanage
Hi,

 Thank you for your instant reply.

a.  Using following API methods:

   1.  http://api.twitter.com/1/account/rate_limit_status.json
   2.
http://api.twitter.com/1/statuses/followers.json?screen_name='.$unm.'&
cursor='.$cursorID;
   3. http://api.twitter.com/1/users/show.json?screen_name='.$unm;

 b. Below is the link that I am using for testing with user :
'ashabhosle'
 http://www.honestfollowers.com/test5.php

 c. As I was getting 500 error from twitter api server before so using
below logic for getting followers without error: (had discussion about this
with you before.):
 public function followerscid ($unm, $cursorID)
{

$url = $this->UrlStatus;

$url .= 'followers.json?screen_name='.$unm.'&cursor='.$cursorID;
$statuses = $this->myUserParse($url, 'followers');
if(empty($statuses))
{
sleep(2);
$statuses = $this->followerscid($unm, $cursorID);
if(empty($statuses))
{sleep(8);
$statuses = $this->followerscid($unm, $cursorID);
}
}
return $statuses;

}

PS: This is the snippet.
   I am going to use ID method for getting followers very soon for big
users.

  Thank you in advance.

On Wed, Oct 6, 2010 at 7:52 PM, Taylor Singletary <
taylorsinglet...@twitter.com> wrote:

> What are the specific API methods that you are calling? Can you share the
> specific user? When you say "neither get any error nor result" do you mean
> the HTTP response is completely empty or that within whatever
> library/implementation you are using the calls do not yield results nor
> exceptions?
>
> Taylor
>
> On Wed, Oct 6, 2010 at 7:12 AM, Rushikesh Bhanage 
> wrote:
>
>> Hi there,
>>
>>I just need to know that is there any problem in getting data from API?
>>
>>
>>I am using rest API to get data from API, mainly accessing user's
>> followers data. I have been able to search a user having 1L followers on my
>> site but from last 2 - 3 days, I am not able to search user having 30k
>> followers, neither get any error nor result.
>>
>> So just need to ask that is this from twitter side?  because this is also
>> happening when I run a code snippet in separate file.
>>
>> Thank you 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
>

-- 
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] how can i save user's data at the time of Oauth?

2010-02-27 Thread Rushikesh Bhanage
Hi,

My app uses Oauth.When user does Oauth I need to save user's data at least
user-name in database. how can i do it.

  Can anybody help me out here?


Thank You in advance.

From
Rushikesh.


Re: [twitter-dev] Re: Using multiple whitelisted IP's to fetch data of a single user without break

2010-03-02 Thread Rushikesh Bhanage
Hey Leo,

I am still finding solution, please let me know if you get this.

Thanks!

On Tue, Mar 2, 2010 at 5:35 AM, LeoAlmighty  wrote:

> I think you need to setup a proxy server and toggle the outgoing API
> calls across the multiple IPs. I'm trying to do the same thing right
> now but haven't figured out the specifics yet.
> If anyone has done this, would appreciate instructions.
>
> On Feb 11, 7:07 am, Rushikesh Bhanage  wrote:
> > Hi,
> >
> > We are building a twitter application which fetches lot of follower data
> of
> > particular user. Some users consume around 80,000 calls to complete the
> > task. So how can we use 4-5 whitelisted ip's to perform single task
> without
> > break. Is this possible? If so, how?
> > Eagerly looking for help from your side.
> >
> > Thank you.
> > Rushikesh!
>


[twitter-dev] Facing problem with rate-limit.

2010-03-09 Thread Rushikesh Bhanage
Hi ,

We are building a twitter application which needs to collect all the
followers of the user to show him results. Now when we looked at following
user's:

user Followers
ev -  1,172,553
aplusk -4,627,964
Kim Kardashian -  3,144,680

 such users through our application it turns out 20,000 calls per
white-listed IP without breaking operation, are not sufficient to collect
all the followers of these users. Because every cursor id gives only 100
follower's data which means 20,000 calls are not sufficient for some users
with extensive followers.

Eagerly looking for solution,
Thank you.

Regards,
Rushikesh.


Re: [twitter-dev] Facing problem with rate-limit.

2010-03-10 Thread Rushikesh Bhanage
Hi,

Thank you for the reply. I understand what you are saying, but is it
possible to get more than one user account whitelisted? When I looked at the
whitelisting form, it suggests to add IPs and not user accounts.

Let me know please,
Thank you.

On Tue, Mar 9, 2010 at 10:19 PM, Abraham Williams <4bra...@gmail.com> wrote:

> If you make the requests authenticated as your users each one will have 20k
> hits per hour.
>
> "Each whitelisted entity, whether an account or IP address, is allowed
> 2 requests per hour. This means that two authenticated users using the
> same IP address would each get 2 requests per hour." -
> http://apiwiki.twitter.com/Rate-limiting
>
> Depending on your application you can cache all the user objects and then
> use the Social Graph APIs to find missing profiles.
>
> Abraham
>
> On Tue, Mar 9, 2010 at 02:37, Rushikesh Bhanage wrote:
>
>> Hi ,
>>
>> We are building a twitter application which needs to collect all the
>> followers of the user to show him results. Now when we looked at following
>> user's:
>>
>> user Followers
>> ev -  1,172,553
>> aplusk -4,627,964
>> Kim Kardashian -  3,144,680
>>
>>  such users through our application it turns out 20,000 calls per
>> white-listed IP without breaking operation, are not sufficient to collect
>> all the followers of these users. Because every cursor id gives only 100
>> follower's data which means 20,000 calls are not sufficient for some users
>> with extensive followers.
>>
>> Eagerly looking for solution,
>> Thank you.
>>
>> Regards,
>> Rushikesh.
>>
>>
>
>
> --
> Abraham Williams | Community Advocate | http://abrah.am
> TwitterOAuth | http://github.com/abraham/twitteroauth
> This email is: [ ] shareable [x] ask first [ ] private.
>


[twitter-dev] getting authenticated user's rate-limit-using rest API.

2010-03-21 Thread Rushikesh Bhanage
Hi, there,
 I am using rest api method in my app, in that, I have two users(i.e
white-listed user accounts.) and need to get each user's account rate-limit
request balance, I am using following URL to get request balance.

' http://twitter.com/account/rate_limit_status/'.$unm.'.xml '. Here $unm is
user name passed through ratelimit() function .

 Below is the code logic: (using cURL functions )

[ function Checklimit()
{
for($i=0; $i<2; $i++)
{
$usrlimit =
$this->ratelimit($this->u[$i]);  // ratelimit($unm)
function will give array containing remaining hits.
foreach($usrlimit as $key=>$val)
   // $this->u[]  is the array used for fetching users with $i.
{
if($key == 'remaining-hits')
{
if($val != 0)

{// here
will return array element which is having hits.
   return
$i; // here it doesn't
come inside when value of ratelimit of first user comes to an end
 }

}
}
  // Actually here it goes to second user but does not get it's hits
from api using ratelimit function. gets same 0 as like first user. It will
return -1 when no user is having hits.
}
return -1;
}

]

Can I have some clue, please.

Thank You in advance.

with regards,
rishibhanage.

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words "REMOVE ME" as the subject.


Re: [twitter-dev] getting authenticated user's rate-limit-using rest API.

2010-03-22 Thread Rushikesh Bhanage
Hi,
(Note: In my app, single white listed useraccount's requests are not
sufficient to complete particular task, so i need to switch from one account
to another without breaking operation, if previous A/C's hits got over. )
   In my case both the users are authenticated. Now problem is that how to
switch from one user to another, when  next user comes, he should come up
with it's hits for the operations, when previous user's hits got over. In
such situation how can i use rate_limit_status method.

Thank you in advance,

rishibhanage

On Mon, Mar 22, 2010 at 1:19 AM, Chris Thomson  wrote:

> The rate_limit_status method does not take a username as a parameter. All
> account methods act on the authenticating user's account (or in the case of
> an unauthenticated call, the requesting IP address). In order to get each
> other's rate limit information, you'll need to have both the user's
> authenticated as themselves.
>
> --
> Chris Thomson
>
> On Mar 21, 2010, at 8:01 AM, Rushikesh Bhanage wrote:
>
> Hi, there,
>  I am using rest api method in my app, in that, I have two users(i.e
> white-listed user accounts.) and need to get each user's account rate-limit
> request balance, I am using following URL to get request balance.
>
> ' 
> http://twitter.com/account/rate_limit_status/'.$unm.'.xml<http://twitter.com/account/rate_limit_status/%27.$unm.%27.xml>'.
>  Here $unm is user name passed through ratelimit() function .
>
>  Below is the code logic: (using cURL functions )
>
> [ function Checklimit()
> {
> for($i=0; $i<2; $i++)
> {
> $usrlimit =
> $this->ratelimit($this->u[$i]);  // ratelimit($unm)
> function will give array containing remaining hits.
> foreach($usrlimit as $key=>$val)
>  // $this->u[]  is the array used for fetching users with $i.
> {
> if($key == 'remaining-hits')
> {
> if($val != 0)
>
> {// here
> will return array element which is having hits.
>return
> $i; // here it doesn't
> come inside when value of ratelimit of first user comes to an end
>  }
>
> }
> }
>   // Actually here it goes to second user but does not get it's
> hits from api using ratelimit function. gets same 0 as like first user. It
> will return -1 when no user is having hits.
> }
> return -1;
> }
>
> ]
>
> Can I have some clue, please.
>
> Thank You in advance.
>
> with regards,
> rishibhanage.
>
>
>
>
> To unsubscribe from this group, send email to twitter-development-talk+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>
>
>  To unsubscribe from this group, send email to twitter-development-talk+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words "REMOVE ME" as the subject.


Re: [twitter-dev] getting authenticated user's rate-limit-using rest API.

2010-03-23 Thread Rushikesh Bhanage
Hi there,
  Yes I got your point Sir and that's the problem automatic switching of
user does not take place. Yes authentication is essential, but can I do that
using rate_limit_status method(passing user name and password to method) for
these two users or OAuth is the option, but it's not possible in this
case(have already implemented OAuth in app), because this is going to be
automatically. Above two user names will be white listed A/C's(that I am
going to do as this problem will get solved on current requests).  I read
Twitter api documentation, in that I got clue to pass unm and pwd  using
cURL ( have used it) like this->

curl -u user:password
http://api.twitter.com/1/account/rate_limit_status.xml<http://twitter.com/account/rate_limit_status.xml>
  is this possible?

Thank you in advance sir.

-- Rishi.


On Mon, Mar 22, 2010 at 10:32 PM, Mark McBride  wrote:

> Authenticate as the second user.
>
>   ---Mark
>
> http://twitter.com/mccv
>
>
>
> On Sun, Mar 21, 2010 at 11:55 PM, Rushikesh Bhanage <
> rishibhan...@gmail.com> wrote:
>
>> Hi,
>> (Note: In my app, single white listed useraccount's requests are not
>> sufficient to complete particular task, so i need to switch from one account
>> to another without breaking operation, if previous A/C's hits got over. )
>>In my case both the users are authenticated. Now problem is that how to
>> switch from one user to another, when  next user comes, he should come up
>> with it's hits for the operations, when previous user's hits got over. In
>> such situation how can i use rate_limit_status method.
>>
>> Thank you in advance,
>>
>> rishibhanage
>>
>> On Mon, Mar 22, 2010 at 1:19 AM, Chris Thomson wrote:
>>
>>> The rate_limit_status method does not take a username as a parameter. All
>>> account methods act on the authenticating user's account (or in the case of
>>> an unauthenticated call, the requesting IP address). In order to get each
>>> other's rate limit information, you'll need to have both the user's
>>> authenticated as themselves.
>>>
>>>  --
>>> Chris Thomson
>>>
>>> On Mar 21, 2010, at 8:01 AM, Rushikesh Bhanage wrote:
>>>
>>> Hi, there,
>>>  I am using rest api method in my app, in that, I have two users(i.e
>>> white-listed user accounts.) and need to get each user's account rate-limit
>>> request balance, I am using following URL to get request balance.
>>>
>>> ' 
>>> http://twitter.com/account/rate_limit_status/'.$unm.'.xml<http://twitter.com/account/rate_limit_status/%27.$unm.%27.xml>'.
>>>  Here $unm is user name passed through ratelimit() function .
>>>
>>>  Below is the code logic: (using cURL functions )
>>>
>>> [ function Checklimit()
>>> {
>>> for($i=0; $i<2; $i++)
>>> {
>>> $usrlimit =
>>> $this->ratelimit($this->u[$i]);  // ratelimit($unm)
>>> function will give array containing remaining hits.
>>> foreach($usrlimit as $key=>$val)
>>>// $this->u[]  is the array used for fetching users with $i.
>>> {
>>> if($key == 'remaining-hits')
>>> {
>>> if($val != 0)
>>>
>>> {// here
>>> will return array element which is having hits.
>>>return
>>> $i; // here it doesn't
>>> come inside when value of ratelimit of first user comes to an end
>>>  }
>>>
>>> }
>>> }
>>>   // Actually here it goes to second user but does not get it's
>>> hits from api using ratelimit function. gets same 0 as like first user. It
>>> will return -1 when no user is having hits.
>>> }
>>> return -1;
>>> }
>>>
>>> ]
>>>
>>> Can I have some clue, please.
>>>
>>> Thank You in advance.
>>>
>>> with regards,
>>> rishibhanage.
>>>
>>>
>>>
>>>
>>>  To unsubscribe from this group, send email to twitter-development-talk+
>>> unsubscribegooglegroups.com or reply to this email with the words
>>> "REMOVE ME" as the subject.
>>>
>>>
>>>  To unsubscribe from this group, send email to twitter-development-talk+
>>> unsubscribegooglegroups.com or reply to this email with the words
>>> "REMOVE ME" as the subject.
>>>
>>
>>  To unsubscribe from this group, send email to twitter-development-talk+
>> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
>> ME" as the subject.
>>
>
>  To unsubscribe from this group, send email to twitter-development-talk+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words "REMOVE ME" as the subject.


Re: [twitter-dev] Re: getting authenticated user's rate-limit-using rest API.

2010-03-23 Thread Rushikesh Bhanage
Hi there,
   Thank you for your valuable guidance sir, Now I just have last two
questions:

   1. How to get particular authorised user's hits,  what is the url to
to get remaining hits for that user..

   2. Suppose I am having authorised a/c(which has 2 hits), then
how to call any method (any like userstatus or show/1/status) with my
account.


Thank you in advance.

On Tue, Mar 23, 2010 at 8:25 PM, Taylor Singletary <
taylorsinglet...@twitter.com> wrote:

> Using multiple accounts to get around rate limiting is not really in the
> spirit of the Twitter API and I recommend you banish the idea from your
> mind.
>
> Taylor Singletary
> Developer Advocate, Twitter
> http://twitter.com/episod
>
>
>
> On Tue, Mar 23, 2010 at 7:03 AM, natefanaro  wrote:
>
>> There is no way that Twitter's api is going to let you swap between
>> two users (ie: here are two usernames that can auth, swap to the other
>> when one runs out of hits)
>>
>> You will have to check the authenticating user's rate limit before
>> each request. When that account hits 0, authenticate with the second
>> user, check it's rate limit, if it's greater than 0 continue with the
>> request.
>>
>> If you code your app this way your request won't be interrupted. But
>> instead of going through hoops like this could you explain what you're
>> doing that requires over 20,000 requests per hour? I can't speak for
>> Twitter but I would guess that using multiple accounts to get around
>> rate limits is frowned upon. There may be an easier way to achieve
>> what you're doing (streaming/higher access levels/etc)
>>
>> On Mar 23, 7:02 am, Rushikesh Bhanage  wrote:
>> > Hi there,
>> >   Yes I got your point Sir and that's the problem automatic
>> switching of
>> > user does not take place. Yes authentication is essential, but can I do
>> that
>> > using rate_limit_status method(passing user name and password to method)
>> for
>> > these two users or OAuth is the option, but it's not possible in this
>> > case(have already implemented OAuth in app), because this is going to be
>> > automatically. Above two user names will be white listed A/C's(that I am
>> > going to do as this problem will get solved on current requests).  I
>> read
>> > Twitter api documentation, in that I got clue to pass unm and pwd  using
>> > cURL ( have used it) like this->
>> >
>> > curl -u user:passwordhttp://
>> api.twitter.com/1/account/rate_limit_status.xml<
>> http://twitter.com/account/rate_limit_status.xml>
>> >   is this possible?
>> >
>> > Thank you in advance sir.
>> >
>> > -- Rishi.
>> >
>> > On Mon, Mar 22, 2010 at 10:32 PM, Mark McBride 
>> wrote:
>> > > Authenticate as the second user.
>> >
>> > >   ---Mark
>> >
>> > >http://twitter.com/mccv
>> >
>> > > On Sun, Mar 21, 2010 at 11:55 PM, Rushikesh Bhanage <
>> > > rishibhan...@gmail.com> wrote:
>> >
>> > >> Hi,
>> > >> (Note: In my app, single white listed useraccount's requests are
>> not
>> > >> sufficient to complete particular task, so i need to switch from one
>> account
>> > >> to another without breaking operation, if previous A/C's hits got
>> over. )
>> > >>In my case both the users are authenticated. Now problem is that
>> how to
>> > >> switch from one user to another, when  next user comes, he should
>> come up
>> > >> with it's hits for the operations, when previous user's hits got
>> over. In
>> > >> such situation how can i use rate_limit_status method.
>> >
>> > >> Thank you in advance,
>> >
>> > >> rishibhanage
>> >
>> > >> On Mon, Mar 22, 2010 at 1:19 AM, Chris Thomson > >wrote:
>> >
>> > >>> The rate_limit_status method does not take a username as a
>> parameter. All
>> > >>> account methods act on the authenticating user's account (or in the
>> case of
>> > >>> an unauthenticated call, the requesting IP address). In order to get
>> each
>> > >>> other's rate limit information, you'll need to have both the user's
>> > >>> authenticated as themselves.
>> >
>> > >>>  --
>> > >>> Chris Thomson
>> >
>

[twitter-dev] Rate limit status with authentication credentials for authenticated user account.

2010-04-29 Thread Rushikesh Bhanage
Hi there,

   We are developing an app in which we need little of your help. may I know
how to get rate-limit status if we provide authentication credentials of an
authenticated user. is it possible if we provide user name and password
manually through code instead of twitter OAuth. If it is, how can we do
that?



waiting for reply eagerly,
Thank you very much in advance.


Re: [twitter-dev] Rate limit status with authentication credentials for authenticated user account.

2010-04-30 Thread Rushikesh Bhanage
   Yes Mr. Williams I should not use this method if it is so, then what
is the way out to deal with my problem. OK I will go with OAuth but I don't
understand how to implement it in my app. Because in my code, I am using
this url to get remaining hits "
http://twitter.com/account/rate_limit_status.xml";. What I want is , I have
two accounts X and Y(both authenticated), I should get X's and Y's remaining
hits separately with this url or OAuth. As per Twitter I can't use
username/password method after June. Then option remains is OAuth. Will
Oauth give me separate hits of both A/cs through coding without using
customized window? If yes, then how ?
 We are going to white-list these a/cs if it worked on current api
requests. So please guide me in this problem.

 waiting for reply eagerly,
Thank you very much in advance.


On Thu, Apr 29, 2010 at 11:48 PM, Abraham Williams <4bra...@gmail.com>wrote:

> http://dev.twitter.com/doc/get/account/rate_limit_status
>
> <http://dev.twitter.com/doc/get/account/rate_limit_status>You should avoid
> using username/password to authenticate as you will just have to update the
> code in June when BasicAuth is removed.
>
> Abraham
>
>
> On Thu, Apr 29, 2010 at 03:58, Rushikesh Bhanage 
> wrote:
>
>> Hi there,
>>
>>We are developing an app in which we need little of your help. may I
>> know how to get rate-limit status if we provide authentication credentials
>> of an authenticated user. is it possible if we provide user name and
>> password manually through code instead of twitter OAuth. If it is, how can
>> we do that?
>>
>>
>>
>> waiting for reply eagerly,
>> Thank you very much in advance.
>>
>>
>
>
> --
> Abraham Williams | Developer for hire | http://abrah.am
> @abraham | http://projects.abrah.am | http://blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>


[twitter-dev] Problem in getting rate-limit status with OAuth.

2010-05-04 Thread Rushikesh Bhanage
Hi there,
  I am studying Abraham's code on github for Oauth to deal with my
problem. In my app, user is not going to do authentication. I have two
account with(username/password) and I have to use it to get ratelimit
status. Studying code shows that, it is redirected(redirect.php) to
twitter's window for user authentication. So instead of authenticating user
on authentication window,  can I get ratelimit status of these two accounts
authenticated through the code on github. Is it possible to do or
alternatively what should I do?
  can you suggest me any clue, please?

Thank you in advance.


Re: [twitter-dev] Problem in getting rate-limit status with OAuth.

2010-05-04 Thread Rushikesh Bhanage
Hi Taylor,

 Thank you for your reply first.
 I think I could not explain my problem properly. OK first thing is my
app does not have two users only, there are n number of users that are going
to visit the website, the two users I mentioned are white listed user
accounts, that I want to use as a authentication credentials to get rate
limit status for each account in OAuth(user is not going to authenticate).
There some queries to me as under:

   1. would I be able to get rate limit status of above two account
separately by skipping to authentication window of twitter, because I need
this rate limit status in my code to perform user operation without
acknowledging user about this OAuth.
   2. As you mentioned in the last lines that when I shall use access token
in the request, I would be getting rate limit status for the user indicated
by the access token. Can you elaborate more on this.

Thank you in advance.



On Tue, May 4, 2010 at 7:26 PM, Taylor Singletary <
taylorsinglet...@twitter.com> wrote:

> Hi Rushikesh,
>
> You're asking a few things here, so I'll try to help clear them up:
>
>   - Your app will need to do some kind of authentication for each of the
> users. If your application is a web application, and you plan to have more
> than just the two users you've mentioned, you'll want to implement the
> entire OAuth 1.0a flow: request token acquisition, sending the user to
> Twitter's authentication page, and then exchanging the request token for an
> access token. You would then use the access token for each member to make
> API calls. If the pool of users for your application will not go beyond the
> two you mentioned, you might find yourself better served by applying for a
> one-time use of xAuth to exchange your login credentials for access tokens.
> If you're building a desktop or mobile application, you will want to use
> either the OAuth 1.0A PIN/oauth_verifier flow or use xAuth.
>
>   - Rate limiting is communicated through HTTP headers in the responses you
> get from the API server.  See http://dev.twitter.com/pages/rate-limiting
>
>   - You can also use the
> http://api.twitter.com/1/account/rate_limit_status end point to query on
> rate limits. When using an access token in the request, the response will
> indicate the rate limit status for the user represented by that access
> token. If you aren't using an access token, it will indicate the rate limit
> for the IP address.
>
>
> Taylor Singletary
> Developer Advocate, Twitter
> http://twitter.com/episod
>
>
>
> On Tue, May 4, 2010 at 2:00 AM, Rushikesh Bhanage 
> wrote:
>
>> Hi there,
>>   I am studying Abraham's code on github for Oauth to deal with my
>> problem. In my app, user is not going to do authentication. I have two
>> account with(username/password) and I have to use it to get ratelimit
>> status. Studying code shows that, it is redirected(redirect.php) to
>> twitter's window for user authentication. So instead of authenticating user
>> on authentication window,  can I get ratelimit status of these two accounts
>> authenticated through the code on github. Is it possible to do or
>> alternatively what should I do?
>>   can you suggest me any clue, please?
>>
>> Thank you in advance.
>>
>>
>>
>


[twitter-dev] How would I get remaing hits using OAuth.

2010-05-10 Thread Rushikesh Bhanage
  Hi there,
* About my app* - my app deals with showing user his followers
information. So I  need to check each follower to show result. Everything is
going properly except one. While doing this I need to check API remaining
hits of account.(whitelisted a/c.)
 Now what I want is, if my app is using calls of particular a/c then I
should get remaining hits of that a/c using OAuth.
 I am studying Abraham's code on github in that it gives particular
user's info, but when I go for rate limit status url for Host like as:
public $host = "http://twitter.com/account/rate_limit_status";;
it gives result as:
  stdClass Object
(
[request] =>
/account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key=bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_signature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEcezD2Pmn32pmc5O&oauth_version=1.0
[error] => Not found
)

Am I going wrong way? Can you suggest me the right one?

 Thank you in advance.


Re: [twitter-dev] How would I get remaing hits using OAuth.

2010-05-11 Thread Rushikesh Bhanage
   Hi Abraham,

   Thank you for your reply. Now I am getting rate limit status using OAuth
(new version). Now moving towards main problem.

   As my app(uses rest api) provides user his followers info filtering spam
ones which needs lot of calls so I white listed two accounts.Suppose a user
has more than a million of followers then it breaks operation as sometimes
more than 20k hits are required.

What I am doing? ->  Through coding I'm checking rate limit status, if
it is available move further otherwise give user-defined error. As I am
using Abraham's code on github , I got rate limit status, but in coding, it
is not possible to enter username and password in twitter's authentication
window, as we are not authenticating from user side.(we will be
authenticating white listed accounts in back end side).So can I pass
username and password of these white listed account and get them
authenticated from twitter(instead of showing authentication window) and get
their rate limit status using Abraham's code.

In short, I need each of above white listed a/c 's rate limit status so
instead of authentication window, how can I get these white listed accounts
authenticated from twitter.

 Please suggest me the way to deal with this problem. Because my whole
application is ready, just stopped on this.

 Waiting for reply eagerly,
 Thank you in advance.



On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com>wrote:

> Look at your request 
> "/account/rate_limit_statusaccount/verify_credentials.json".
> Notice how rate_limit_status and verify_credentials are both jammed
> together.
>
> It also looks like you are using an older version of TwitterOAuth. The
> newest version uses https://api.twitter.com/1/ as the host which gives you
> a rate limit of 350/hour instead of 150/hour.
>
> To get the rate_limit_status in the newest version call
> $connection->get('account/rate_limit_status');
>
> Abraham
>
> On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage 
> wrote:
>
>>
>>   Hi there,
>> * About my app* - my app deals with showing user his followers
>> information. So I  need to check each follower to show result. Everything is
>> going properly except one. While doing this I need to check API remaining
>> hits of account.(whitelisted a/c.)
>>  Now what I want is, if my app is using calls of particular a/c then I
>> should get remaining hits of that a/c using OAuth.
>>  I am studying Abraham's code on github in that it gives particular
>> user's info, but when I go for rate limit status url for Host like as:
>> public $host = "http://twitter.com/account/rate_limit_status";;
>> it gives result as:
>>   stdClass Object
>> (
>> [request] =>
>> /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key=bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_signature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEcezD2Pmn32pmc5O&oauth_version=1.0
>> [error] => Not found
>> )
>>
>> Am I going wrong way? Can you suggest me the right one?
>>
>>  Thank you in advance.
>>
>>
>
>
> --
> Abraham Williams | Developer for hire | http://abrah.am
> @abraham | http://projects.abrah.am | http://blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>


[twitter-dev] Need some help in OAuth.

2010-05-12 Thread Rushikesh Bhanage
   Hi there,

   Thank you for your reply. Now I am getting rate limit status using OAuth
(new version). Now moving towards my problem.

   As my app(uses rest api) provides user his followers info filtering spam
ones which needs lot of calls so I white listed two accounts.Suppose a user
has more than a million of followers then it breaks operation as sometimes
more than 20k hits are required.

What I am doing? ->  Through coding I'm checking rate limit status, if
it is available move further otherwise give user-defined error. As I am
using Abraham's OAuth library on github , I got rate limit status, but in my
coding, it is not possible to enter username and password in twitter's
authentication window, as we are not authenticating from user side.(we will
be authenticating white listed accounts in back end side).So can I pass
username and password of these white listed account and get them
authenticated from twitter(instead of showing authentication window) and get
their rate limit status using Abraham's code.

In short, I need each of above white listed a/c 's rate limit status so
instead of authentication window, how can I get these white listed accounts
authenticated from twitter.

 Please suggest me the way to deal with this problem. Because my whole
application is ready, just stopped on this.

 Waiting for reply eagerly,
 Thank you in advance.


[twitter-dev] Facing problem.

2010-05-17 Thread Rushikesh Bhanage
Hi there,

I am using this (sample code)code to get ratelimit status:
ratelimit();

print_r($ratearr);

?>
ratelimit() function contains the url:"
http://api.twitter.com/1/account/rate_limit_status.xml";. I was getting rate
limit status with this up till now but now it gives error as "invalid
arguments supplied. "
But when I paste the same URL in address bar, I get rate_limit_status.

why this is so?


Rushi.


[twitter-dev] user data not getting in previous format.

2010-05-17 Thread Rushikesh Bhanage
Hi there,

  I got a big problem right now. I was getting user data, ratelimit,
followers list in xml with key value pairs but now I am getting only values.
 Due to this the app i am developing , giving error as INVALID ARGUMENTS
SUPPLIED FOR METHOD. I checked that, json format gives key-value pair. is
there any updates about this.

Getting key value in json format but it needs to save. Do we need to
always save .json response.?

waiting eagerly,
thank you in advance.

with regards,
Rushi


Re: [twitter-dev] Facing problem.

2010-05-17 Thread Rushikesh Bhanage
Hi,
  Yes, I had the same doubt, so I replaced a month back's TwitterAPI.php
file and tried to run, but no happy moment and saw same error.

   Actually I was working on another module of this project so was not in
touch with this, now I tried to run this but
I don't understand why this is so because it was running perfectly few
days back, but started giving error now.

   When I access ratelimit status through request URL it gives me data in
value form not in (key-value) of xml format as it was giving previously.

twitter is a class and ratelimit method has no arguments passed neither
before nor now.

 your help will be greatly appreciated,

Rushi

On Mon, May 17, 2010 at 9:49 PM, Abraham Williams <4bra...@gmail.com> wrote:

> Did you recently update TwitterAPI.php? It sounds like twitter() or
> ratelimit() need an argument passed int.
>
> Abraham
>
>
> On Mon, May 17, 2010 at 03:39, Rushikesh Bhanage 
> wrote:
>
>> Hi there,
>>
>> I am using this (sample code)code to get ratelimit status:
>> >
>> include("TwitterAPI.php");
>> $t = new twitter();
>>
>> $ratearr = $t->ratelimit();
>>
>> print_r($ratearr);
>>
>> ?>
>> ratelimit() function contains the url:"
>> http://api.twitter.com/1/account/rate_limit_status.xml";. I was getting
>> rate limit status with this up till now but now it gives error as "invalid
>> arguments supplied. "
>> But when I paste the same URL in address bar, I get rate_limit_status.
>>
>> why this is so?
>>
>>
>> Rushi.
>>
>>
>>
>>
>
>
> --
> Abraham Williams | Developer for hire | http://abrah.am
> @abraham | http://projects.abrah.am | http://blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>


Re: [twitter-dev] user data not getting in previous format.

2010-05-17 Thread Rushikesh Bhanage
Hi Taylor,

Thank you for looking at my problem.

 I am using Mr David Billingham's PHP class file in application. "
http://twitter.slawcup.com/twitter.class.phps";.

Yes request URL include parameter as username to fetch data from methods
like userstatus($unm) (gives particular user's data) and followerscid($unm)
gives that user's followers info and ratelimit() method (gives
rate_limit_status).

One of the e.g to API request is:(these methods included in TwitterAPI.php,
having twitter as class name)
 function userstatus($unm)
{
   $request = 'http://api.twitter.com/1/users/show/'.$unm.'.xml';
return $this->process($request);
}
and call this method with twitter class object, gives error on accessing
data as invalid arguments supplied in the main code but when I call it
individually with print_r(arrayname) then it gives like- "bool(false)" .

Yes using xml as extension to get data in xml format.(not familiar with
.json format. )

There is no such proxy like thing as I hv uploaded files on server and
dealing directly with it.


Hope I was able to give you the actual problem status.

Please assist me on this.
Thank you in advance.

Rushi.



On Mon, May 17, 2010 at 9:15 PM, Taylor Singletary <
taylorsinglet...@twitter.com> wrote:

> Hi Rushi,
>
> Trying to understand your problem better -- are you using an intermediary
> Twitter library of some sort?
>
> Can you give some examples of the API requests you are making? The request
> URI including parameters? Are you using basic auth or OAuth? Are you
> appending .xml as the extension to the request when you are expecting XML
> data? Is there any kind of proxy between your requesting machine and the
> Twitter API?
>
> Taylor Singletary
> Developer Advocate, Twitter
> http://twitter.com/episod
>
>
>
> On Mon, May 17, 2010 at 8:37 AM, Rushikesh Bhanage  > wrote:
>
>> Hi there,
>>
>>   I got a big problem right now. I was getting user data, ratelimit,
>> followers list in xml with key value pairs but now I am getting only values.
>>  Due to this the app i am developing , giving error as INVALID ARGUMENTS
>> SUPPLIED FOR METHOD. I checked that, json format gives key-value pair. is
>> there any updates about this.
>>
>> Getting key value in json format but it needs to save. Do we need to
>> always save .json response.?
>>
>> waiting eagerly,
>> thank you in advance.
>>
>> with regards,
>> Rushi
>>
>
>


Re: [twitter-dev] Facing problem.

2010-05-18 Thread Rushikesh Bhanage
Hi there,

I am using Mr David Billingham's PHP class file in application. "
http://twitter.slawcup.com/twitter.class.phps";.

The request URL include parameter as username to fetch data from methods
like userstatus($unm) (gives particular user's data) and followerscid($unm)
gives that user's followers info and ratelimit() method (gives
rate_limit_status).

One of the e.g to API request is:
 function userstatus($unm)
{
   $request =
'http://api.twitter.com/1/users/show/'.$unm.'.xml<http://api.twitter.com/1/users/show/%27.$unm.%27.xml>';

return $this->process($request);
}
and call this method with twitter class object, gives error on accessing
data as invalid arguments supplied in the main code but when I call it
individually with print_r(arrayname) then it gives like- "bool(false)" .

same thing happens with ratelimit() which gives error as "Invalid Arguments
Supplied to the method"

Using xml as extension to get data in xml format and developed whole code
using xml(key-value pair)

There is no proxy like thing as I hv uploaded files on server and dealing
directly with it.



Please help me on this.
Thank you in advance.

Rushi.


On Wed, May 19, 2010 at 1:27 AM, Abraham Williams <4bra...@gmail.com> wrote:

> What is the exact error?
>
> Abraham
>
>
> On Tue, May 18, 2010 at 00:07, Rushikesh Bhanage 
> wrote:
>
>> Hi,
>>   Yes, I had the same doubt, so I replaced a month back's TwitterAPI.php
>> file and tried to run, but no happy moment and saw same error.
>>
>>Actually I was working on another module of this project so was not in
>> touch with this, now I tried to run this but
>> I don't understand why this is so because it was running perfectly few
>> days back, but started giving error now.
>>
>>When I access ratelimit status through request URL it gives me data in
>> value form not in (key-value) of xml format as it was giving previously.
>>
>> twitter is a class and ratelimit method has no arguments passed neither
>> before nor now.
>>
>>  your help will be greatly appreciated,
>>
>> Rushi
>>
>> On Mon, May 17, 2010 at 9:49 PM, Abraham Williams <4bra...@gmail.com>wrote:
>>
>>> Did you recently update TwitterAPI.php? It sounds like twitter() or
>>> ratelimit() need an argument passed int.
>>>
>>> Abraham
>>>
>>>
>>> On Mon, May 17, 2010 at 03:39, Rushikesh Bhanage >> > wrote:
>>>
>>>> Hi there,
>>>>
>>>> I am using this (sample code)code to get ratelimit status:
>>>> >>>
>>>> include("TwitterAPI.php");
>>>> $t = new twitter();
>>>>
>>>> $ratearr = $t->ratelimit();
>>>>
>>>> print_r($ratearr);
>>>>
>>>> ?>
>>>> ratelimit() function contains the url:"
>>>> http://api.twitter.com/1/account/rate_limit_status.xml";. I was getting
>>>> rate limit status with this up till now but now it gives error as "invalid
>>>> arguments supplied. "
>>>> But when I paste the same URL in address bar, I get rate_limit_status.
>>>>
>>>> why this is so?
>>>>
>>>>
>>>> Rushi.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Abraham Williams | Developer for hire | http://abrah.am
>>> @abraham | http://projects.abrah.am | http://blog.abrah.am
>>> This email is: [ ] shareable [x] ask first [ ] private.
>>>
>>
>>
>
>
> --
> Abraham Williams | Developer for hire | http://abrah.am
> @abraham | http://projects.abrah.am | http://blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>


Re: [twitter-dev] Facing problem.

2010-05-19 Thread Rushikesh Bhanage
Hi there
  I have included TwitterAPI.php file in say show.php, in this main file
when i call first function ratelimit() and access it thru
foreach loop, it gives error as "Invalid arguments supplied for foreach".

  I thought that problem would be for ratelimit() only, but when I executed
userstatus($unm) and followers function individually in another file, it's
giving error as:  "bool(false)".

Thank you in advance.

On Wed, May 19, 2010 at 12:21 PM, Abraham Williams <4bra...@gmail.com>wrote:

> What does the rest of the error message say? What method is getting invalid
> arguments? What line in the PHP file is having the error?
>
> Abraham
>
>
> On Wed, May 19, 2010 at 01:23, Rushikesh Bhanage 
> wrote:
>
>> Hi there,
>>
>> I am using Mr David Billingham's PHP class file in application. "
>> http://twitter.slawcup.com/twitter.class.phps";.
>>
>> The request URL include parameter as username to fetch data from methods
>> like userstatus($unm) (gives particular user's data) and followerscid($unm)
>> gives that user's followers info and ratelimit() method (gives
>> rate_limit_status).
>>
>> One of the e.g to API request is:
>>  function userstatus($unm)
>> {
>>$request = 
>> 'http://api.twitter.com/1/users/show/'.$unm.'.xml<http://api.twitter.com/1/users/show/%27.$unm.%27.xml>';
>>
>> return $this->process($request);
>> }
>> and call this method with twitter class object, gives error on accessing
>> data as invalid arguments supplied in the main code but when I call it
>> individually with print_r(arrayname) then it gives like- "bool(false)" .
>>
>> same thing happens with ratelimit() which gives error as "Invalid
>> Arguments Supplied to the method"
>>
>> Using xml as extension to get data in xml format and developed whole code
>> using xml(key-value pair)
>>
>> There is no proxy like thing as I hv uploaded files on server and dealing
>> directly with it.
>>
>>
>>
>> Please help me on this.
>> Thank you in advance.
>>
>> Rushi.
>>
>>
>>
>> On Wed, May 19, 2010 at 1:27 AM, Abraham Williams <4bra...@gmail.com>wrote:
>>
>>> What is the exact error?
>>>
>>> Abraham
>>>
>>>
>>> On Tue, May 18, 2010 at 00:07, Rushikesh Bhanage >> > wrote:
>>>
>>>> Hi,
>>>>   Yes, I had the same doubt, so I replaced a month back's TwitterAPI.php
>>>> file and tried to run, but no happy moment and saw same error.
>>>>
>>>>Actually I was working on another module of this project so was not
>>>> in touch with this, now I tried to run this but
>>>> I don't understand why this is so because it was running perfectly
>>>> few days back, but started giving error now.
>>>>
>>>>When I access ratelimit status through request URL it gives me data
>>>> in value form not in (key-value) of xml format as it was giving previously.
>>>>
>>>>
>>>> twitter is a class and ratelimit method has no arguments passed neither
>>>> before nor now.
>>>>
>>>>  your help will be greatly appreciated,
>>>>
>>>> Rushi
>>>>
>>>> On Mon, May 17, 2010 at 9:49 PM, Abraham Williams <4bra...@gmail.com>wrote:
>>>>
>>>>> Did you recently update TwitterAPI.php? It sounds like twitter() or
>>>>> ratelimit() need an argument passed int.
>>>>>
>>>>> Abraham
>>>>>
>>>>>
>>>>> On Mon, May 17, 2010 at 03:39, Rushikesh Bhanage <
>>>>> rishibhan...@gmail.com> wrote:
>>>>>
>>>>>> Hi there,
>>>>>>
>>>>>> I am using this (sample code)code to get ratelimit status:
>>>>>> >>>>>
>>>>>> include("TwitterAPI.php");
>>>>>> $t = new twitter();
>>>>>>
>>>>>> $ratearr = $t->ratelimit();
>>>>>>
>>>>>> print_r($ratearr);
>>>>>>
>>>>>> ?>
>>>>>> ratelimit() function contains the url:"
>>>>>> http://api.twitter.com/1/account/rate_limit_status.xml";. I was
>>>>>> getting rate limit status with this up till now but now it gives error as
>>>>>> "invalid arguments supplied. "
>>>>>> But when I paste the same URL in address bar, I get
>>>>>> rate_limit_status.
>>>>>>
>>>>>> why this is so?
>>>>>>
>>>>>>
>>>>>> Rushi.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Abraham Williams | Developer for hire | http://abrah.am
>>>>> @abraham | http://projects.abrah.am | http://blog.abrah.am
>>>>> This email is: [ ] shareable [x] ask first [ ] private.
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Abraham Williams | Developer for hire | http://abrah.am
>>> @abraham | http://projects.abrah.am | http://blog.abrah.am
>>> This email is: [ ] shareable [x] ask first [ ] private.
>>>
>>
>>
>
>
> --
> Abraham Williams | Developer for hire | http://abrah.am
> @abraham | http://projects.abrah.am | http://blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>


[twitter-dev] xml formatted data?

2010-05-20 Thread Rushikesh Bhanage
Hi there,

   Can somebody here tell me that why I am getting .xml format data as only
values and not in key-value pair?

   Suppose request url is :
http://api.twitter.com/1/account/rate_limit_status.xml
   response is:
   143
   150
   1274354584
   2010-05-20T11:23:04+00:00

   why I am not getting "key:value" pair as getting previously.

Please help me on this.
Thank you in advance.

Rushi


[twitter-dev] Problem with library?

2010-05-22 Thread Rushikesh Bhanage
Hi there,

 I am using PHP TWITTER library by David Billingham version "0.1".
Around 8 days back my app was working perfectly with this library

but now it's terrific.
   E.g  here what i am getting as a result for ratelimit() method:

phptwitter.php

[CODE]
http://twitter.com/account/rate_limit_status.xml';
$ratearr = $this->process($request);
}





   function process($url,$postargs=false){

$ch = curl_init($url);

if($postargs !== false){
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postargs);
}

if($this->username !== false && $this->password !== false)
curl_setopt($ch, CURLOPT_USERPWD,
$this->username.':'.$this->password);

curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_NOBODY, 0);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);

$response = curl_exec($ch);

$this->responseInfo=curl_getinfo($ch);
curl_close($ch);


if(intval($this->responseInfo['http_code'])==200){
if(class_exists('SimpleXMLElement')){
$xml = new SimpleXMLElement($response);
return $xml;
}else{
return $response;
}

}else{
return false;
}
}
}
?>

 [/CODE]

Get_rate_limit.php

[CODE]
ratelimit();

print_r($ratearrx)."";
var_dump($ratearrx);
?>
[/CODE]

It gives blank for print function and "NULL" as result for var_dump
function.


Why this is so?


Rushi.


[twitter-dev] Suggest me a good library

2010-08-02 Thread Rushikesh Bhanage
Hi there!

 I need to fetch user's all followers data in my app.

My first question is:

  1. which library shuld I use, to get followers data in least time,
basically does that depend on library?
   (right now I am using MyTwitter php class by  Andres "Artux" Scheffer
version 1.0).
  e.g to get 421 followers data using above library, it takes around 25
secs.

 2. what is the average time to get 500 followers data from twitter API.
(will that vary in case i.e if twitter is in over capacity phase. )

Please reply asap.

Thanks in advance.
Rishi.


[twitter-dev] Will you guys help me here?

2010-08-06 Thread Rushikesh Bhanage
Hi guys,

   with a hope to get some sort of help here,  I wanted to ask you guys,  I
am getting error while loading xml formatted data into   object
like:

*   "Warning*: simplexml_load_string()
[function.simplexml-load-string]:
Entity: line 50: parser error : Entity 'rsaquo' not defined in*
/home/ajit/public_html/honestfollowers.com/TwitterAPILibrary/mytwitter1.php*on
line
*486"

*   Line 486 on mytwitter1.php is :   $data =
simplexml_load_string($xml);
*
   *Due to this error I am not getting whole data of a user.

*   *Is it twitter overcapacity error? because this error comes usually when
even my twitter homepage comes in a damaged state.

   if this is not from twitter-side , what can be the problem(means like
internet speed or anything)?
*
   *I am using rest API method and My Twitter Class PHP by Andres "Artux"
Scheffer, Mozilla browser (v3.6.8).


   I will really appreciate your help guys.

   Thank you in advance.
*

*


[twitter-dev] What can this error be about?

2010-08-16 Thread Rushikesh Bhanage
Hi there,

We have developed an app (you can see http://honestfollowers.com), in which
user can search for his honest followers.

I have successfully tested this for users having up to 5k followers. But
when I search with users having greater than 5k followers (like 'imishant',
'ashabhosle' etc), I get below error :

Warning: Invalid argument supplied for foreach() in
/home/rohit25/public_html/honestfollowers.com/get_data.php on line 356

Above error probably is encountered due to the foreach loop we are using
stops receiving data. I tried searching the same account (imishant) few
hours ago and the operation was crawled and executed completely. So I am
confused whether this is a problem from Twitter's side or not. I have tested
my app with many other accounts and many get executed completely but some
don't and those are mostly accounts with more than 15k followers. Also those
which displays error gets executed completely when searched on different
point of time. So is this a problem from Twitter's side? Does Twitter API
sometimes break operation if when sending huge chunks of data? What solution
you suggest to fetch and execute such amount of data?

No doubt site is perfectly running for users having below 2k, 3k followers.

P.S: We have white listed Twitter Account!

Thank you in advance!


[twitter-dev] Re: What can this error be about?

2010-08-16 Thread Rushikesh Bhanage
Hi Dean,

Thank you for trying out our app. You should check out our how it
works link (http://www.honestfollowers.com/howitworks.php). I just
went though your account and I can see you follow more than 500
people. According to us it is hard to keep up with all the updates
when someone follows that much amount of followers. Also when we check
several 100s of people who are honest followers we got to know the
maximum number a user can follow is 170. And if he is a client user
that number can be extended to 500. In your case you are exceeding the
limit which can make hard to you to follow all the updates. We are
trying to show you how many exactly honest followers you have and
those who read each and every tweet of yours. Also we have been
constantly making changes to make it perfect. I would love to hear
from you more about your experience on our site.

Thank you.

On Aug 16, 4:58 pm, "Dean Collins"  wrote:
> Lol - "deancollins <http://twitter.com/deancollins>  is not an Honest
> follower!"
>
> You might need a bit of an explanation on what this means as I imagine a
> lot of people are going to search their own name and have the same
> reaction I did...not honest? Wtf?
>
> Regards,
>
> Dean Collins
> Cognation Inc
> d...@cognation.net
> <mailto:d...@cognation.net> +1-212-203-4357   New York
> +61-2-9016-5642   (Sydney in-dial).
> +44-20-3129-6001 (London in-dial).
>
> 
>
> From: twitter-development-talk@googlegroups.com
> [mailto:twitter-development-t...@googlegroups.com] On Behalf Of
> Rushikesh Bhanage
> Sent: Monday, 16 August 2010 7:43 AM
> To: twitter-development-talk@googlegroups.com
> Subject: [twitter-dev] What can this error be about?
>
> Hi there,
>
> We have developed an app (you can seehttp://honestfollowers.com), in
> which user can search for his honest followers.
>
> I have successfully tested this for users having up to 5k followers. But
> when I search with users having greater than 5k followers (like
> 'imishant', 'ashabhosle' etc), I get below error :
>
> Warning: Invalid argument supplied for foreach() in
> /home/rohit25/public_html/honestfollowers.com/get_data.php on line 356
>
> Above error probably is encountered due to the foreach loop we are using
> stops receiving data. I tried searching the same account (imishant) few
> hours ago and the operation was crawled and executed completely. So I am
> confused whether this is a problem from Twitter's side or not. I have
> tested my app with many other accounts and many get executed completely
> but some don't and those are mostly accounts with more than 15k
> followers. Also those which displays error gets executed completely when
> searched on different point of time. So is this a problem from Twitter's
> side? Does Twitter API sometimes break operation if when sending huge
> chunks of data? What solution you suggest to fetch and execute such
> amount of data?
>
> No doubt site is perfectly running for users having below 2k, 3k
> followers.
>
> P.S: We have white listed Twitter Account!
>
> Thank you in advance!


[twitter-dev] Re: What can this error be about?

2010-08-16 Thread Rushikesh Bhanage
Hi,

I see what you are saying. I am waiting for Twitter to reply on this
issue. There should be some alternate to get all this data. Otherwise
they wouldn't whitelist an account with 20,000 calls if this is the
case. Can you suggest any method where I can get all the data?

Thanks!

On Aug 16, 5:11 pm, Tom van der Woerdt  wrote:
> On 8/16/10 1:43 PM, Rushikesh Bhanage wrote:
>
>
>
> > Hi there,
>
> > We have developed an app (you can seehttp://honestfollowers.com), in
> > which user can search for his honest followers.
>
> > I have successfully tested this for users having up to 5k followers. But
> > when I search with users having greater than 5k followers (like
> > 'imishant', 'ashabhosle' etc), I get below error :
>
> > Warning: Invalid argument supplied for foreach() in
> > /home/rohit25/public_html/honestfollowers.com/get_data.php
> > <http://honestfollowers.com/get_data.php> on line 356
>
> > Above error probably is encountered due to the foreach loop we are using
> > stops receiving data. I tried searching the same account (imishant) few
> > hours ago and the operation was crawled and executed completely. So I am
> > confused whether this is a problem from Twitter's side or not. I have
> > tested my app with many other accounts and many get executed completely
> > but some don't and those are mostly accounts with more than 15k
> > followers. Also those which displays error gets executed completely when
> > searched on different point of time. So is this a problem from Twitter's
> > side? Does Twitter API sometimes break operation if when sending huge
> > chunks of data? What solution you suggest to fetch and execute such
> > amount of data?
>
> > No doubt site is perfectly running for users having below 2k, 3k followers.
>
> > P.S: We have white listed Twitter Account!
>
> > Thank you in advance!
>
> Hi,
>
> There can be numerous reasons for a simple PHP error, but this one means
> that you don't feed an array into foreach.
>
> Which can also have numerous reasons. I think that, in your case, it may
> be because of a 500 Internal Server Error which Twitter gives every now
> and then. You should do some checks on the information you get from
> Twitter before using it. ;-) Not all API calls always work.
>
> Tom


[twitter-dev] Need help to resolve this error.

2010-08-18 Thread Rushikesh Bhanage
Hi Taylor / Abraham,

  I really need your help in this case. My whole app is ready without this
small but important error.
 I have posted this question already, but didn't get proper answer, So I
request you to assist me correctly or suggest any solution, so that I can
move forward and get ready to release the site.
 ok the error says:

Warning: Invalid argument supplied for foreach() in
/home/rohit25/public_html/honestfollowers.com/get_info.php on line 435

Off course! not getting array(data) to the loop, but this doesn't
happens every time. I tested my each and every line of code, from where i am
getting data from twitter up to the display of data to user. This doesn't
give error to users having followers up to 1k, but fails where users having
lots of honest followers. can this be from twitter-side? confused.

Due to this, we have stopped search for users having followers more than
15k.
@abraham you are searched on site.

   You can have a look at this :
http://www.honestfollowers.com
  e.g users : 1. dineshkarthik_k
2. sreesanth36
  or anybody having a/c like this.

  We are not able to release the site, just because of this error.

 I really thanks to all the developers who have helped us until now.

waiting for your reply impatiently,

 Thank you in advance.


[twitter-dev] Need Help!! - How Oauth will work in my case?

2010-08-21 Thread Rushikesh Bhanage
Hi there,

I have a white-listed account, but the rate-limit has decreased from 20k
before 5 days to 12k right now. Initially I thought that this might be due
to twitter running over-capacity because I was busy in finishing part of app
to launch it in two days. But i just read one mail from Justin who is having
same problem, now I realized that this cut off might be due to basic auth. I
was also aware about the basic oauth shutting down, but didn't click the
mind.

We can switch to Oauth, but here are some doubts:

1. *What my app does*? -> in my app, when any twitter user enters his name-
we crawl his data thru userstatus method, then we crawl his all the
followers and show him his real followers.
   For this I am using My Twitter Library from Andres Scheffer, to which I
pass my white listed account user name and password to get all the data. *Now
which Oauth library should I prefer that will meet my requirement?*

2. *How Oauth is going to work*? -> I am doubtful that how Oauth is going to
work in my case, until now any user can enter his user name and was able to
get his result. now will I have to take Oauth from each searched user to
show his result?

If it is so how can I use my white listed account log ins to get 20k calls.

Please clear my doubts.

Thank you in advance.


[twitter-dev] White-listed IP showing rate-limit 150 requests/hour

2010-08-24 Thread Rushikesh Bhanage
Hi there,

I have got my IP and a/c white-listed, until now I was working on account
which was giving proper rate-limit, now I am trying to move from account
to IP, but IP just showing rate-limit 150 requests/hr. (just doubt: working
on sub domain of IP , will it be a cause? )

I just want to ask you that is there anything wrong I am doing?

Also my white-listed account showing rate-limit 2667/hr right now. can you
guys shed some light here please?

I also want to ask you guys that , if I switched from account (passing
id/pwd ) to IP , will I get 20k calls/hr or same like account showing right?

Your help will be greatly appreciated.

Thank you in advance.


Re: [twitter-dev] Re: Need Help!! - How Oauth will work in my case?

2010-08-24 Thread Rushikesh Bhanage
Hi Justin,

  First of all thank you for your reply.

I have some questions in your answer?

  You'll have to change clients
  - what clients you are talking about ?

   Changing auth schemes shouldn't change what you
   can get out of the API
 - If it is basic/ oauth , yes I am aware about that.

   Once you setup your user's app/ids the same
whitelist applies
 - what this means to you?

Can you tell me that as my account and IP is white-listed , If I switched
from account(id/password)  to  IP(where I won't need to pass ID/password) on
which I am working right now, in that case do I really need to do Oauth for
IP also?

Lastly congrats that you got all working again.

Thank you in advance.

On Tue, Aug 24, 2010 at 6:44 AM, Justin  wrote:

> You'll have to change clients, but you can obtain the required tokens
> to do the same calls. Changing auth schemes shouldn't change what you
> can get out of the API. Once you setup your user's app/ids the same
> whitelist applies. I just finished my conversion yesterday and
> everything's working the same.
>
> I use this now:
> http://github.com/abraham/twitteroauth/tree/master/twitteroauth/
>
> Go up a directory from there to see samples.
>
>
>
>
>
>
>
> On Aug 21, 8:47 am, Rushikesh Bhanage  wrote:
> > Hi there,
> >
> > I have a white-listed account, but the rate-limit has decreased from 20k
> > before 5 days to 12k right now. Initially I thought that this might be
> due
> > to twitter running over-capacity because I was busy in finishing part of
> app
> > to launch it in two days. But i just read one mail from Justin who is
> having
> > same problem, now I realized that this cut off might be due to basic
> auth. I
> > was also aware about the basic oauth shutting down, but didn't click the
> > mind.
> >
> > We can switch to Oauth, but here are some doubts:
> >
> > 1. *What my app does*? -> in my app, when any twitter user enters his
> name-
> > we crawl his data thru userstatus method, then we crawl his all the
> > followers and show him his real followers.
> >For this I am using My Twitter Library from Andres Scheffer, to which
> I
> > pass my white listed account user name and password to get all the data.
> *Now
> > which Oauth library should I prefer that will meet my requirement?*
> >
> > 2. *How Oauth is going to work*? -> I am doubtful that how Oauth is going
> to
> > work in my case, until now any user can enter his user name and was able
> to
> > get his result. now will I have to take Oauth from each searched user to
> > show his result?
> >
> > If it is so how can I use my white listed account log ins to get 20k
> calls.
> >
> > Please clear my doubts.
> >
> > Thank you in advance.
>