Hi Vic, 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. >
Okay. I 've replaced > > >> >> 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. > Okay I have installed IIS on my WinXP machine. I made simple index.html with "Hello" as http://localhost Localhost works now. When I click on https://accounts.google.com/o/oauth2/auth?scope=https://spreadsheets.google.com/feeds&client_id=400078234114.apps.googleusercontent.com&redirect_uri=http://localhost&response_type=code I see my page on http://localhost/?code=4/Dnw42qf7YNOHDfCTwp8QPiH1YF79 I don't see the token inside of page source or elsewhere And.. Why I need my local WEB server. I expected to send a request to Google spreadsheet and to receive a response. I don't understand. Vic, it seems you work for Google. Is it really possible to explain working with Google spreadsheets with more details and with small examples? And how about other questions from my previous messages? Thanks. > > >> 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. >> >> >