So in order to use the library, I must use the 3-legged authentication,
and must register a domain?
Cheers,
Pedro
On 10-08-2010 15:02, devendra devendra wrote:
Hi,
Others can correct me if I am wrong but I think, you cannot use your
gadget app consumer key and secure id for java client library. If you
want to just test the library, you can use "anonymous" for consumer
key and shared secret both. That works. Or please get consumer key and
shared secret by registering your domain on
http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html#new.
Regards,
Devendra
On Tue, Aug 10, 2010 at 2:59 PM, pandre <pedro.pan...@gmail.com
<mailto:pedro.pan...@gmail.com>> wrote:
Hi,
I am trying to use the samples provided in java library (orkut-os-
client).
I am running TestOrkutAuth, but I always get
Authentication FAILED
Exception in thread "main" net.oauth.OAuthException:
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=UTF-8
Date: Tue, 10 Aug 2010 09:09:19 GMT
Expires: Tue, 10 Aug 2010 09:09:19 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Length: 52
Server: GSE
Consumer is not registered: orkut.com:317487946397
<http://orkut.com:317487946397>
at
net.oauth.example.desktop.DesktopClient.login(DesktopClient.java:
201)
at
com.google.orkut.client.sample.Transport.init(Transport.java:92)
at
com.google.orkut.client.sample.TestOrkutAuth.run(TestOrkutAuth.java:
36)
at
com.google.orkut.client.sample.TestOrkutAuth.main(TestOrkutAuth.java:
62)
Caused by: net.oauth.OAuthProblemException: HTTP/1.1 400 Bad Request
I've tried to use "317487946397", "orkut.com:317487946397
<http://orkut.com:317487946397>" and
"google.com:317487946397 <http://google.com:317487946397>" as the
application key, but I always get the
same answer.
I've created and validated a sample gadget (that's how I got the
consumer key and secret).
All I want is to get OAuth authentication data so that I can start
using Orkut client library
--
You received this message because you are subscribed to the Google
Groups "orkut Developer Forum" group.
To post to this group, send email to
opensocial-orkut@googlegroups.com
<mailto:opensocial-orkut@googlegroups.com>.
To unsubscribe from this group, send email to
opensocial-orkut+unsubscr...@googlegroups.com
<mailto:opensocial-orkut%2bunsubscr...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en.
--
You received this message because you are subscribed to the Google
Groups "orkut Developer Forum" group.
To post to this group, send email to opensocial-or...@googlegroups.com.
To unsubscribe from this group, send email to
opensocial-orkut+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en.
--
You received this message because you are subscribed to the Google Groups "orkut
Developer Forum" group.
To post to this group, send email to opensocial-or...@googlegroups.com.
To unsubscribe from this group, send email to
opensocial-orkut+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en.