Hi Krish, If you're using the GData Client Library, which is certainly recommended with OAuth, you can revoke a token using the following Java code:
GoogleOAuthParameters params = new GoogleOAuthParameters(); params.setOAuthConsumerKey(consumerKey); params.setOAuthConsumerSecret(consumerSecret); params.setOAuthToken(token); params.setOAuthTokenSecret(tokenSecret); helper.revokeToken(params); The other client libraries should have similar interfaces. If you'd like to handle the HTTP request yourself, the request will need to be signed. Cheers! Paul On Dec 20, 3:26 am, Krish <[email protected]> wrote: > Dear all, > > I am using oauth for linking a profile. But till now I could > understand that there is no direct way to unlink the profile through > oauth and we have to use the AuthSubUtil.revoke method. > > But when I use it, I always get authentication exception. I directly > use the above method with the token and private key as null. Please do > suggest the right way of implementing this. > > Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Google Health Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/googlehealthdevelopers?hl=en.
