White Listing and Rate Limiting

5 views
Skip to first unread message

mtruth

unread,
Nov 22, 2009, 9:41:50 PM11/22/09
to Twitter Development Talk
Hi,

I'm creating an application in VB.Net, I've been white listed. Yet
when I get my rate in VB.Net it shows that am I am only getting 150
request. When I check my available requests, I am using my username
and password.

Yet, when I run Tweetdeck, I am shown that I get my full white listed
rate limit.

Not sure what I am doing wrong, but I'd like to make sure that while I
am testing my application I don't have to worry about rates.

Any help would be greatly appreciated!

Cheers,

Michael

shiplu

unread,
Nov 23, 2009, 7:43:41 AM11/23/09
to twitter-deve...@googlegroups.com
On Mon, Nov 23, 2009 at 9:41 AM, mtruth <ruthe...@michaelsworld.net> wrote:
> Hi,
>
> I'm creating an application in VB.Net, I've been white listed.  Yet
> when I get my rate in VB.Net it shows that am I am only getting 150
> request.  When I check my available requests, I am using my username
> and password.
>
> Yet, when I run Tweetdeck, I am shown that I get my full white listed
> rate limit.
What did you whitelist? your account or IP?

--
A K M Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল

mtruth

unread,
Nov 23, 2009, 10:02:07 PM11/23/09
to Twitter Development Talk
I whitelisted my account. My IP would change depending on where I am
doing my work.

On Nov 23, 10:43 pm, shiplu <shiplu....@gmail.com> wrote:
> On Mon, Nov 23, 2009 at 9:41 AM,mtruth<rutherf...@michaelsworld.net> wrote:
> > Hi,
>
> > I'm creating an application in VB.Net, I've been white listed.  Yet
> > when I get my rate in VB.Net it shows that am I am only getting 150
> > request.  When I check my available requests, I am using my username
> > and password.
>
> > Yet, when I run Tweetdeck, I am shown that I get my full white listed
> > rate limit.
>
> What did you whitelist? your account or IP?
>
> --
> A K M Mokaddim
> My talks,http://talk.cmyweb.net
> Follow me,http://twitter.com/shiplu
> SUST Programmers,http://groups.google.com/group/p2psust

Michael Steuer

unread,
Nov 23, 2009, 10:23:23 PM11/23/09
to twitter-deve...@googlegroups.com, Twitter Development Talk
Are you sure your checking your rate with an authenticated call? If
you don't, you'd get the rate for your IP



On Nov 23, 2009, at 7:02 PM, mtruth <ruthe...@michaelsworld.net>
wrote:

Michael Rutherford

unread,
Nov 23, 2009, 10:26:25 PM11/23/09
to twitter-deve...@googlegroups.com
Yes, when I send the request to the server, I set the network credentials with my username and password.  The same way I would any other call that requires authentication.

martimedia

unread,
Dec 13, 2009, 5:36:54 PM12/13/09
to Twitter Development Talk
Instead of using
request.Credentials = new NetworkCredential(username, password);

try the following (sorry it's in C#) as .NET will try an
unauthenticated request first, before trying an authenticated
request :

byte[] encbuff = System.Text.Encoding.UTF8.GetBytes(username +
":" + password);
String enc = Convert.ToBase64String(encbuff);
request.Headers.Add("Authorization", "Basic " + enc);



On Nov 24, 3:26 am, Michael Rutherford <rutherf...@michaelsworld.net>
wrote:
> Yes, when I send the request to the server, I set the network credentials
> with my username and password.  The same way I would any other call that
> requires authentication.
>
> On Tue, Nov 24, 2009 at 1:23 PM, Michael Steuer <mste...@gmail.com> wrote:
> > Are you sure your checking your rate with an authenticated call? If you
> > don't, you'd get the rate for your IP
>

Michael Rutherford

unread,
Dec 14, 2009, 5:47:04 PM12/14/09
to twitter-deve...@googlegroups.com
That looks like it might do the trick.  I'll give it a go!
 
Cheers!
 
Michael

Michael Rutherford

unread,
Dec 14, 2009, 6:41:14 PM12/14/09
to twitter-deve...@googlegroups.com
Thanks much!  That did it.  The VB.Net code is as follows:
 

Dim encbuff As Byte() = System.Text.Encoding.UTF8.GetBytes(userName + ":" + password)

Dim enc As String = Convert.ToBase64String(encbuff)

client.Headers.Add(

"Authorization", "Basic " + enc)

On Mon, Dec 14, 2009 at 8:36 AM, martimedia <duff...@googlemail.com> wrote:
Reply all
Reply to author
Forward
0 new messages