6 messages in com.googlegroups.google-base-data-apiRetrieving stats from API| From | Sent On | Attachments |
|---|---|---|
| Itsallyou | 25 Mar 2008 10:06 | |
| Tom Wilson | 25 Mar 2008 15:15 | |
| Itsallyou | 26 Mar 2008 10:09 | |
| Tom Wilson | 26 Mar 2008 10:58 | |
| Itsallyou | 26 Mar 2008 21:49 | |
| Tom Wilson | 28 Mar 2008 07:32 |
| Subject: | Retrieving stats from API![]() |
|---|---|
| From: | Itsallyou (kcro...@cox.net) |
| Date: | 03/25/2008 10:06:47 AM |
| List: | com.googlegroups.google-base-data-api |
I have been trying to access the stats for through the API for a while now and after searching the net for help I see that I am not the only one with difficulties...
Based on the C# sample , I retrieve the items from the "items feed" setting the content property either to attributes, attributes,meta or even all and neither call will return the stats for the items.
Has anyone been able to do this succesfully?
<snippet>
Dim service As GBaseService = New GBaseService(Me.Text, "API KEY HIDDEN") Dim query As GBaseQuery = New GBaseQuery(Me.BaseUri.Text) 'item feeds url service.setUserCredentials(Me.Username.Text, Me.Password.Text)
Me.Cursor = Cursors.WaitCursor query.NumberToRetrieve = 250 query.Content = "attributes,meta"
Dim feed As GBaseFeed = service.Query(query) Dim table As DataTable = CreateDataTable() 'Table to use as datasource
Dim source As New DataSet("source") source.Tables.Add(table)
Dim goOn As Boolean goOn = True While goOn ' fill the table For Each entry As GBaseEntry In feed.Entries *** Iterate through feed and xfer info to datatable *** Next
***** Next Chunk ***** End While
</snippet>




