PIN-code flow ? Re: SOLVED Re: [twitter-dev] Needs object from desktop application ?

2011-06-24 Thread Ari Endo
Hello Matt, This is Ari again. I am developing desktop application referring: http://dev.twitter.com/pages/auth It says just above "OAUTH AUTHENTICATION FLOW" that "The flow varies slightly when using a desktop application with what's called the "PIN-mode flow" or exchanging login credentials usi

Re: SOLVED Re: [twitter-dev] Needs object from desktop application ?

2011-06-24 Thread Matt Harris
Hey Ari, It's great to hear you worked this out and got it working. Also, thank you for sharing the solution that worked for you. Best, @themattharris Developer Advocate, Twitter 2011/6/23 Ari Endo > ** > Dear Matt, > > Your quest

SOLVED Re: [twitter-dev] Needs object from desktop application ?

2011-06-23 Thread Ari Endo
Dear Matt, Your question solved my problem. Actually, the signature itself and signature part in authorization header were different! I have urlencoded the signature and again urlencoded the authorization header. As a result, signature was urlencoded twice which came different from once urlencode

Re: [twitter-dev] Needs object from desktop application ?

2011-06-23 Thread Matt Harris
Hi Ari, I'm not familiar with VBA enough to comment on the code, but if you could provide an example of the basestring created, authorization header and signature (remember to exclude any secrets) then we can take a look at what could be going wrong. Best, @themattharris

Re: [twitter-dev] Needs object from desktop application ?

2011-06-23 Thread Ari Endo
Dear Tom, Here is my vba code, just for your information. It returns 401 Unauthorized, Failed to validate oauth signature and token I appreciate if you give me a hint. - Private Sub cbRequestToken_Click() Const urlRequestToken As String = "htt

Re: [twitter-dev] Needs object from desktop application ?

2011-06-23 Thread Ari Endo
Dear Tom, There are several Excel VBA application which can be authenticated. The point is they make a twitter class and make an object to access. I am developing without using class (object-oriented). 1. my time is correct (UTC) 2. my signature is correct (compared with the sample in twitter doc

Re: [twitter-dev] Needs object from desktop application ?

2011-06-10 Thread Tom van der Woerdt
A desktop authentication flow usually includes a callback with a custom scheme (myapp://redirect) or xAuth, while a server application will usually use a normal callback (http://example.com/callback) with the normal OAuth flow. However, this won't cause the "Woah there!" error you get. Just li

Re: [twitter-dev] Needs object from desktop application ?

2011-06-10 Thread Ari Endo
Dear Tom, Thank you for your quick support. I have checked all the items you listed below. What I would like to know is information for desktop application different from server application. I would appreciate if you tell me any. Thank you in advance, Ari Tom van der Woerdt さんは書きました (2011/06/1

Re: [twitter-dev] Needs object from desktop application ?

2011-06-10 Thread Ari Endo
Dear Tom, Never ever did I hit the rate limit. I call only once to get the authentication token. At most, only several times for trials. Thank you for your reply, Ari Tom van der Woerdt wrote (2011/06/10 17:38): > "Woah there" - sounds like you are hitting a rate limit. If you don't > authentic

Re: [twitter-dev] Needs object from desktop application ?

2011-06-10 Thread Tom van der Woerdt
I just checked and I was wrong - "Woah there!" can mean a lot of thnigs. 1. Make sure that your time is right 2. Make sure that the signature you make is right 3. Make sure that your endpoint starts with https://api.twitter.com/1/ 4. Make sure that you use valid credentials 5. Make sure that you

Re: [twitter-dev] Needs object from desktop application ?

2011-06-10 Thread Tom van der Woerdt
"Woah there" - sounds like you are hitting a rate limit. If you don't authenticate your calls, you may only make 150 API calls per hour. Tom On 6/10/11 12:54 AM, ari_endo wrote: Hello, I am developing Twitter AP with Excel VBA. When accessing with an object generated from twitter class, it wor