API Belgeleri
QR Cake entegrasyonu için geliştirici kaynakları ve rehberler.
Hızlı Başlangıç
QR Cake API, QR Cake kullanıcılarının hesaplarındaki QR kodlarını yönetmelerini sağlar.
Kimlik doğrulama
Panelinizden bir API anahtarı oluşturun ve bunu Authorization başlığında gönderin.
Authorization: Bearer <API Key> Content-Type: application/json
API anahtarlarını burada yönetin Panel API Anahtarları.
API İstek Test Aracı
Uç noktaları doğrudan bu sayfadan test edin. API anahtarınızı girin, bir uç nokta seçin ve canlı yanıtı inceleyin.
Etkileşimli API Test Aracı
İstekleri doğrudan tarayıcınızdan seçilen QR Cake API uç noktasına çalıştırın.
Authorization: Bearer <API Key>https://api.qrcake.com/v1/product/user/product
Terminoloji
Ürünler
QR kodları
Kullanıcılar
QR Cake hesapları
İstek Gövdeleri (POST/PUT)
POST ve PUT istekleri için istek gövdelerinin dizeleştirilmesi gerekir. JSON gönderiyorsanız bir JSON dizesi iletin (örneğin JSON.stringify(payload)).
const payload = { redirect: "https://example.com", metadata: {} };
await fetch(url, {
method: "POST",
body: JSON.stringify(payload),
});QR kodlarını listele
API anahtarının erişebildiği QR kodlarını listeler.
Authorization: Bearer <API Key>Accept: application/json
[
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}
]{
"message": {}
}Products = QR kodları.
Bir QR kodu getir
Bir QR Kodu getirir.
- 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": {}
}Bir QR kodu oluştur
Yeni bir QR kod ürünü oluşturur.
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": {}
}POST istek gövdesi dizelendirilmelidir (örneğin, JSON.stringify(payload)).
Bir QR kodunu güncelle
Mevcut bir QR Kodunu (ürün) günceller.
- 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": {}
}PUT istek gövdesi dizelendirilmelidir.
Bir QR kodunu sil
Bir QR Kodunu siler.
- productId (string)
Authorization: Bearer <API Key>Accept: application/json
{
"productId": "string"
}{
"message": {}
}İzinler
API anahtarına verilen izinleri döndürür.
Authorization: Bearer <API Key>Accept: application/json
{
"success": true,
"result": {
"analytics": true,
"productLimit": 100,
"tier": "subscriber",
"productTotal": 3,
"productActiveLimit": 100,
"productActiveTotal": 3
}
}{
"message": {}
}Desteklenen QR Türleri
QR ürünlerini oluştururken veya güncellerken bu meta veri türlerini kullanın.
redirect, link, image, video, file, pdf, audio, app, event, vCard
Ana sayfamızdan dinamik QR kodlar ve düzenlenebilir QR kodlar ile başlayın.