2 messages in com.googlegroups.google-base-data-apiRe: Setting up php script to upload p...
FromSent OnAttachments
da8iwr11 Sep 2007 16:08 
Jeff S13 Sep 2007 17:00 
Subject:Re: Setting up php script to upload products into Google
From:Jeff S (j.@google.com)
Date:09/13/2007 05:00:37 PM
List:com.googlegroups.google-base-data-api

Hi Ian,

I think that your confusion may stem from the various ways that you can upload information to Google Base. The RSS XML file that you describe is the input used for the bulk upload method of adding items, but the auth sub authentication documentation you have read is for performing operations on your Google Base items using the Google Base API. The Google Base API uses the Atom Publishing Protocol (a REST style protocol) and you can read more about it here:

http://code.google.com/apis/base/

I think the demo page gives a good overview too:

http://www.google.com/base/api/demo/html/demo.html

If you are using the API, you don't really upload a file, instead you make an HTTP POST to add new items, and a PUT to update items.

Reagarding your authentication question, if the PHP script is sitting on the user's server, I think it would be ok to use client login since their account credentials would sit on their own computer(s). I encourage most people to use auth sub most of the time, especially if your users would otherwise be entering their credentials into an application on your server.

Thank you,

Jeff

On Sep 11, 4:09 pm, da8iwr <i.@newworlddesigns.co.uk> wrote:

Hi i have spent the last 6+ hours going through these forums, and the API instructions, and have become a little confused.

At the moment i produce a Module which is a plugin for a CMS/Ecommerce system called Joomla/Virtuemarthttp://www.virtuemartfrooglefeed.com.

I am now wanting to upgrade this to use the Google Base API system to automatically upload the XML file.

At the moment all it does is export a simple XML file, which you can see herehttp://www.virtuemartfrooglefeed.com/virtuemart/froogle-feed-sample-c... You save this XML file and upload it into your Google Base account through the bulk upload system, very simple and standard so far.

What i want to do is make it so in the admin panel you add your Google ID details, and it will upload each night, week, month or when ever it is set to, into Google base, so any new products in your e-commerce shop is added to Google Base.

But i have read about the "Account Authentication Proxy for Web-Based Applications"http://code.google.com/apis/accounts/AuthForWebApps.html

This is the bit I'm not sure how about, as this php script I'm making will be installed onto the clients website, so how do they get their website to access securely the Google server. Will they need to login to their site each time it uploads to accept a token, or is there a way to make this automated at lets say 4am each night, with no human interaction.

At least i found that you can collect a report so you know that the upload has been successful or a failure, which i never knew could be possible until a few hours ago.

Kindest regards in advance Ianwww.newworlddesigns.co.uk