Profile and Saved Books
After authentication, use the profile to find purchased and saved collections. Saved Books also supports anonymous use through cookies.
User profile and shelves
Readino uses profile as the feed relation for the account document.
GET that link with the bearer token. The response media type is
application/opds-profile+json; its top-level fields are title (catalogue
brand), name, email, and links. Links include self, logo, Saved Books,
My Books (http://opds-spec.org/shelf), and HTML account/website alternatives.
The media type and base account fields follow the
OPDS User Profile draft.
Readino adds title and the logo link; it does not supply loans or holds.
Feed-level shelf links lead to My Shelves, a combined feed of purchased and
saved books. The profile and Authentication Document also link to the separate
collections. Saved Books uses the Readino relation
https://readino.com/opds/rel/saved-books. Links there include the OPDS
properties.numberOfItems count. It can reflect an anonymous cookie basket, not
necessarily zero when signed
out. The profile, My Books, and combined shelves require authentication;
the standalone Saved Books feed can use the anonymous basket.
For example, a Saved Books collection link can carry its count:
{
"rel": "https://readino.com/opds/rel/saved-books",
"type": "application/opds+json",
"title": "Saved Books",
"href": "https://readino.com/api/v2/opds2/wishlist",
"properties": {"numberOfItems": 2}
}
Saved Books operations
An unsaved, unowned publication offers https://readino.com/opds/rel/action/save-for-later.
A saved publication offers both navigation via
https://readino.com/opds/rel/saved-books and the operation
https://readino.com/opds/rel/action/remove-from-saved. Owned publications omit
both saved-state operations. Navigation is not removal; a client can show the
Saved Books shortcut on ordinary book pages and Remove in the saved collection.
The unowned example in Full publications shows Save; this saved-state excerpt shows the two
links returned once the book is saved:
{
"links": [
{
"rel": "https://readino.com/opds/rel/saved-books",
"title": "Saved Books",
"type": "application/opds+json",
"href": "https://readino.com/api/v2/opds2/wishlist"
},
{
"rel": "https://readino.com/opds/rel/action/remove-from-saved",
"title": "Remove from saved",
"type": "application/opds-publication+json",
"href": "https://readino.com/api/v2/opds2/remove-from-saved/9780000000001/6/partner"
}
]
}
Invoke an operation's URL with GET, no body, and the bearer token/cookies.
These Readino operations are idempotent setters, not toggles. They change state
despite using GET: never prefetch, crawl, or invoke them merely to display a publication. Success
is 200 application/opds-publication+json with a full updated publication
and Cache-Control: no-store. Replace the displayed entry
with that response. Its self remains the ordinary canonical publication URL.
The response's HTTP Link header names the profile and Saved Books URLs with
rel="https://readino.com/opds/rel/invalidates". Invalidate/refetch these
resources and any locally displayed combined shelf derived from them. The
server exposes Link through Access-Control-Expose-Headers.
Saving an already-saved ISBN does not duplicate it; removal removes it from
Saved Books. A missing book returns 404; an already-purchased book or saving
an unavailable book returns 409.
Anonymous cookies and merging Saved Books
Anonymous saving uses the signed wishlist_id basket cookie. Persist the
catalogue cookie jar through authentication. After obtaining the bearer token,
GET the feed's profile link with that token and the same wishlist_id cookie;
this loads the basket and merges its saved books into the authenticated account.
Process the response's cookie updates: the anonymous basket cookie is deleted
after merging. Other authenticated requests that load the basket can trigger
the same merge; token exchange by itself does not.
The basket cookie and bearer token are the required pair for this merge; a
sessionid cookie is not needed to identify the basket. Preserve any existing
session cookie to retain other session preferences. Clear account-related
cookies on explicit sign-out/account switching. Native cookie support is part
of this flow; public CORS headers alone do not promise cross-origin, credentialed
browser support.