專案

GET https://9qrcode.com/api/projects/
curl --request GET \
--url 'https://9qrcode.com/api/projects/' \
--header 'Authorization: Bearer {api_key}' \
參數 細節 描述
page 選擇性 整數 您想要結果的頁碼。預設為1
results_per_page 選擇性 整數 您想要每頁顯示多少個結果。允許的值為:10 , 25 , 50 , 100 , 250 , 500 , 1000。默認為25
{ "data": [ { "id": 1, "name": "Development", "color": "#0e23cc", "last_datetime": null, "datetime": "2025-04-11 01:07:53" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://9qrcode.com/api/projects?&page=1", "last": "https://9qrcode.com/api/projects?&page=1", "next": null, "prev": null, "self": "https://9qrcode.com/api/projects?&page=1" } }
GET https://9qrcode.com/api/projects/{project_id}
curl --request GET \
--url 'https://9qrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "name": "Development", "color": "#0e23cc", "last_datetime": null, "datetime": "2025-04-11 01:07:53" } }
POST https://9qrcode.com/api/projects
參數 細節 描述
name 必要 字串 -
color 選擇性 字串 -
curl --request POST \
--url 'https://9qrcode.com/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Production' \
--form 'color=#ffffff' \
{ "data": { "id": 1 } }
POST https://9qrcode.com/api/projects/{project_id}
參數 細節 描述
name 選擇性 字串 -
color 選擇性 字串 -
curl --request POST \
--url 'https://9qrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Production' \
--form 'color=#000000' \
{ "data": { "id": 1 } }
DELETE https://9qrcode.com/api/projects/{project_id}
curl --request DELETE \
--url 'https://9qrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \