Endpoints · Signed links
GET/v1/brand-logo
A store's logo for the designer bar (image/png, public).
What it does
The logo for the designer's top bar. t is the organisation's id; s a store's id when that store has its own logo, else the organisation's logo is answered; v a version that changes with every upload, so the image is cached for a year (Cache-Control: public, max-age=31536000, immutable). Public on purpose, with Access-Control-Allow-Origin: *.
No key: it is public.
curl "https://printwisp.com/v1/brand-logo?t=ten_7c0a1b2e9d4f&v=3" \ -o logo.png
<?php
file_put_contents('logo.png', file_get_contents('https://printwisp.com/v1/brand-logo?t=ten_7c0a1b2e9d4f&v=3'));// Node
const r = await fetch('https://printwisp.com/v1/brand-logo?t=ten_7c0a1b2e9d4f&v=3');
require('fs').writeFileSync('logo.png', Buffer.from(await r.arrayBuffer()));import requests
r = requests.get(
"https://printwisp.com/v1/brand-logo?t=ten_7c0a1b2e9d4f&v=3",
)
open("logo.png", "wb").write(r.content)Parameters
| Parameter | Type | Description |
|---|---|---|
t required | string | The organisation's id. |
s | string | A store's id, for the logo of a store with its own branding. |
v | string | The logo's version. |
Response
200 image/png. The logo.
Errors
| HTTP | error | message |
|---|---|---|
| 404 | plain text | No logo. |