Hi All,
I am going through the Read Me file of orkut java client, as I am trying to write a orkut standalone application in java. But,
Point #3 (under usage section) of Read Me says that :-
Get OAuth keys for your app
Before you can start using the API or run the sample given here, you need to get the OAuth consumer key and secret. Please visit the following URL for instructions on registering your app and getting an OAuth consumer key and secret.
http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html#new
The consumer key is usually your site url, e.g. "my.site.com", while the consumer secret is a cryptographically secure random string e.g. "Masdsadl213mzza0Y/l"
From where, and how to get these OAuth keys for my standalone test application. Also, Registering your web application section, says that, we can also write an unregistered application.
Point #4 (under usage section) of Read Me says that :-
Install the keys for use by sample app
The OAuth related details are stored in java/sample/oauth.properties
Edit the file and enter the consumer key and secret in there. Leave everything else untouched.
consumerSecret= consumerKey=
To test if your keys are valid and everything is fine, run the following command from your console.
cd java/ ant test-auth
This would open an OAuth flow, by opening a browser window. Once you are through that flow, you should see this messsage on the console.
"* Authentication PASSED *"
If you see the above message, then you are ready to run other samples. On the other hand, if you see a stack trace or some other error message, then 3-legged OAuth failed.
But, if I am not providing values for the two properties, build is getting failed. How to get test values for these two properties for my personal orkut java standalone test client ,or, it is possible to run the standalone app without these values.
Cheers :)