Ссылки
GET https://qrcode.by/api/links/
curl --request GET \
--url 'https://qrcode.by/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrcode.by/api/links/' \
--header 'Authorization: Bearer {api_key}' \
| Parameters | Details | Description |
|---|---|---|
| page | Optional Integer | The page number that you want results from. Defaults to 1. |
| results_per_page | Optional Integer | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500. Defaults to 25. |
{
"data": [
{
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"date": "2020-11-15 12:00:00"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://qrcode.by/api/links?&page=1",
"last": "https://qrcode.by/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://qrcode.by/api/links?&page=1"
}
}
GET https://qrcode.by/api/links/{link_id}
curl --request GET \
--url 'https://qrcode.by/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrcode.by/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"date": "2020-11-15 12:00:00"
}
}