Hi Al,

The recently released version 1.47.0 of the Java client library for GData
adds support for OAuth 2.0:

http://code.google.com/p/gdata-java-client/source/detail?r=505

The documentation is going to be updated soon with Java samples, please
bear with us a bit more.
Thanks

Claudio


On Mon, Apr 23, 2012 at 1:24 PM, java4africa <[email protected]>wrote:

> So OAuth 1.0 is deprecated and OAuth 2.0 is not supported by the Java
> client (See
> https://developers.google.com/google-apps/spreadsheets/#authorizing_requests
> ).
>
> I really don't get it - surely Spreadsheets and Java are currently the
> standard Enterprise tools. Or am I missing something? No Spreadsheet
> samples, link to the Spreadsheet API (from
> http://code.google.com/p/gdata-java-client/) is a broken link, etc, etc.
>
> My apologies for mixing retired and deprecated - OAuth 1.0 was listed
> under the sub-heading "*Retirement of older APIs".*
>
> Cheers,
> Al
>
>
> On Monday, April 23, 2012 6:02:27 PM UTC+2, Claudio Cherubino wrote:
>
>> 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<https://developers.google.com/accounts/terms>
>>
>> Claudio
>>
>>
>> On Mon, Apr 23, 2012 at 3:26 AM, java4africa 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<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/**gd**ata/docs/auth/oauth.html#**Examp**les<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(**parameter**s, signer);
>>>>>
>>>>> Please help.
>>>>>
>>>>>
>>>>>
>>>>
>>

Reply via email to