Codes QR
GET https://kloo.me/api/qr-codes/
curl --request GET \
--url 'https://kloo.me/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kloo.me/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
| Paramètres | Détails | Description |
|---|---|---|
| page | En option Entier | Le numéro de page à partir duquel vous voulez obtenir des résultats. La valeur par défaut est 1. |
| results_per_page | En option Entier | Combien de résultats vous souhaitez obtenir par page. Les valeurs autorisées sont : 10 , 25 , 50 , 100 , 250 , 500. La valeur par défaut est 25. |
{
"data": [
{
"id": 1,
"type": "url",
"name": "Example name",
"qr_code": "https://kloo.me/uploads/qr_code/example.svg",
"qr_code_logo": null,
"settings": {
"foreground_type": "color",
"foreground_color": "#000000",
"background_color": "#ffffff",
"custom_eyes_color": false,
"qr_code_logo_size": 25,
"size": 500,
"margin": 0,
"ecc": "L",
"url": "https://example.com"
},
"last_datetime": "2021-10-31 09:47:25",
"datetime": "2021-10-29 16:32:25"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://kloo.me/api/qr-codes?&page=1",
"last": "https://kloo.me/api/qr-codes?&page=1",
"next": null,
"prev": null,
"self": "https://kloo.me/api/qr-codes?&page=1"
}
}
GET https://kloo.me/api/qr-codes/{qr_code_id}
curl --request GET \
--url 'https://kloo.me/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kloo.me/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "url",
"name": "Example name",
"qr_code": "https://kloo.me/uploads/qr_code/example.svg",
"qr_code_logo": null,
"settings": {
"foreground_type": "color",
"foreground_color": "#000000",
"background_color": "#ffffff",
"custom_eyes_color": false,
"qr_code_logo_size": 25,
"size": 500,
"margin": 0,
"ecc": "L",
"url": "https://example.com"
},
"last_datetime": "2021-10-31 09:47:25",
"datetime": "2021-10-29 16:32:25"
}
}
POST https://kloo.me/api/qr-codes
| Paramètres | Détails | Description |
|---|---|---|
| project_id | En option Entier | - |
| name | Requis Chaîne de caractères | - |
| type | Requis Chaîne de caractères | text , url , phone , sms , email , whatsapp , facetime , location , wifi , event , crypto , vcard , paypal |
| foreground_type | En option Chaîne de caractères | color, gradient |
| foreground_color | En option Chaîne de caractères | (foreground_type=color) |
| foreground_gradient_style | En option Chaîne de caractères | vertical horizontal diagonal inverse_diagonal radial (foreground_type=gradient) |
| foreground_gradient_one | En option Chaîne de caractères | (foreground_type=gradient) |
| foreground_gradient_two | En option Chaîne de caractères | (foreground_type=gradient) |
| background_color | En option Chaîne de caractères | |
| background_color_transparency | En option Entier | |
| custom_eyes_color | En option Booléen | |
| eyes_inner_color | En option Chaîne de caractères | (custom_eyes_color=1) |
| eyes_outer_color | En option Chaîne de caractères | (custom_eyes_color=1) |
| qr_code_logo | En option Fichier | - |
| qr_code_logo_size | En option Entier | 5-35 |
| size | En option Entier | 50-2000 |
| margin | En option Entier | 0-25 |
| ecc | En option Chaîne de caractères | L, M, Q, H |
| text | En option Chaîne de caractères | (type=text) |
| url | En option Chaîne de caractères | (type=url) |
| phone | En option Chaîne de caractères | (type=phone) |
| sms | En option Chaîne de caractères | (type=sms) |
| En option Chaîne de caractères | (type=email) | |
| email_subject | En option Chaîne de caractères | (type=email) |
| email_body | En option Chaîne de caractères | (type=email) |
| En option Chaîne de caractères | (type=whatsapp) | |
| facetime | En option Chaîne de caractères | (type=facetime) |
| location_latitude | En option Flotteur | (type=location) |
| location_longitude | En option Flotteur | (type=location) |
| wifi_ssid | En option Chaîne de caractères | (type=wifi) |
| wifi_encryption | En option Chaîne de caractères | nopass, WEP, WPA/WPA2 (type=wifi) |
| wifi_password | En option Chaîne de caractères | (type=wifi) |
| wifi_is_hidden | En option Booléen | (type=wifi) |
| event | En option Chaîne de caractères | (type=event) |
| event_location | En option Chaîne de caractères | (type=event) |
| event_url | En option Chaîne de caractères | (type=event) |
| event_note | En option Chaîne de caractères | (type=event) |
| event_timezone | En option Chaîne de caractères | (type=event) |
| event_start_datetime | En option Chaîne de caractères | (type=event) |
| event_end_datetime | En option Chaîne de caractères | (type=event) |
| crypto_coin | En option Chaîne de caractères | (type=crypto) |
| crypto_address | En option Chaîne de caractères | (type=crypto) |
| crypto_amount | En option Chaîne de caractères | (type=crypto) |
| vcard_first_name | En option Chaîne de caractères | (type=vcard) |
| vcard_last_name | En option Chaîne de caractères | (type=vcard) |
| vcard_phone | En option Chaîne de caractères | (type=vcard) |
| vcard_email | En option Chaîne de caractères | (type=vcard) |
| vcard_url | En option Chaîne de caractères | (type=vcard) |
| vcard_job_title | En option Chaîne de caractères | (type=vcard) |
| vcard_birthday | En option Chaîne de caractères | (type=vcard) |
| vcard_street | En option Chaîne de caractères | (type=vcard) |
| vcard_city | En option Chaîne de caractères | (type=vcard) |
| vcard_zip | En option Chaîne de caractères | (type=vcard) |
| vcard_region | En option Chaîne de caractères | (type=vcard) |
| vcard_country | En option Chaîne de caractères | (type=vcard) |
| vcard_note | En option Chaîne de caractères | (type=vcard) |
| vcard_social_label[index] | En option Chaîne de caractères | (type=vcard) |
| vcard_social_value[index] | En option Chaîne de caractères | (type=vcard) |
curl --request POST \
--url 'https://kloo.me/api/qr-codes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=New York' \
--form 'type=text' \
--form 'text=Hello!' \
--url 'https://kloo.me/api/qr-codes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=New York' \
--form 'type=text' \
--form 'text=Hello!' \
{
"data": {
"id": 1
}
}
POST https://kloo.me/api/qr-codes/{qr_code_id}
| Paramètres | Détails | Description |
|---|---|---|
| project_id | En option Chaîne de caractères | - |
| name | En option Chaîne de caractères | - |
| type | En option Chaîne de caractères | text , url , phone , sms , email , whatsapp , facetime , location , wifi , event , crypto , vcard , paypal |
| foreground_type | En option Chaîne de caractères | color, gradient |
| foreground_color | En option Chaîne de caractères | (foreground_type=color) |
| foreground_gradient_style | En option Chaîne de caractères | vertical horizontal diagonal inverse_diagonal radial (foreground_type=gradient) |
| foreground_gradient_one | En option Chaîne de caractères | (foreground_type=gradient) |
| foreground_gradient_two | En option Chaîne de caractères | (foreground_type=gradient) |
| background_color | En option Chaîne de caractères | |
| background_color_transparency | En option Entier | |
| custom_eyes_color | En option Booléen | |
| eyes_inner_color | En option Chaîne de caractères | (custom_eyes_color=1) |
| eyes_outer_color | En option Chaîne de caractères | (custom_eyes_color=1) |
| qr_code_logo | En option Fichier | - |
| qr_code_logo_size | En option Entier | 5-35 |
| size | En option Entier | 50-2000 |
| margin | En option Entier | 0-25 |
| ecc | En option Chaîne de caractères | L, M, Q, H |
| text | En option Chaîne de caractères | (type=text) |
| url | En option Chaîne de caractères | (type=url) |
| phone | En option Chaîne de caractères | (type=phone) |
| sms | En option Chaîne de caractères | (type=sms) |
| En option Chaîne de caractères | (type=email) | |
| email_subject | En option Chaîne de caractères | (type=email) |
| email_body | En option Chaîne de caractères | (type=email) |
| En option Chaîne de caractères | (type=whatsapp) | |
| facetime | En option Chaîne de caractères | (type=facetime) |
| location_latitude | En option Flotteur | (type=location) |
| location_longitude | En option Flotteur | (type=location) |
| wifi_ssid | En option Chaîne de caractères | (type=wifi) |
| wifi_encryption | En option Chaîne de caractères | nopass, WEP, WPA/WPA2 (type=wifi) |
| wifi_password | En option Chaîne de caractères | (type=wifi) |
| wifi_is_hidden | En option Booléen | (type=wifi) |
| event | En option Chaîne de caractères | (type=event) |
| event_location | En option Chaîne de caractères | (type=event) |
| event_url | En option Chaîne de caractères | (type=event) |
| event_note | En option Chaîne de caractères | (type=event) |
| event_timezone | En option Chaîne de caractères | (type=event) |
| event_start_datetime | En option Chaîne de caractères | (type=event) |
| event_end_datetime | En option Chaîne de caractères | (type=event) |
| crypto_coin | En option Chaîne de caractères | (type=crypto) |
| crypto_address | En option Chaîne de caractères | (type=crypto) |
| crypto_amount | En option Chaîne de caractères | (type=crypto) |
| vcard_first_name | En option Chaîne de caractères | (type=vcard) |
| vcard_last_name | En option Chaîne de caractères | (type=vcard) |
| vcard_phone | En option Chaîne de caractères | (type=vcard) |
| vcard_email | En option Chaîne de caractères | (type=vcard) |
| vcard_url | En option Chaîne de caractères | (type=vcard) |
| vcard_job_title | En option Chaîne de caractères | (type=vcard) |
| vcard_birthday | En option Chaîne de caractères | (type=vcard) |
| vcard_street | En option Chaîne de caractères | (type=vcard) |
| vcard_city | En option Chaîne de caractères | (type=vcard) |
| vcard_zip | En option Chaîne de caractères | (type=vcard) |
| vcard_region | En option Chaîne de caractères | (type=vcard) |
| vcard_country | En option Chaîne de caractères | (type=vcard) |
| vcard_note | En option Chaîne de caractères | (type=vcard) |
| vcard_social_label[index] | En option Chaîne de caractères | (type=vcard) |
| vcard_social_value[index] | En option Chaîne de caractères | (type=vcard) |
curl --request POST \
--url 'https://kloo.me/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
--url 'https://kloo.me/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{
"data": {
"id": 1
}
}
DELETE https://kloo.me/api/qr-codes/{qr_code_id}
curl --request DELETE \
--url 'https://kloo.me/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kloo.me/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \