Bookmark Topic Watch Topic
  • New Topic

Browsers sending data to app  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,


I am using Java with Google analytics when I call oauthHelper.getRequestTokenUrl(), after the user press the button and authorize access to his data.

I retrieve this value: https://www.google.com/accounts/OAuthGetRequestToken

When I use it in the browser I got this

parameter_absent
oauth_parameters_absentauth_consumer_key&oauth_signature_method&oauth_signature&oauth_timestamp&oauth_nonce&scope


In order to do this an HTTP Request must be provided in the documentation I can find:

"
The Request Token and Token Secret MUST be exchanged for an Access Token and Token Secret.

To request an Access Token, the Consumer makes an HTTP request to the Service Provider’s Access Token URL. The Service Provider documentation specifies the HTTP method for this request, and HTTP POST is RECOMMENDED. The request MUST be signed per Signing Requests, and contains the following parameters:

oauth_consumer_key:
The Consumer Key.
oauth_token:
The Request Token obtained previously.
oauth_signature_method:
The signature method the Consumer used to sign the request.
oauth_signature:
The signature as defined in Signing Requests.
oauth_timestamp:
As defined in Nonce and Timestamp.
oauth_nonce:
As defined in Nonce and Timestamp.
oauth_version:
OPTIONAL. If present, value MUST be 1.0 . Service Providers MUST assume the protocol version to be 1.0 if this parameter is not present. Service Providers’ response to non-1.0 value is left undefined.
No additional Service Provider specific parameters are allowed when requesting an Access Token to ensure all Token related information is present prior to seeking User approval.

"

But what way a HTTP Request is constructed, and send ,what methods should I use?

Sorry but it is a mess for me!!

What this means, please?

Cheers!

Thanks
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Report post to moderator
Angus Ferguson wrote:But what way a HTTP Request is constructed, and send ,what methods should I use?

Tutorial
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks fro your tutorial, but I mean using the Google Analytics API and Java.

Any tip?

Cheers!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66260
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue any discussion in your original post.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!