2 messages in com.googlegroups.google-base-data-apiRe: Accessing the Google Base data AP...
FromSent OnAttachments
Marco Ortega25 Apr 2008 09:29 
Eric (Google)25 Apr 2008 11:06 
Subject:Re: Accessing the Google Base data API using PHP 4.0
From:Eric (Google) (api.@google.com)
Date:04/25/2008 11:06:05 AM
List:com.googlegroups.google-base-data-api

Hi Marco,

The page you return to should be the recipe application (http:// www.risalc.org:9090/GdataApi/Google_Base_Api.php?token=YOUR_TOKEN), but with a different view. It sounds like your one time token isn't being properly exchanged for a session token.

I would check to see if there were any errors with curl_exec: after setting $result = curl_exec($ch) in exhangeToken(), echo our curl_error($ch).

Hope this helps,

Eric

On Apr 25, 9:30 am, Marco Ortega <marc@gmail.com> wrote:

Hi, My name is Marco, Im from Santiago de Chile. Excuse for my english but I'm learn.

I have a problem with use Google Base data API with php 4 and Curl. I used a script write for Ryan Boyd (Google
Team)http://code.google.com/apis/base/samples/php/php-sample.html

But I try Its and dont works,

First I run from (my Server)

http://www.risalc.org:9090/GdataApi/Google_Base_Api.php

then, I sign in my personal Google Base account.

Next, Google Accounts give me an Access Request from the
URLhttp://www.risalc.org:9090/GdataApi/Google_Base_Api.php

I press the button "Grant access" but Its return to ther
URLhttp://www.risalc.org:9090/GdataApi/Google_Base_Api.php?token=CJ_oxbb...

and It show me only the page above and no data.

Please, Can someone help me with is ?

I now is better use php 5 and Zend Framework GDATA, but I need use php 4 and curl