Hi,

First, your token's scope is incorrect.  The scope should be
https://spreadsheets.google.com/feeds as documented here:
http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#Auth

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.

Which language are you using?  There are client libraries that can make this
simple for you.

-Vic



On Sun, Sep 25, 2011 at 9:53 AM, NMS <mygoogleproj...@k-ct.com> wrote:

> My main goal is to add and read an entry
> in Google spreadsheet in my program (Java or exe program,not WEB-program).
>
> Well, I did  read
>
> http://code.google.com/intl/ru-RU/apis/spreadsheets/data/3.0/developers_guide.html
>
> I tryed  authorizing requests with OAuth 2.0
> I see that I can use it with
> - for client-side web applications
> - for server-side web applications
>
> But my apllication is not web application.
> I registered my application as it is written
> and I use http://localhost as the URI.
> So my request to get token is as follows:
>
> 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
> My browser said  that "no connection with http://localhost";.
> So I could not get the authorization token. Tragedy...
>
> Okay. Suppose I could do the above.
> I look the section "Adding a list row"
>
> I read the following:
> "Then determine the appropriate URL to send the entry to, known as the POST
>
> URL. You can find the POST URL in the list feed's <link> element that has
> rel=http://schemas.google.com/g/2005#post.";
> Not understood.
>
> Then I read in document:
> " In the body of the POST request, place the Atom <entry> element you
> created
> above, using the application/atom+xml content type.
> Now send the request to the POST URL:
> POST
> https://spreadsheets.google.com/feeds/list/key/worksheetId/private/full "
>
> How? How?
> And what to do if I don't have worksheet?
>
> I weep.  No examples. I don't know how to do all that.
>
>
>

Reply via email to