On Tue, Sep 27, 2011 at 2:28 AM, NMS <[email protected]> wrote:

> Hi Vic, Thank you for your responses.
>
>
>> First, your token's scope is incorrect.
>>
>
> I could not understand where and what exactly is incorrect.
> As I wrote, I followed documentation in "Authorizing requests with
> OAuth 2.0"
>
>
>>  The scope should be 
>> https://spreadsheets.google.**com/feeds<https://spreadsheets.google.com/feeds>as
>>  documented here:
>> http://code.google.com/apis/**spreadsheets/data/3.0/**
>> developers_guide.html#Auth<http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#Auth>
>>
>
> I could not understand the written below in documentation:
>
> *Here's the OAuth 2.0 scope information for the Google Spreadsheets API:
> https://spreadsheets.google.com/feeds
> *
>
> *To request access using OAuth 2.0, your application needs the scope
> information, as well as information that Google supplies during application
> registration (such as the client ID and/or the client secret).*
>
>
>> Secondly, it doesn't matter if your application is a web application or
>> desktop application.  You just need to make the OAuth2 HTTP request to the
>> API.
>>
>
> Nevertheless OAuth 2.0 does not work in my example.
> *
> *https://accounts.google.com/o/**oauth2/auth?scope=https://www.**
> google.com/m8/feeds&client_id=**400078234114.apps.**googleusercontent.com&
> **redirect_uri=http://localhost&**response_type=code<https://accounts.google.com/o/oauth2/auth?scope=https://www.google.com/m8/feeds&client_id=400078234114.apps.googleusercontent.com&redirect_uri=http://localhost&response_type=code>
>

Your scope is still incorrect.  Do you see where it says scope= in that URL?
 Replace the https://www.google.com/m8/feeds with
https://spreadsheets.google.com/feeds.


>
> My browser said  that "no connection with http://localhost";.
>
In order to retrieve the token out of the user's browser session, you must
fire up a web server on localhost, and receive the request from the browser
containing the token.  The web server you fire up will store the token, for
use by your application.


> So I could not get the response with authorization token.
> It requires the WEB server: local or remote.
> But even if I use real server's URL, I got the error "OAuth 2.0:
> redirect_uri_mismatch"
>
> *
> *
>
>>
>> Which language are you using?  There are client libraries that can make
>> this simple for you.
>>
>
> I would like to use Java. I am novice in Java though.
>
> You wrote in another thread:
> >I'm sorry, but I'm having trouble understanding what you are trying to
> do.
> >Have you read our Java samples in the developer guide?
> >http://code.google.com/apis/**spreadsheets/data/3.0/**
> developers_guide.html#**ListingSpreadsheets<http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#ListingSpreadsheets>
>
> I don't understand how to use it.
> Where "import ..." operators in Java samples?
> Where to get and  how to install Google API for Java?
>
> I expected to find many  zip-ed complete Java sources,
> including authentication, for each example
>
> I expected to find more detailed explanations of how to use raw protocol in
> user's apps
> It will be excellent if Google explain that with concrete spreadsheet.
> I expected to find zip-ed examples of that in Java and other languages.
>
> Thanks.
>
>

Reply via email to