Looks like your understanding of the PHP client library is fine. The
> I discovered the orderby=modification_time and that is helpful. Keep
> in mind, I am using PHP and the Zend framework. I have narrowed it
> down to the Zend framework allows you to specify a setPublishedMin and
> \or a setPublishedMax using a date as a parameter. When I try to use
> these, my posting fails. I am pretty certain GBase supports this and
> the problem might be in the Zend framework (or my understanding of
> it)... If I could set these dates, I would be able to accomplish what
> I need to do!
> I am querying a GBase snippet feed trying to use the setPublishedMin
> and setPublishedMax. Whenever I use either of these, I receive an:
> Fatal error: Exception thrown without a stack frame in Unknown on line
> 0
> $service = new Zend_Gdata_Gbase();
> $query = $service->newSnippetQuery();
> // Everything works until I try one of these:
> $query->setPublishedMin('2008-04');
> // or if I use:
> $dateMin = new Zend_Date('2008-01-04', null, 'en_US');
> $query->setPublishedMin($dateMin);
> $query->SetBq('[Item Type:Housing]');
> $query->setMaxResults('250');
> $query->setOrderBy('modification_time');
> $query->setSortOrder('ascending');
> $feed = $service->retrieveAllEntriesForFeed($service->getFeed($query));
> foreach ($feed->entries as $entry) {
> //...
> }
> On May 5, 6:03 pm, "Eric (Google)" <api.e...@google.com> wrote:
> > Hi expresscoder,
> > I assume you are using the snippets feed? By default items are sorted
> > by relevancy, so you cannot assume you are seeing the 1000 latest
> > items. Try adding the orderby=modification_time parameter.
> > I'm not sure if I understand your second question. Are you filtering
> > out items with similar titles?
> > Hope this helps,
> > Eric
> > On May 2, 12:31 pm, expresscoder <expressco...@expresscoding.com>
> > wrote:
> > > ok... I am running a generic Zend GBase PHP script that queries GBase
> > > properties. As far as I can tell, I may only retrieve 250 records per
> > > query and set the initial number to start the query results from <=
> > > 1000. If I set the initial number to begin the retrieval to 1001,
> > > then no records are retrieved.
> > > So, can I assume the first 100 records being returned are the 1000
> > > newest records??
> > > How can I tell how many new posts are being made so I know how many
> > > records should be returned?? Right now I am importing the records
> > > into MySql and querying for duplicates before adding the record.
> > > Thanks for any advice...- Hide quoted text -
> > - Show quoted text -