Save where the caller stopped reading an item
Replaces the caller's place in the item (the last save wins; anchor, percent and progress left out
are cleared). Send offset, progress or both. progress (0 to 1) and percent (0 to 100) are one
measure: the one you leave out is derived from the other. With progress and no offset, the offset is
that fraction of the item's text, so a client that reads offsets lands in the same place. Clients should
debounce saves (a few seconds after scrolling stops). A re-crawl that replaces the item's text clears
every reader's place. Allowed while the library is read-only over its plan's limits. An API key needs write access
to items.
bearerAuthorizationBearer <token>A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
id*stringapplication/json- body
offset*integer0 <= valueprogress?numberFraction of the item read.
0 <= value <= 1anchor?stringBlank is saved as null.
length <= 500percent?integer0 <= value <= 100Saved
application/json- response
item_id*stringoffset*integerCharacter offset into the item's text. 0 when nothing was saved.
0 <= valueanchor*|A short passage at the offset, to find the place again if the text changes.
length <= 500percent*|0 <= value <= 100progress*|How far through the item the reader is, as a fraction. The same measure as percent, kept at full precision; null when the client that saved the place sent neither.
0 <= value <= 1updated_at*|When it was saved; null when it never was.
date-timecurl -X PUT 'https://example.com/v1/items/string/progress' \ -H 'Content-Type: application/json' \ -d '{}'{ "item_id": "string", "offset": 0, "anchor": "string", "percent": 0, "progress": 0, "updated_at": "2019-08-24T14:15:22Z"}Get where the caller stopped reading an item GET
Each reader has their own place: the item's owner, and the owner or accepted members of a list the item is in. Anyone else gets 404, as for a deleted item. An API key needs read access to `items`.
Get what changed since last time GET
Returns the items changed after `cursor` (oldest first) and the ids of items deleted after it. Save `next_cursor` and call again while `has_more` is true. Start with cursor 0.