त्वरित शुरुआत
QR Cake API से QR Cake उपयोगकर्ता अपने खाते के QR कोड प्रबंधित कर सकते हैं।
प्रमाणीकरण
अपने डैशबोर्ड में एक API कुंजी बनाएं और इसे प्राधिकरण शीर्षलेख में भेजें।
Authorization: Bearer <API Key> Content-Type: application/json
API कुंजियाँ प्रबंधित करें डैशबोर्ड API कुंजी.
API अनुरोध परीक्षक
इस पृष्ठ से सीधे समापन बिंदुओं का परीक्षण करें। अपनी API कुंजी दर्ज करें, एक समापन बिंदु चुनें, और लाइव प्रतिक्रिया का निरीक्षण करें।
इंटरएक्टिव API परीक्षक
अनुरोधों को सीधे अपने ब्राउज़र से चयनित QR Cake API समापन बिंदु पर चलाएँ।
Authorization: Bearer YOUR_API_KEYhttps://api.qrcake.com/v1/product/user/product
शब्दावली
Products
QR कोड
Users
QR Cake खाते
रिक्वेस्ट बॉडी (POST/PUT)
POST और PUT अनुरोधों के लिए, रिक्वेस्ट बॉडी को स्ट्रिंग किया जाना चाहिए। यदि आप JSON भेज रहे हैं, तो JSON स्ट्रिंग पास करें (उदाहरण के लिए JSON.stringify(payload)).
const payload = { redirect: "https://example.com", metadata: {} };
await fetch(url, {
method: "POST",
body: JSON.stringify(payload),
});QR कोड सूची
API कुंजी के लिए सुलभ QR कोडों की सूची देता है।
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 कोड।
एक QR कोड प्राप्त करें
एक QR कोड प्राप्त करता है।
- 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": {}
}एक QR कोड बनाएं
एक नया QR कोड उत्पाद बनाता है।
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 रिक्वेस्ट बॉडी को स्ट्रिंगिफाई किया जाना चाहिए (उदाहरण के लिए, JSON.stringify(payload))।
QR कोड अपडेट करें
मौजूदा QR कोड (उत्पाद) को अपडेट करता है।
- 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 रिक्वेस्ट बॉडी को स्ट्रिंगिफाई किया जाना चाहिए।
QR कोड हटाएँ
एक QR कोड हटाता है.
- productId (string)
Authorization: Bearer <API Key>Accept: application/json
{
"productId": "string"
}{
"message": {}
}अनुमतियां
API कुंजी को दी गई अनुमतियाँ लौटाता है।
Authorization: Bearer <API Key>Accept: application/json
{
"success": true,
"result": {
"analytics": true,
"productLimit": 100,
"tier": "subscriber",
"productTotal": 3,
"productActiveLimit": 100,
"productActiveTotal": 3
}
}{
"message": {}
}समर्थित QR प्रकार
QR उत्पाद बनाते या अपडेट करते समय इन मेटाडेटा प्रकारों का उपयोग करें।
redirect, link, image, video, file, pdf, audio, app, event, vCard
हमारे होमपेज पर डायनामिक QR कोड और परिवर्तनीय QR कोड से शुरू करें।