3 messages in com.googlegroups.google-base-data-apiRe: Programmatic Login - auth token u...
FromSent OnAttachments
uncleringo15 Sep 2006 05:14 
Daniel Danciu 단츄 다니엘15 Sep 2006 05:34 
Frank Mantek15 Sep 2006 05:34 
Subject:Re: Programmatic Login - auth token usage
From:Frank Mantek (fman@gmail.com)
Date:09/15/2006 05:34:14 AM
List:com.googlegroups.google-base-data-api

As you are writing the code yourself, the easiest thing to do is:

- read all the specs ( I know, it sounds like reading the instruction manual for a new toy....) at code.google.com relevant to this - probably install one of the official clients as well, so that you can compare what the official client sends compared to what you send. And you have a code template to "borrow" from

If you are using prog login, the token header should look (cut/copy/paste from the c# lib):

public const string Header = "Authorization: GoogleLogin auth=";

followed with your token.

Regards

On 9/15/06, uncleringo <cash@trafficdigital.com> wrote:

I'm using php to access google base with the curl functions. I've successfully managed to authenticate myself with the programmatic login and obtain an auth token, but this is where my luck runs out.

No matter how I try to send a query using curl I always get back 'HTTP/1.1 400 Bad Request'

My main problem is that the google base demo only provides example code for the AuthSub method, and shows the header:

Authorization: AuthSub token="COqVh63BDxCWl4SHBA"

This doesn't work for me, and I'm assuming that I need a different header, but I've looked everywhere I can think of and I cannot find what I should be putting there. I'm assuming I need the other headers too:

Content-Type: application/atom+xml X-Google-Key: key=o87h0987hdfg987hf...897g98h

Could someone point me in the right direction please?