API-Dokumentation
Entwicklerressourcen und Leitfäden zur Integration QR Cake .
Schnellstart
Mit dem QR Cake API können QR Cake Benutzer ihr Konto QR Codes verwalten.
Authentifizierung
Erstellen Sie in Ihrem Dashboard einen API-Schlüssel und senden Sie ihn im Autorisierungsheader.
Authorization: Bearer <API Key> Content-Type: application/json
Verwalten Sie API-Schlüssel Dashboard API Schlüssel.
API Anforderungstester
Testen Sie Endpunkte direkt von dieser Seite aus. Geben Sie Ihren API-Schlüssel ein, wählen Sie einen Endpunkt aus und überprüfen Sie die Live-Antwort.
Interaktiver API-Tester
Führen Sie Anfragen direkt von Ihrem Browser an den ausgewählten Endpunkt QR Cake API aus.
Authorization: Bearer <API Key>https://api.qrcake.com/v1/product/user/product
Terminologie
Produkte
QR Codes
Benutzer
QR Cake Konten
Anforderungstexte (POST/PUT)
Für POST- und PUT-Anfragen müssen die Anfragetexte mit Zeichenfolgen versehen sein. Wenn Sie JSON senden, übergeben Sie eine JSON-Zeichenfolge (z. B JSON.stringify(payload)).
const payload = { redirect: "https://example.com", metadata: {} };
await fetch(url, {
method: "POST",
body: JSON.stringify(payload),
});Liste QR Codes
Listet den QR Codes auf, auf den der Schlüssel API zugreifen kann.
Authorization: Bearer <API Key>Accept: application/json
[
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}
]{
"message": {}
}Produkte = QR Codes.
Holen Sie sich einen QR-Code
Ruft einen QR-Code ab.
- 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": {}
}Erstellen Sie einen QR-Code
Erstellt ein neues QR-Code-Produkt.
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": {}
}Der Anforderungstext von POST muss mit einem String versehen sein (z. B. JSON.stringify(payload)).
Aktualisieren Sie einen QR-Code
Aktualisiert einen vorhandenen QR-Code (Produkt).
- 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": {}
}Der Anforderungstext von PUT muss mit einem String versehen sein.
Löschen Sie einen QR-Code
Löscht einen QR-Code.
- productId (string)
Authorization: Bearer <API Key>Accept: application/json
{
"productId": "string"
}{
"message": {}
}Berechtigungen
Gibt die Berechtigungen zurück, die dem Schlüssel API gewährt wurden.
Authorization: Bearer <API Key>Accept: application/json
{
"success": true,
"result": {
"analytics": true,
"productLimit": 100,
"tier": "subscriber",
"productTotal": 3,
"productActiveLimit": 100,
"productActiveTotal": 3
}
}{
"message": {}
}Unterstützte QR-Typen
Verwenden Sie diese Metadatentypen beim Erstellen oder Aktualisieren von QR-Produkten.
redirect, link, image, video, file, pdf, audio, app, event, vCard
Beginnen Sie mit dynamische QR-Codes Und veränderliche QR-Codes auf unserer Homepage.