17 messages in com.googlegroups.google-base-data-api[Google-Base-API] Re: Adding payment_...
FromSent OnAttachments
jksmith22 Jul 2008 18:00 
jksmith23 Jul 2008 10:42 
Tom Wilson23 Jul 2008 12:39 
jksmith23 Jul 2008 14:43 
jksmith23 Jul 2008 15:39 
Marcos Oliva23 Jul 2008 15:52 
jksmith23 Jul 2008 16:23 
Tom Wilson24 Jul 2008 02:48 
jksmith25 Jul 2008 14:29 
jksmith25 Jul 2008 14:35 
Celebird26 Jul 2008 01:42 
Celebird26 Jul 2008 01:44 
jksmith28 Jul 2008 13:40 
Celebird29 Jul 2008 05:28 
jksmith29 Jul 2008 12:03 
Celebird29 Jul 2008 13:38 
jksmith29 Jul 2008 14:50 
Subject:[Google-Base-API] Re: Adding payment_accepted attribute causes response code 400
From:jksmith (neon@gmail.com)
Date:07/23/2008 10:42:01 AM
List:com.googlegroups.google-base-data-api

anybody? this is driving me up the wall.

// Add parts foreach ($to_add as $partnum => $item) { $newEntry = $service->newItemEntry();

// Add title $newEntry->title = $service->newTitle($item['desc']);

// Add Link $newEntry->link = array($service->newLink($item['link'], 'alternate', 'text/html'));

// Add some content $newEntry->content = $service->newContent($item['desc_ext']); $newEntry->content->type = 'text';

// Define product type $newEntry->itemType = 'Products';

// Add item specific attributes $newEntry->addGbaseAttribute("brand", "Apple", "text"); $newEntry->addGbaseAttribute("price", $item['price'], "floatUnit"); $newEntry->addGbaseAttribute("quantity", $item['qty'], "int"); $newEntry->addGbaseAttribute("Part_number", $partnum, "text"); if ($item['image_url']) $newEntry->addGbaseAttribute("image_link", $item['image_url'], "url"); $newEntry->addGbaseAttribute("condition", $item['condition'], "text"); $newEntry->addGbaseAttribute("payment_accepted", "Google Checkout", "text");

$dryRun = true; $createdEntry = $service->insertGbaseItem($newEntry, $dryRun); }