Skip Navigation

Fetch batches of bookmarks

You can retrieve batches of bookmarks for a user for maxRecords. In the following sample code, BEMS retrieves all records, excluding deleted records, since the last modified time. The response includes up to the 100 records, as specified by maxRecords. If there are more than 100 records, the response includes a MoreAvailable=true. The client application then sends additional requests using the NextOffset value to retrieve records in batches until MoreAvailable=false.
POST jsonstore/bookmarks/fetch Content-Type: application/json X-Good-GD-AuthToken: "<
authtoken
>" X-Good-GEMS-Scope:USER { "idOnly": "true", "lastModifiedTime": 1484593063122, "maxRecords" : 100, "offset" : 0 }
BEMS
returns the following batches:
Values
Sample code
MoreAvailable=true
Call to
BEMS
to fetch records.
POST jsonstore/bookmarks/fetch Content-Type: application/json X-Good-GD-AuthToken: "<
authtoken
>" X-Good-GEMS-Scope:USER { "idOnly": "true", "lastModifiedTime": 1484593063122, "maxRecords" : 100, "offset" : 0 }
BEMS
response returns first batch of 100 records.
{ "Offset": 0, "TotalCount": 110, "MoreAvailable": true, "NextPageOffset": 100, "Size": 100, "bookmarks":[ { "id": "204996f57b552ff58e43cebe03f6f58de" }, { "id": "39cd2ee5ee01bbe2f4021e4793f350c18" }, . . . . { "id": "3fba55721a8ff31c367baac5df03cbc38" } ] }
MoreAvailable=false
Call to
BEMS
to fetch additional records.
POST jsonstore/bookmarks/fetch Content-Type: application/json X-Good-GD-AuthToken: "<
authtoken
>" X-Good-GEMS-Scope:USER { "idOnly": "true", "lastModifiedTime": 1484593063122, "maxRecords" : 100, "offset" : 100 }
BEMS
response returns second batch of 10 records.
{ "Offset": 100, "TotalCount": 110, "MoreAvailable": false, "NextPageOffset": null, "Size": 10, "bookmarks":[ { "id": "204996f57b552ff58e43cebe03f6f58de" }, { "id": "39cd2ee5ee01bbe2f4021e4793f350c18" }, . . . . { "id": "3fba55721a8ff31c367baac5df03cbc38" } ] }