Snel beginnen
Met de QR Cake API kunnen QR Cake-gebruikers de QR-codes in hun account beheren.
Authenticatie
Maak een API-sleutel aan in je dashboard en stuur deze mee in de Authorization-header.
Authorization: Bearer <API Key> Content-Type: application/json
Beheer API-sleutels in Dashboard API-sleutels.
API-verzoektester
Test eindpunten rechtstreeks vanaf deze pagina. Voer je API-sleutel in, selecteer een eindpunt en bekijk het live antwoord.
Interactieve API-tester
Voer verzoeken rechtstreeks vanuit je browser uit naar het geselecteerde QR Cake API-eindpunt.
Authorization: Bearer YOUR_API_KEYhttps://api.qrcake.com/v1/product/user/product
Terminologie
Producten
QR-codes
Gebruikers
QR Cake-accounts
Verzoektekst (POST/PUT)
Voor POST- en PUT-verzoeken moeten de verzoekteksten als string worden meegegeven. Als je JSON verzendt, geef je een JSON-string door (bijvoorbeeld JSON.stringify(payload)).
const payload = { redirect: "https://example.com", metadata: {} };
await fetch(url, {
method: "POST",
body: JSON.stringify(payload),
});QR-codes weergeven
Geeft de QR-codes weer die toegankelijk zijn voor de API-sleutel.
Authorization: Bearer <API Key>Accept: application/json
[
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}
]{
"message": {}
}Producten = QR-codes.
Eén QR-code ophalen
Haalt één QR-code op.
- productId (string)
Authorization: Bearer <API Key>Accept: application/json
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}{
"message": {}
}Een QR-code aanmaken
Maakt een nieuw QR-codeproduct aan.
Authorization: Bearer <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": {}
}De hoofdtekst van het POST-verzoek moet een string zijn (bijvoorbeeld JSON.stringify(payload)).
Een QR-code bijwerken
Werkt een bestaande QR-code (product) bij.
- productId (string)
Authorization: Bearer <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": {}
}De hoofdtekst van het verzoek moet een string zijn.
Een QR-code verwijderen
Verwijdert een QR-code.
- productId (string)
Authorization: Bearer <API Key>Accept: application/json
{
"productId": "string"
}{
"message": {}
}Machtigingen
Geeft de machtigingen terug die aan de API-sleutel zijn verleend.
Authorization: Bearer <API Key>Accept: application/json
{
"success": true,
"result": {
"analytics": true,
"productLimit": 100,
"tier": "subscriber",
"productTotal": 3,
"productActiveLimit": 100,
"productActiveTotal": 3
}
}{
"message": {}
}Ondersteunde QR-typen
Gebruik deze typen metagegevens bij het maken of bijwerken van QR-producten.
redirect, link, image, video, file, pdf, audio, app, event, vCard
Begin met dynamische QR-codes en veranderlijke QR-codes op onze homepage.