3 messages in com.googlegroups.google-base-data-apiRe: Repeated items with batch insert
FromSent OnAttachments
Phil Meades28 Oct 2006 09:01 
Daniel Danciu 단츄 다니엘28 Oct 2006 10:32 
Phil Meades30 Oct 2006 01:23 
Subject:Re: Repeated items with batch insert
From:Phil Meades (phil@googlemail.com)
Date:10/30/2006 01:23:51 AM
List:com.googlegroups.google-base-data-api

Daniel,

Thanks for the response. I'd overlooked the fact that an update required a PUT rather than a POST. Although, since I'm doing a batch insert, according the the notes at http://code.google.com/apis/gdata/batch.html I can POST a batch with batch:type of update rather than insert. So I'll probably try that.

Daniel Danciu 단츄 다니엘 wrote:

Phil, when you say "posting products", do you really mean HTTP POST? Updating items is done via an HTTP PUT request. POST always inserts...

Phil Meades wrote:

Hello,

I have got the whole process working end-to-end posting products using a batch insert through the API except that each subsequent post creates new repeated items rather than overwriting or updating the ones that are already there.

Each time I run my script it extracts the same sample of 10 products and I am using the unique product reference as the batch:id.

Any ideas?