以程式化方式創建、更新和管理動態 QR 碼。每個 QR 碼都可以自定義顏色、標誌和跟踪功能。
| 方法 | 端點 | 描述 |
|---|---|---|
POST | /organizations/:orgId/qr-codes | 創建新的 QR 碼 |
GET | /organizations/:orgId/qr-codes | 列出所有 QR 碼 |
GET | /organizations/:orgId/qr-codes/:id | 獲取特定的 QR 碼 |
PUT | /organizations/:orgId/qr-codes/:id | 更新 QR 碼 |
DELETE | /organizations/:orgId/qr-codes/:id | 刪除 QR 碼 |
GET | /organizations/:orgId/qr-codes/:id/download | 下載 QR 碼圖片 |
創建一個具有可自定義內容和樣式的新動態 QR 碼。
/organizations/:orgId/qr-codes| 參數 | 類型 | 必填 | 描述 |
|---|---|---|---|
| type | string | 必需的 | QR 碼類型(URL、VCARD、WIFI 等) |
| name | string | 必需的 | QR 碼的顯示名稱 |
| data | object | 必需的 | 內容數據(根據類型而異) |
| style | object | 選擇性 | 視覺自定義選項 |
| folderId | string | 選擇性 | 組織 QR 碼的資料夾 |
| tags | string[] | 選擇性 | 分類的標籤 |
curl -X POST \
https://api.iloveqr.com/api/v1/organizations/org_abc123/qr-codes \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "URL",
"name": "Company Website",
"data": {
"url": "https://example.com"
},
"style": {
"foregroundColor": "#000000",
"backgroundColor": "#FFFFFF",
"cornerRadius": 10
}
}'{
"id": "qr_xyz789",
"type": "URL",
"name": "Company Website",
"shortUrl": "https://ilqr.co/xyz789",
"shortCode": "xyz789",
"data": {
"url": "https://example.com"
},
"style": {
"foregroundColor": "#000000",
"backgroundColor": "#FFFFFF",
"cornerRadius": 10
},
"status": "ACTIVE",
"totalScans": 0,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}檢索帶有可選過濾的分頁 QR 碼列表。
/organizations/:orgId/qr-codes| 參數 | 類型 | 描述 |
|---|---|---|
| page | number | 頁碼(默認:1) |
| limit | number | 每頁項目數(默認:20,最大:100) |
| type | string | 按 QR 碼類型過濾 |
| folderId | string | 按資料夾過濾 |
| search | string | 按名稱搜索 |
| status | string | 按狀態過濾(ACTIVE、ARCHIVED) |
更新現有 QR 碼的內容、樣式或元數據。QR 碼圖片保持不變,而目的地會改變。
/organizations/:orgId/qr-codes/:idcurl -X PUT \
https://api.iloveqr.com/api/v1/organizations/org_abc123/qr-codes/qr_xyz789 \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Website",
"data": {
"url": "https://new-url.example.com"
}
}'永久刪除一個 QR 碼。此操作無法撤銷。短網址將停止運作。
/organizations/:orgId/qr-codes/:idcurl -X DELETE \
https://api.iloveqr.com/api/v1/organizations/org_abc123/qr-codes/qr_xyz789 \
-H "X-API-Key: YOUR_API_KEY"鏈接到任何網站或網頁
分享聯絡資訊
連接到 WiFi 網絡
鏈接到 PDF 文件
預填電子郵件內容
預填 SMS 訊息
直接撥打電話
純文本內容
數位餐廳菜單
應用商店鏈接
視頻內容鏈接
社交媒體鏈接
了解相關功能: