QR-koodid

GET https://tistos.com/api/qr-codes/
curl --request GET \
--url 'https://tistos.com/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
Parameetrid Üksikasjad Kirjeldus
page Valikuline Täisarv Lehekülje number, millelt soovite tulemusi. Vaikimisi 1.
results_per_page Valikuline Täisarv Kui palju tulemusi soovite lehe kohta. Lubatud väärtused on: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Vaikimisi on 25.
{ "data": [ { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://tistos.com/uploads/qr_code/example.svg", "qr_code_logo": null, "qr_code_background": 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" ... }, "embedded_data": "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://tistos.com/api/qr-codes?&page=1", "last": "https://tistos.com/api/qr-codes?&page=1", "next": null, "prev": null, "self": "https://tistos.com/api/qr-codes?&page=1" } }
GET https://tistos.com/api/qr-codes/{qr_code_id}
curl --request GET \
--url 'https://tistos.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://tistos.com/uploads/qr_code/example.svg", "qr_code_logo": null, "qr_code_background": 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" ... }, "embedded_data": "https://example.com", "last_datetime": "2021-10-31 09:47:25", "datetime": "2021-10-29 16:32:25" } }
POST https://tistos.com/api/qr-codes
Parameetrid Üksikasjad Kirjeldus
project_id Valikuline Täisarv -
name Nõutav String -
type Nõutav String Lubatud väärtused: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
is_bulk Valikuline Boolean Saadaval, kui: type = text
style Valikuline String Lubatud väärtused: square, dot, round, diamond, heart
inner_eye_style Valikuline String Lubatud väärtused: square, dot, rounded, diamond, flower, leaf
outer_eye_style Valikuline String Lubatud väärtused: square, circle, rounded, flower, leaf
foreground_type Valikuline String Lubatud väärtused: color, gradient
foreground_color Valikuline String Saadaval, kui: foreground_type = color
foreground_gradient_style Valikuline String Lubatud väärtused: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Valikuline String Saadaval, kui: foreground_type = gradient
foreground_gradient_two Valikuline String Saadaval, kui: foreground_type = gradient
background_color Valikuline String
background_color_transparency Valikuline Täisarv
custom_eyes_color Valikuline Boolean
eyes_inner_color Valikuline String Saadaval, kui: custom_eyes_color = 1
eyes_outer_color Valikuline String Saadaval, kui: custom_eyes_color = 1
qr_code_logo Valikuline Fail -
qr_code_logo_size Valikuline Täisarv 5-35
qr_code_background Valikuline Fail -
qr_code_background_transparency Valikuline Täisarv 0-100
qr_code_foreground Valikuline Fail -
qr_code_foreground_transparency Valikuline Täisarv 0-100
frame Valikuline String Lubatud väärtused: round_bottom_text, round_top_text, tooltip_bottom_text, tooltip_top_text, ribbon_bottom_text, ribbon_top_text, tooltip_snap_top_text, tooltip_snap_bottom_text
frame_text Valikuline String
frame_text_size Valikuline Täisarv -5 - 5
frame_text_font Valikuline String Lubatud väärtused: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, monaco, comic_sans_ms, impact, luminari, baskerville, papyrus, brush_script_mt
frame_custom_colors Valikuline Boolean
frame_color Valikuline String Saadaval, kui: frame_custom_colors = 1
frame_text_color Valikuline String Saadaval, kui: frame_custom_colors = 1
size Valikuline Täisarv 50-2000
margin Valikuline Täisarv 0-25
ecc Valikuline String Lubatud väärtused: L, M, Q, H
text Valikuline String Saadaval, kui: type = text
url Valikuline String Saadaval, kui: type = url
phone Valikuline String Saadaval, kui: type = phone
sms Valikuline String Saadaval, kui: type = sms
sms_body Valikuline String Saadaval, kui: type = sms
email Valikuline String Saadaval, kui: type = email
whatsapp Valikuline String Saadaval, kui: type = whatsapp
whatsapp_body Valikuline String Saadaval, kui: type = whatsapp
facetime Valikuline String Saadaval, kui: type = facetime
location
location_latitude Valikuline Ujuv Saadaval, kui: type = location
location_longitude Valikuline Ujuv Saadaval, kui: type = location
wifi
wifi_ssid Valikuline String Saadaval, kui: type = wifi
wifi_encryption Valikuline String Lubatud väärtused: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Valikuline String Saadaval, kui: type = wifi
wifi_is_hidden Valikuline Boolean Saadaval, kui: type = wifi
event Valikuline String Saadaval, kui: type = event
event_location Valikuline String Saadaval, kui: type = event
event_url Valikuline String Saadaval, kui: type = event
event_note Valikuline String Saadaval, kui: type = event
event_timezone Valikuline String Saadaval, kui: type = event
event_start_datetime Valikuline String Saadaval, kui: type = event
event_end_datetime Valikuline String Saadaval, kui: type = event
event_first_alert_datetime Valikuline String Saadaval, kui: type = event
event_second_alert_datetime Valikuline String Saadaval, kui: type = event
crypto
crypto_coin Valikuline String Saadaval, kui: type = crypto
crypto_address Valikuline String Saadaval, kui: type = crypto
crypto_amount Valikuline String Saadaval, kui: type = crypto
vcard
vcard_first_name Valikuline String Saadaval, kui: type = vcard
vcard_last_name Valikuline String Saadaval, kui: type = vcard
vcard_company Valikuline String Saadaval, kui: type = vcard
vcard_phone_number_label[index] Valikuline String Saadaval, kui: type = vcard
vcard_phone_number_value[index] Valikuline String Saadaval, kui: type = vcard
vcard_email Valikuline String Saadaval, kui: type = vcard
vcard_url Valikuline String Saadaval, kui: type = vcard
vcard_job_title Valikuline String Saadaval, kui: type = vcard
vcard_birthday Valikuline String Saadaval, kui: type = vcard
vcard_street Valikuline String Saadaval, kui: type = vcard
vcard_city Valikuline String Saadaval, kui: type = vcard
vcard_zip Valikuline String Saadaval, kui: type = vcard
vcard_region Valikuline String Saadaval, kui: type = vcard
vcard_country Valikuline String Saadaval, kui: type = vcard
vcard_note Valikuline String Saadaval, kui: type = vcard
vcard_social_label[index] Valikuline String Saadaval, kui: type = vcard
vcard_social_value[index] Valikuline String Saadaval, kui: type = vcard
paypal
paypal_type Valikuline String Lubatud väärtused: buy_now, add_to_cart, donation (type=paypal)
paypal_email Valikuline String Saadaval, kui: type = paypal
paypal_title Valikuline String Saadaval, kui: type = paypal
paypal_currency Valikuline String Saadaval, kui: type = paypal
paypal_price Valikuline Ujuv Saadaval, kui: type = paypal
paypal_thank_you_url Valikuline String Saadaval, kui: type = paypal
paypal_cancel_url Valikuline String Saadaval, kui: type = paypal
upi
upi_payee_id Valikuline String Saadaval, kui: type = upi
upi_payee_name Valikuline String Saadaval, kui: type = upi
upi_currency Valikuline String Saadaval, kui: type = upi
upi_amount Valikuline Ujuv Saadaval, kui: type = upi
upi_transaction_id Valikuline String Saadaval, kui: type = upi
upi_transaction_note Valikuline String Saadaval, kui: type = upi
upi_transaction_reference Valikuline String Saadaval, kui: type = upi
upi_thank_you_url Valikuline String Saadaval, kui: type = upi
epc
epc_iban Valikuline String Saadaval, kui: type = epc
epc_payee_name Valikuline String Saadaval, kui: type = epc
epc_currency Valikuline String Saadaval, kui: type = epc
epc_amount Valikuline Ujuv Saadaval, kui: type = epc
epc_bic Valikuline String Saadaval, kui: type = epc
epc_remittance_reference Valikuline String Saadaval, kui: type = epc
epc_remittance_text Valikuline String Saadaval, kui: type = epc
information Valikuline String Saadaval, kui: type = epc
pix
pix_payee_key Valikuline String Saadaval, kui: type = pix
pix_payee_name Valikuline String Saadaval, kui: type = pix
pix_currency Valikuline String Saadaval, kui: type = pix
pix_amount Valikuline Ujuv Saadaval, kui: type = pix
pix_city Valikuline String Saadaval, kui: type = pix
pix_transaction_id Valikuline String Saadaval, kui: type = pix
pix_description Valikuline String Saadaval, kui: type = pix
Parameetrid Üksikasjad Kirjeldus
curl --request POST \
--url 'https://tistos.com/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://tistos.com/api/qr-codes/{qr_code_id}
Parameetrid Üksikasjad Kirjeldus
project_id Valikuline String -
name Valikuline String -
type Valikuline String Lubatud väärtused: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
style Valikuline String Lubatud väärtused: square, dot, round, diamond, heart
inner_eye_style Valikuline String Lubatud väärtused: square, dot, rounded, diamond, flower, leaf
outer_eye_style Valikuline String Lubatud väärtused: square, circle, rounded, flower, leaf
foreground_type Valikuline String Lubatud väärtused: color, gradient
foreground_color Valikuline String Saadaval, kui: foreground_type = color
foreground_gradient_style Valikuline String Lubatud väärtused: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Valikuline String Saadaval, kui: foreground_type = gradient
foreground_gradient_two Valikuline String Saadaval, kui: foreground_type = gradient
background_color Valikuline String
background_color_transparency Valikuline Täisarv 0 - 100
custom_eyes_color Valikuline Boolean
eyes_inner_color Valikuline String Saadaval, kui: custom_eyes_color = 1
eyes_outer_color Valikuline String Saadaval, kui: custom_eyes_color = 1
qr_code_logo Valikuline Fail -
qr_code_logo_size Valikuline Täisarv 5-35
qr_code_background Valikuline Fail -
qr_code_background_transparency Valikuline Täisarv 0-100
qr_code_foreground Valikuline Fail -
qr_code_foreground_transparency Valikuline Täisarv 0-100
frame Valikuline String Lubatud väärtused: round_bottom_text, round_top_text, tooltip_bottom_text, tooltip_top_text, ribbon_bottom_text, ribbon_top_text, tooltip_snap_top_text, tooltip_snap_bottom_text
frame_text Valikuline String
frame_text_size Valikuline Täisarv -5 -> 5
frame_text_font Valikuline String Lubatud väärtused: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, monaco, comic_sans_ms, impact, luminari, baskerville, papyrus, brush_script_mt
frame_custom_colors Valikuline Boolean
frame_color Valikuline String Saadaval, kui: frame_custom_colors = 1
frame_text_color Valikuline String Saadaval, kui: frame_custom_colors = 1
size Valikuline Täisarv 50-2000
margin Valikuline Täisarv 0-25
ecc Valikuline String Lubatud väärtused: L, M, Q, H
text Valikuline String Saadaval, kui: type = text
url Valikuline String Saadaval, kui: type = url
phone Valikuline String Saadaval, kui: type = phone
sms Valikuline String Saadaval, kui: type = sms
sms_body Valikuline String Saadaval, kui: type = sms
email Valikuline String Saadaval, kui: type = email
whatsapp Valikuline String Saadaval, kui: type = whatsapp
whatsapp_body Valikuline String Saadaval, kui: type = whatsapp
facetime Valikuline String Saadaval, kui: type = facetime
location
location_latitude Valikuline Ujuv Saadaval, kui: type = location
location_longitude Valikuline Ujuv Saadaval, kui: type = location
wifi
wifi_ssid Valikuline String Saadaval, kui: type = wifi
wifi_encryption Valikuline String Lubatud väärtused: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Valikuline String Saadaval, kui: type = wifi
wifi_is_hidden Valikuline Boolean Saadaval, kui: type = wifi
event Valikuline String Saadaval, kui: type = event
event_location Valikuline String Saadaval, kui: type = event
event_url Valikuline String Saadaval, kui: type = event
event_note Valikuline String Saadaval, kui: type = event
event_timezone Valikuline String Saadaval, kui: type = event
event_start_datetime Valikuline String Saadaval, kui: type = event
event_end_datetime Valikuline String Saadaval, kui: type = event
event_first_alert_datetime Valikuline String Saadaval, kui: type = event
event_second_alert_datetime Valikuline String Saadaval, kui: type = event
crypto
crypto_coin Valikuline String Saadaval, kui: type = crypto
crypto_address Valikuline String Saadaval, kui: type = crypto
crypto_amount Valikuline String Saadaval, kui: type = crypto
vcard
vcard_first_name Valikuline String Saadaval, kui: type = vcard
vcard_last_name Valikuline String Saadaval, kui: type = vcard
vcard_company Valikuline String Saadaval, kui: type = vcard
vcard_phone_number_label[index] Valikuline String Saadaval, kui: type = vcard
vcard_phone_number_value[index] Valikuline String Saadaval, kui: type = vcard
vcard_email Valikuline String Saadaval, kui: type = vcard
vcard_url Valikuline String Saadaval, kui: type = vcard
vcard_job_title Valikuline String Saadaval, kui: type = vcard
vcard_birthday Valikuline String Saadaval, kui: type = vcard
vcard_street Valikuline String Saadaval, kui: type = vcard
vcard_city Valikuline String Saadaval, kui: type = vcard
vcard_zip Valikuline String Saadaval, kui: type = vcard
vcard_region Valikuline String Saadaval, kui: type = vcard
vcard_country Valikuline String Saadaval, kui: type = vcard
vcard_note Valikuline String Saadaval, kui: type = vcard
vcard_social_label[index] Valikuline String Saadaval, kui: type = vcard
vcard_social_value[index] Valikuline String Saadaval, kui: type = vcard
paypal
paypal_type Valikuline String Lubatud väärtused: buy_now, add_to_cart, donation (type=paypal)
paypal_email Valikuline String Saadaval, kui: type = paypal
paypal_title Valikuline String Saadaval, kui: type = paypal
paypal_currency Valikuline String Saadaval, kui: type = paypal
paypal_price Valikuline Ujuv Saadaval, kui: type = paypal
paypal_thank_you_url Valikuline String Saadaval, kui: type = paypal
paypal_cancel_url Valikuline String Saadaval, kui: type = paypal
upi
upi_payee_id Valikuline String Saadaval, kui: type = upi
upi_payee_name Valikuline String Saadaval, kui: type = upi
upi_currency Valikuline String Saadaval, kui: type = upi
upi_amount Valikuline Ujuv Saadaval, kui: type = upi
upi_transaction_id Valikuline String Saadaval, kui: type = upi
upi_transaction_note Valikuline String Saadaval, kui: type = upi
upi_transaction_reference Valikuline String Saadaval, kui: type = upi
upi_thank_you_url Valikuline String Saadaval, kui: type = upi
epc
epc_iban Valikuline String Saadaval, kui: type = epc
epc_payee_name Valikuline String Saadaval, kui: type = epc
epc_currency Valikuline String Saadaval, kui: type = epc
epc_amount Valikuline Ujuv Saadaval, kui: type = epc
epc_bic Valikuline String Saadaval, kui: type = epc
epc_remittance_reference Valikuline String Saadaval, kui: type = epc
epc_remittance_text Valikuline String Saadaval, kui: type = epc
information Valikuline String Saadaval, kui: type = epc
pix
pix_payee_key Valikuline String Saadaval, kui: type = pix
pix_payee_name Valikuline String Saadaval, kui: type = pix
pix_currency Valikuline String Saadaval, kui: type = pix
pix_amount Valikuline Ujuv Saadaval, kui: type = pix
pix_city Valikuline String Saadaval, kui: type = pix
pix_transaction_id Valikuline String Saadaval, kui: type = pix
pix_description Valikuline String Saadaval, kui: type = pix
curl --request POST \
--url 'https://tistos.com/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://tistos.com/api/qr-codes/{qr_code_id}
curl --request DELETE \
--url 'https://tistos.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \