Hi Al,

OAuth 1.0 is "deprecated", not "retired", and will be supported till April
20th 2015, as per our deprecation policy:

https://developers.google.com/accounts/terms

Claudio

On Mon, Apr 23, 2012 at 3:26 AM, java4africa <[email protected]>wrote:

> According to Google the OAuth 1.0 is "retired". Does this mean that there
> is currently no solution for the Spreadsheet API?
>
>
> http://googledevelopers.blogspot.com/2012/04/changes-to-deprecation-policies-and-api.html
>
> Cheers,
> Al
>
>
> On Thursday, March 29, 2012 6:06:10 PM UTC+2, Claudio Cherubino wrote:
>
>> Hi,
>>
>> The GData Java library doesn't support OAuth 2.0 yet, but you can use
>> OAuth 1.0.
>> Please check the Java code at
>>
>> http://code.google.com/apis/**gdata/docs/auth/oauth.html#**Examples<http://code.google.com/apis/gdata/docs/auth/oauth.html#Examples>
>>
>> Claudio
>>
>>
>> On Thu, Mar 29, 2012 at 1:26 AM, sunz wrote:
>>
>>> Hi..
>>>
>>> I am in a strange problem. I am writing an application in core java
>>> which needs to access its own account at google docs. So after doing a lot
>>> of googling, I found that OAuth2.0 with Service Account is something I am
>>> looking for. But I am not using App Engine or anything. Its a simple
>>> application. I don't know how can I use the OAuth. I have written below
>>> code and I dont know how to proceed further. Looking for someone to guide
>>> me further:
>>>
>>> GoogleCredential credential = new 
>>> GoogleCredential.Builder().set**Transport(HTTP_TRANSPORT).setJ**sonFactory(JSON_FACTORY)
>>>
>>>
>>>
>>>                                                                     
>>> .setServiceAccountId(EMAIL)
>>>                                                                     
>>> .setServiceAccountScopes(SCOPE**)
>>>
>>>
>>>
>>>                                                                     
>>> .setServiceAccountPrivateKeyFr**omP12File(new File("lib/key.p12")).build();
>>>
>>>
>>>
>>> SpreadsheetService service = new SpreadsheetService("My test Service");
>>>
>>>
>>> //service .setOAuthCredentials(**parameters, signer);
>>>
>>> Please help.
>>>
>>>
>>>
>>

Reply via email to