Fetch a cover or page through a source
const url = 'http://localhost:8080/api/v1/me/extensions/example/image?ref=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8080/api/v1/me/extensions/example/image?ref=example' \ --header 'Authorization: Bearer <token>'Follow the coverUrl and page url links the other source routes return rather than building them. The server fetches the image from the source’s declared sites and sends its bytes unchanged.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The extension’s reverse-DNS id.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The image.
The request was malformed.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The request has no valid session token.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The signed-in user may not do this. demo_account when the user is a
shared demo account, named in CHEK_DEMO_USERS, which can’t change
its password, sessions, sign-in providers, extensions or annotations.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The resource does not exist.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The server failed; details are in its log.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The extension reported an error, went over a limit, or the image couldn’t be fetched.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}