GET /api/v1/collections/{code}
getCollection
needs lists:read
curl https://api.acyka.cc/api/v1/collections/AbCdEf \
-H "Authorization: Bearer $ACYKA_TOKEN" Asking #
In the address
| field | type | what it is |
|---|---|---|
code | string | the shelf's code |
Answering #
200 Collection
The shapes #
Collection #
A shelf somebody named.
| field | type | what it is |
|---|---|---|
code | string | |
name | string | |
about | string | |
icon | string | |
hue may be absent | number | undefined | |
visibility | string | `public` | `unlisted` | `private` |
shared | boolean | whether anyone who can read it may also add to it |
count | number | |
saves | number | |
owner | string | |
owner_avatar may be absent | string | undefined | |
owner_verified | boolean | |
covers | string[] | |
at | string | |
edited | string |
When it says no #
A refusal is { "message": "errors.something" } — a phrase name and never a
sentence, because one screen can be read in five languages. Every library turns the name into a
type, so you catch the class you can do something about. Errors has
the list.