I am trying my best to retrieve all of our product information through
php, and I have finally figured out how to use CURL to ask Google to
show me 250 items at a time, and I am aware of the 'start-index'
paramter which definitely helped me grab more than the initial 250.

My only dilemma at the moment is being able to tell it when to stop.
Is there a method for querying Google about the total number of items
I have listed in base?

I was going through the forums here, and somebody noted that in each
request, there is a "next" attribute which gives the next url that I
can curl to gather the next group of items, but I can't find out where
that is actually returned.

Currently I am using:

curl_setopt($ch, CURLOPT_URL, $itemsFeedURL . "?max-results=250");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/atom+xml',
    'Authorization: AuthSub token="' . trim($token) . '"',
    'X-Google-Key: key=' . $developerKey
  ));
  $result = curl_exec($ch);

I can not find the NEXT link in $result anywhere.

--

Either of the two options listed above would seem to solve my issue,
but I obviously need help with one or the other.

I'm sorry for posting a nubbish question, but this is my first
dabbling in the google api and the documentation here is very
informative, although a little overwhelming I must admit (which is a
good thing).

As always, any help is appreciated!

.. and again, sorry for asking for a something that is going to be a
simple solution.

You are much appreciated and thank you for your time.

Best,
Doughty
--~--~---------~--~----~------------~-------~--~----~
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