17 messages in com.googlegroups.google-base-data-api[Google-Base-API] Re: Adding payment_...| From | Sent On | Attachments |
|---|---|---|
| jksmith | 22 Jul 2008 18:00 | |
| jksmith | 23 Jul 2008 10:42 | |
| Tom Wilson | 23 Jul 2008 12:39 | |
| jksmith | 23 Jul 2008 14:43 | |
| jksmith | 23 Jul 2008 15:39 | |
| Marcos Oliva | 23 Jul 2008 15:52 | |
| jksmith | 23 Jul 2008 16:23 | |
| Tom Wilson | 24 Jul 2008 02:48 | |
| jksmith | 25 Jul 2008 14:29 | |
| jksmith | 25 Jul 2008 14:35 | |
| Celebird | 26 Jul 2008 01:42 | |
| Celebird | 26 Jul 2008 01:44 | |
| jksmith | 28 Jul 2008 13:40 | |
| Celebird | 29 Jul 2008 05:28 | |
| jksmith | 29 Jul 2008 12:03 | |
| Celebird | 29 Jul 2008 13:38 | |
| jksmith | 29 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); }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to Goog...@googlegroups.com
To unsubscribe from this group, send email to
Goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---




