Ātrais sākums
QR Cake API ļauj QR Cake lietotājiem pārvaldīt sava konta QR kodus.
Autentifikācija
Izveidojiet API atslēgu savā informācijas panelī un nosūtiet to x-api-key galvenē.
x-api-key: <API Key> Content-Type: application/json
API atslēgas pārvaldiet šeit: Informācijas paneļa API atslēgas.
API pieprasījumu testētājs
Testējiet galapunktus tieši šajā lapā. Ievadiet savu API atslēgu, atlasiet galapunktu un apskatiet reāllaika atbildi.
Interaktīvs API testētājs
Izpildiet pieprasījumus tieši no pārlūkprogrammas uz atlasīto QR Cake API galapunktu.
x-api-key: YOUR_API_KEYhttps://api.qrcake.com/v1/product/api/product
Terminoloģija
Produkti
QR kodi
Lietotāji
QR Cake konti
Pieprasījuma pamatteksti (POST/PUT)
POST un PUT pieprasījumiem pieprasījuma pamatteksts jānodod kā virkne (stringified). Ja sūtāt JSON, nododiet to kā JSON virkni (piemēram, JSON.stringify(payload)).
const payload = { redirect: "https://example.com", metadata: {} };
await fetch(url, {
method: "POST",
body: JSON.stringify(payload),
});Uzskaitīt QR kodus
Uzskaita API atslēgai pieejamos QR kodus.
x-api-key: <API Key>Accept: application/json
[
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}
]{
"message": {}
}Produkti = QR kodi.
Iegūt QR kodu
Atgriež vienu QR kodu.
- productId (string)
x-api-key: <API Key>Accept: application/json
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}{
"message": {}
}Izveidot QR kodu
Izveido jaunu QR koda produktu.
x-api-key: <API Key>Content-Type: application/jsonAccept: application/json
{
"redirect": "https://example.com",
"metadata": {},
"state": "ACTIVE"
}{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}{
"message": {}
}POST pieprasījuma pamatteksts jānodod kā virkne (piemēram, JSON.stringify(payload)).
Atjaunināt QR kodu
Atjaunina esošu QR kodu (produktu).
- productId (string)
x-api-key: <API Key>Content-Type: application/jsonAccept: application/json
{
"redirect": "https://example.com",
"metadata": {},
"state": "ACTIVE"
}{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"expiresAt": 0,
"createdAt": 0,
"updatedAt": 0
}{
"message": {}
}PUT pieprasījuma pamatteksts jānodod kā virkne.
Dzēst QR kodu
Dzēš QR kodu.
- productId (string)
x-api-key: <API Key>Accept: application/json
{
"productId": "string"
}{
"message": {}
}Atļaujas
Atgriež API atslēgai piešķirtās atļaujas.
x-api-key: <API Key>Accept: application/json
{
"success": true,
"result": {
"tier": "subscriber",
"active": true,
"analytics": true,
"productLimit": 100,
"productTotal": 3,
"productActiveLimit": 100,
"productActiveTotal": 3
}
}{
"message": {}
}Atbalstītie QR veidi
Izmantojiet šos metadatu veidus, veidojot vai atjauninot QR produktus.
redirect, link, image, video, file, pdf, audio, app, event, vCard, review
Sāciet ar dinamiskajiem QR kodiem un maināmajiem QR kodiem mūsu mājaslapā.