Pixel

Pixel theo dõi cho liên kết rút gọn.

GET/api/v1/pixels
Liệt kê pixel
TênKiểuBắt buộcMô tả
pageintegerKhôngPage number (default 1)
results_per_pageintegerKhôngItems per page (default 25, max 100)
searchstringKhôngSearch term
search_bystringKhôngColumn to search
order_bystringKhôngSort column
order_typestringKhôngasc or desc
datetime_startstringKhôngISO datetime filter start
datetime_endstringKhôngISO datetime filter end
curl -X GET 'https://forqrcode.com/api/v1/pixels' \
  -H 'Authorization: Bearer YOUR_API_KEY'
GET/api/v1/pixels/{id}
Đọc một pixel
TênKiểuBắt buộcMô tả
idinteger
curl -X GET 'https://forqrcode.com/api/v1/pixels/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'
POST/api/v1/pixels
Tạo pixel
curl -X POST 'https://forqrcode.com/api/v1/pixels' \
  -H 'Authorization: Bearer YOUR_API_KEY'
PATCH/api/v1/pixels/{id}
Cập nhật pixel
TênKiểuBắt buộcMô tả
idinteger
curl -X PATCH 'https://forqrcode.com/api/v1/pixels/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'
DELETE/api/v1/pixels/{id}
Xóa pixel
TênKiểuBắt buộcMô tả
idinteger
curl -X DELETE 'https://forqrcode.com/api/v1/pixels/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Tên tham số và ví dụ JSON hiển thị bằng tiếng Anh. Thay YOUR_API_KEY bằng khóa của bạn.