I keep getting that error, and I can't understand why. I'm developing
a method to post vehicles on Google base, I haven't strayed too far
from the example, but I can't seem to post using the provided
framework.
Here is my code:
GBaseService service = new GBaseService("Codeing",
developerKey);
service.setUserCredentials(username, password);
GBaseEntry entry = new GBaseEntry();
entry.GBaseAttributes.ItemType = "vehicles";
entry.Title.Text = title;
entry.GBaseAttributes.AddTextAttribute("color",
color);
entry.GBaseAttributes.AddTextAttribute
("condition", condition);
entry.GBaseAttributes.AddTextAttribute
("description", description);
entry.GBaseAttributes.AddDateAttribute
("expiration_date", Expiration);
entry.GBaseAttributes.AddIntAttribute("id", id);
entry.GBaseAttributes.AddTextAttribute("location",
location);
entry.GBaseAttributes.AddTextAttribute("make",
make);
entry.GBaseAttributes.AddIntAttribute("mileage",
mileage);
entry.GBaseAttributes.AddTextAttribute("model",
model);
entry.GBaseAttributes.AddTextAttribute("price",
price);
entry.GBaseAttributes.AddTextAttribute
("price_type", price_type);
entry.GBaseAttributes.AddTextAttribute("quantity",
quantity);
entry.GBaseAttributes.AddTextAttribute
("vehicle_type", vehicleType);
entry.GBaseAttributes.AddTextAttribute("vin",
vin);
entry.GBaseAttributes.AddTextAttribute("year",
year);
entry.GBaseAttributes.AddImageLink(Image_Link);
entry.GBaseAttributes.AddUrlAttribute("Link",
Link);
GBaseEntry insertEntry =
service.Insert
(GBaseUriFactory.Default.ItemsFeedUri, entry);
Can anyone help me with this?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---