Hi, I'm trying to find a way to obtain the full set of attribute values for a set of items. I'm trying to use the attributes feed, but it doesn't seem to be returning what I would expect.
Picking a random customer as an example, I've can do a query for items from the snippets feed as follows: curl -s -S 'http://www.google.com/base/feeds/snippets?bq=%5Bitem +type:products%5D%5Bcustomer+id:4909572%5D' | xmllint --format - ... ... <g:product_type type="text">baby products</g:product_type> <g:product_type type="text">baby care products</g:product_type> <g:product_type type="text">baby accessories</g:product_type> <g:product_type type="text">baby safety</g:product_type> <g:product_type type="text">baby product</g:product_type> <g:product_type type="text">baby gear</g:product_type> ... ... As I've shown, there are a multiple "product_type" attributes for each item. Now I'd like to be able to be able to get the set of values of the "product_type" attribute for all items matching the query. I believe I should be able to use the attributes feed for this, as follows: curl -s -S 'http://www.google.com/base/feeds/attributes/product+type %28text%29?bq=%5Bitem+type:products%5D%5Bcustomer+id:4909572%5D' | xmllint --format - <?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gm="http:// base.google.com/ns-metadata/1.0" xmlns:batch="http:// schemas.google.com/gdata/batch"> <id>http://www.google.com/base/feeds/attributes/product+type%28text %29?bq=%5Bitem+type%3Aproducts%5D%5Bcustomer+id%3A4909572%5D</id> <updated>2008-11-28T04:31:23.362Z</updated> <title type="text">product type(text)</title> <content type="text">Attribute "product type" of type text in query: [item type:products][customer id:4909572]</content> <link rel="self" type="application/atom+xml" href="http:// www.google.com/base/feeds/attributes/product+type%28text%29?bq=%5Bitem+type%3Aproducts%5D%5Bcustomer+id%3A4909572%5D"/> <gm:attribute name="product type" type="text"> <gm:value count="697">baby gear</gm:value> </gm:attribute> </entry> The problem here, as can be seen, is that only a single product type ('baby gear') is being returned. I can't figure out why. Anyone got an idea? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
