item is for uploading
snippets is for searching...

On Sep 14, 1:27 pm, Llew <[email protected]> wrote:
> Hi
>
> I have a couple of Newbie questions which I am stuck on. I have
> searched all the forums, documentation etc with no joy.
>
> The various documents say that querying the items feed is just the
> same as querying the snippets feed, except you have to first
> authenticate to look at your own products which is understandable.
>
> I am using using the Google API Demo. (although I get the same effect
> using a desktop application)
>
> I get a single token first then upgrade to a multiuse token.
>
> I can GET a query with /base/feeds/nnnnnnn/items which correctly
> returns
> <openSearch:totalResults>215</openSearch:totalResults> which is the
> correct number of items in my feed.
>
> nnnnnnn is my customer id because I have multiple websites under one
> base account.
>
> Yet when I try to do a query on just my feed,
> eg
> /base/feeds/nnnnnnn/items?bq=a4+size or
> /base/feeds/nnnnnnn/items?bq=[mpn(text):abdef123] or
> /base/feeds/nnnnnnn/items?bq=[id(text):xxxxxx]
>
> I always get back
> <openSearch:totalResults>0</openSearch:totalResults> and no enties.
>
> I get a I don't get 403 Authorisation Required errors so I know I am
> authorised correctly.
>
> If I do the same on the snippets feed, it works as it should (although
> searching on ID doesnt)
> eg
> /base/feeds/nnnnnnn/items?bq=a4+size or
> /base/feeds/nnnnnnn/items?bq=[mpn(text):abdef123]
> gives me the list of many feeds and my item is in there somewhere. I
> can of course add in
> [customer id(int):nnnnnnn] to return just my items.
>
> Why does it not work on the private items feed? Am I missing something
> glaringly obvious?
>
> As instructed, I made use of the <g:id></g:id> attribute (defined as
> alpha numeric) in my initial xml feed and ensured that it was unique
> in my feed. However, when I try to query it via snippets with
>
> /base/feeds/nnnnnnn/items?bq=[id(text):xxxxxx] I get 0 results. What's
> the point of having a unique customer supplied ID if you can't query
> on it?
>
> I am trying to get the unique URL (in the <id> tag) so that I can then
> perform an update on it but I seem to be constantly prevented from
> actually obtaining it, no matter how I approach it
>
> If I know the URL's ID in advance I can query it in my private feed
> ie /base/feeds/nnnnnnn/items/nnnnnnnnnnnnnnnnnnnn will return the
> single item and I have no doubt I could then update it as I wish.
>
> However, I am stumped on being able to uniquely search either the
> snippets or the items feeds on my unique ID so I can obtain the URL's
> ID and subsequently use it. My only other approach would be to return
> all items in my feed and store locally the URL's ID, which I can then
> send back whenever I want to update an item. The feed I am working on
> has 215 items in it, but on my other feed (multi use account) I have
> some 40,000 items so reading back all items and storing the URL's ID
> locally does seem overkill when you perhaps only want to amend one
> item!
>
> Any suggestions or pointers to get me going again would be greatly
> received!
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to