QR-koder

GET https://qr-kode.no/api/qr-codes/
curl --request GET \
--url 'https://qr-kode.no/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
Parametere Detaljer Beskrivelse
page Valgfritt Heltall Sidenummeret du ønsker resultater fra. Standard er 1
results_per_page Valgfritt Heltall Hvor mange resultater du vil ha per side. Tillatte verdier er: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standard er 25.
{ "data": [ { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://qr-kode.no/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://qr-kode.no/api/qr-codes?&page=1", "last": "https://qr-kode.no/api/qr-codes?&page=1", "next": null, "prev": null, "self": "https://qr-kode.no/api/qr-codes?&page=1" } }
GET https://qr-kode.no/api/qr-codes/{qr_code_id}
curl --request GET \
--url 'https://qr-kode.no/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://qr-kode.no/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://qr-kode.no/api/qr-codes
Parametere Detaljer Beskrivelse
project_id Valgfritt Heltall -
name Obligatorisk Streng -
type Obligatorisk Streng Tillatte verdier: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
is_bulk Valgfritt Boolsk Available when: type = text
style Valgfritt Streng Tillatte verdier: square, dot, round, diamond, heart
inner_eye_style Valgfritt Streng Tillatte verdier: square, dot, rounded, diamond, flower, leaf
outer_eye_style Valgfritt Streng Tillatte verdier: square, circle, rounded, flower, leaf
foreground_type Valgfritt Streng Tillatte verdier: color, gradient
foreground_color Valgfritt Streng Available when: foreground_type = color
foreground_gradient_style Valgfritt Streng Tillatte verdier: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Valgfritt Streng Available when: foreground_type = gradient
foreground_gradient_two Valgfritt Streng Available when: foreground_type = gradient
background_color Valgfritt Streng
background_color_transparency Valgfritt Heltall
custom_eyes_color Valgfritt Boolsk
eyes_inner_color Valgfritt Streng Available when: custom_eyes_color = 1
eyes_outer_color Valgfritt Streng Available when: custom_eyes_color = 1
qr_code_logo Valgfritt Fil -
qr_code_logo_size Valgfritt Heltall 5-35
qr_code_background Valgfritt Fil -
qr_code_background_transparency Valgfritt Heltall 0-100
qr_code_foreground Valgfritt Fil -
qr_code_foreground_transparency Valgfritt Heltall 0-100
frame Valgfritt Streng Tillatte verdier: 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 Valgfritt Streng
frame_text_size Valgfritt Heltall -5 - 5
frame_text_font Valgfritt Streng Tillatte verdier: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, lucida_console, monaco, comic_sans_ms, impact
frame_custom_colors Valgfritt Boolsk
frame_color Valgfritt Streng Available when: frame_custom_colors = 1
frame_text_color Valgfritt Streng Available when: frame_custom_colors = 1
size Valgfritt Heltall 50-2000
margin Valgfritt Heltall 0-25
ecc Valgfritt Streng Tillatte verdier: L, M, Q, H
text Valgfritt Streng Available when: type = text
url Valgfritt Streng Available when: type = url
phone Valgfritt Streng Available when: type = phone
sms Valgfritt Streng Available when: type = sms
sms_body Valgfritt Streng Available when: type = sms
email Valgfritt Streng Available when: type = email
whatsapp Valgfritt Streng Available when: type = whatsapp
whatsapp_body Valgfritt Streng Available when: type = whatsapp
facetime Valgfritt Streng Available when: type = facetime
location
location_latitude Valgfritt Flyt Available when: type = location
location_longitude Valgfritt Flyt Available when: type = location
wifi
wifi_ssid Valgfritt Streng Available when: type = wifi
wifi_encryption Valgfritt Streng Tillatte verdier: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Valgfritt Streng Available when: type = wifi
wifi_is_hidden Valgfritt Boolsk Available when: type = wifi
event Valgfritt Streng Available when: type = event
event_location Valgfritt Streng Available when: type = event
event_url Valgfritt Streng Available when: type = event
event_note Valgfritt Streng Available when: type = event
event_timezone Valgfritt Streng Available when: type = event
event_start_datetime Valgfritt Streng Available when: type = event
event_end_datetime Valgfritt Streng Available when: type = event
event_first_alert_datetime Valgfritt Streng Available when: type = event
event_second_alert_datetime Valgfritt Streng Available when: type = event
crypto
crypto_coin Valgfritt Streng Available when: type = crypto
crypto_address Valgfritt Streng Available when: type = crypto
crypto_amount Valgfritt Streng Available when: type = crypto
vcard
vcard_first_name Valgfritt Streng Available when: type = vcard
vcard_last_name Valgfritt Streng Available when: type = vcard
vcard_company Valgfritt Streng Available when: type = vcard
vcard_phone_number_label[index] Valgfritt Streng Available when: type = vcard
vcard_phone_number_value[index] Valgfritt Streng Available when: type = vcard
vcard_email Valgfritt Streng Available when: type = vcard
vcard_url Valgfritt Streng Available when: type = vcard
vcard_job_title Valgfritt Streng Available when: type = vcard
vcard_birthday Valgfritt Streng Available when: type = vcard
vcard_street Valgfritt Streng Available when: type = vcard
vcard_city Valgfritt Streng Available when: type = vcard
vcard_zip Valgfritt Streng Available when: type = vcard
vcard_region Valgfritt Streng Available when: type = vcard
vcard_country Valgfritt Streng Available when: type = vcard
vcard_note Valgfritt Streng Available when: type = vcard
vcard_social_label[index] Valgfritt Streng Available when: type = vcard
vcard_social_value[index] Valgfritt Streng Available when: type = vcard
paypal
paypal_type Valgfritt Streng Tillatte verdier: buy_now, add_to_cart, donation (type=paypal)
paypal_email Valgfritt Streng Available when: type = paypal
paypal_title Valgfritt Streng Available when: type = paypal
paypal_currency Valgfritt Streng Available when: type = paypal
paypal_price Valgfritt Flyt Available when: type = paypal
paypal_thank_you_url Valgfritt Streng Available when: type = paypal
paypal_cancel_url Valgfritt Streng Available when: type = paypal
upi
upi_payee_id Valgfritt Streng Available when: type = upi
upi_payee_name Valgfritt Streng Available when: type = upi
upi_currency Valgfritt Streng Available when: type = upi
upi_amount Valgfritt Flyt Available when: type = upi
upi_transaction_id Valgfritt Streng Available when: type = upi
upi_transaction_note Valgfritt Streng Available when: type = upi
upi_transaction_reference Valgfritt Streng Available when: type = upi
upi_thank_you_url Valgfritt Streng Available when: type = upi
epc
epc_iban Valgfritt Streng Available when: type = epc
epc_payee_name Valgfritt Streng Available when: type = epc
epc_currency Valgfritt Streng Available when: type = epc
epc_amount Valgfritt Flyt Available when: type = epc
epc_bic Valgfritt Streng Available when: type = epc
epc_remittance_reference Valgfritt Streng Available when: type = epc
epc_remittance_text Valgfritt Streng Available when: type = epc
information Valgfritt Streng Available when: type = epc
pix
pix_payee_key Valgfritt Streng Available when: type = pix
pix_payee_name Valgfritt Streng Available when: type = pix
pix_currency Valgfritt Streng Available when: type = pix
pix_amount Valgfritt Flyt Available when: type = pix
pix_city Valgfritt Streng Available when: type = pix
pix_transaction_id Valgfritt Streng Available when: type = pix
pix_description Valgfritt Streng Available when: type = pix
Parametere Detaljer Beskrivelse
curl --request POST \
--url 'https://qr-kode.no/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://qr-kode.no/api/qr-codes/{qr_code_id}
Parametere Detaljer Beskrivelse
project_id Valgfritt Streng -
name Valgfritt Streng -
type Valgfritt Streng Tillatte verdier: text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
style Valgfritt Streng Tillatte verdier: square, dot, round, diamond, heart
inner_eye_style Valgfritt Streng Tillatte verdier: square, dot, rounded, diamond, flower, leaf
outer_eye_style Valgfritt Streng Tillatte verdier: square, circle, rounded, flower, leaf
foreground_type Valgfritt Streng Tillatte verdier: color, gradient
foreground_color Valgfritt Streng Available when: foreground_type = color
foreground_gradient_style Valgfritt Streng Tillatte verdier: vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one Valgfritt Streng Available when: foreground_type = gradient
foreground_gradient_two Valgfritt Streng Available when: foreground_type = gradient
background_color Valgfritt Streng
background_color_transparency Valgfritt Heltall 0 - 100
custom_eyes_color Valgfritt Boolsk
eyes_inner_color Valgfritt Streng Available when: custom_eyes_color = 1
eyes_outer_color Valgfritt Streng Available when: custom_eyes_color = 1
qr_code_logo Valgfritt Fil -
qr_code_logo_size Valgfritt Heltall 5-35
qr_code_background Valgfritt Fil -
qr_code_background_transparency Valgfritt Heltall 0-100
qr_code_foreground Valgfritt Fil -
qr_code_foreground_transparency Valgfritt Heltall 0-100
frame Valgfritt Streng Tillatte verdier: 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 Valgfritt Streng
frame_text_size Valgfritt Heltall -5 -> 5
frame_text_font Valgfritt Streng Tillatte verdier: times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, lucida_console, monaco, comic_sans_ms, impact
frame_custom_colors Valgfritt Boolsk
frame_color Valgfritt Streng Available when: frame_custom_colors = 1
frame_text_color Valgfritt Streng Available when: frame_custom_colors = 1
size Valgfritt Heltall 50-2000
margin Valgfritt Heltall 0-25
ecc Valgfritt Streng Tillatte verdier: L, M, Q, H
text Valgfritt Streng Available when: type = text
url Valgfritt Streng Available when: type = url
phone Valgfritt Streng Available when: type = phone
sms Valgfritt Streng Available when: type = sms
sms_body Valgfritt Streng Available when: type = sms
email Valgfritt Streng Available when: type = email
whatsapp Valgfritt Streng Available when: type = whatsapp
whatsapp_body Valgfritt Streng Available when: type = whatsapp
facetime Valgfritt Streng Available when: type = facetime
location
location_latitude Valgfritt Flyt Available when: type = location
location_longitude Valgfritt Flyt Available when: type = location
wifi
wifi_ssid Valgfritt Streng Available when: type = wifi
wifi_encryption Valgfritt Streng Tillatte verdier: nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password Valgfritt Streng Available when: type = wifi
wifi_is_hidden Valgfritt Boolsk Available when: type = wifi
event Valgfritt Streng Available when: type = event
event_location Valgfritt Streng Available when: type = event
event_url Valgfritt Streng Available when: type = event
event_note Valgfritt Streng Available when: type = event
event_timezone Valgfritt Streng Available when: type = event
event_start_datetime Valgfritt Streng Available when: type = event
event_end_datetime Valgfritt Streng Available when: type = event
event_first_alert_datetime Valgfritt Streng Available when: type = event
event_second_alert_datetime Valgfritt Streng Available when: type = event
crypto
crypto_coin Valgfritt Streng Available when: type = crypto
crypto_address Valgfritt Streng Available when: type = crypto
crypto_amount Valgfritt Streng Available when: type = crypto
vcard
vcard_first_name Valgfritt Streng Available when: type = vcard
vcard_last_name Valgfritt Streng Available when: type = vcard
vcard_company Valgfritt Streng Available when: type = vcard
vcard_phone_number_label[index] Valgfritt Streng Available when: type = vcard
vcard_phone_number_value[index] Valgfritt Streng Available when: type = vcard
vcard_email Valgfritt Streng Available when: type = vcard
vcard_url Valgfritt Streng Available when: type = vcard
vcard_job_title Valgfritt Streng Available when: type = vcard
vcard_birthday Valgfritt Streng Available when: type = vcard
vcard_street Valgfritt Streng Available when: type = vcard
vcard_city Valgfritt Streng Available when: type = vcard
vcard_zip Valgfritt Streng Available when: type = vcard
vcard_region Valgfritt Streng Available when: type = vcard
vcard_country Valgfritt Streng Available when: type = vcard
vcard_note Valgfritt Streng Available when: type = vcard
vcard_social_label[index] Valgfritt Streng Available when: type = vcard
vcard_social_value[index] Valgfritt Streng Available when: type = vcard
paypal
paypal_type Valgfritt Streng Tillatte verdier: buy_now, add_to_cart, donation (type=paypal)
paypal_email Valgfritt Streng Available when: type = paypal
paypal_title Valgfritt Streng Available when: type = paypal
paypal_currency Valgfritt Streng Available when: type = paypal
paypal_price Valgfritt Flyt Available when: type = paypal
paypal_thank_you_url Valgfritt Streng Available when: type = paypal
paypal_cancel_url Valgfritt Streng Available when: type = paypal
upi
upi_payee_id Valgfritt Streng Available when: type = upi
upi_payee_name Valgfritt Streng Available when: type = upi
upi_currency Valgfritt Streng Available when: type = upi
upi_amount Valgfritt Flyt Available when: type = upi
upi_transaction_id Valgfritt Streng Available when: type = upi
upi_transaction_note Valgfritt Streng Available when: type = upi
upi_transaction_reference Valgfritt Streng Available when: type = upi
upi_thank_you_url Valgfritt Streng Available when: type = upi
epc
epc_iban Valgfritt Streng Available when: type = epc
epc_payee_name Valgfritt Streng Available when: type = epc
epc_currency Valgfritt Streng Available when: type = epc
epc_amount Valgfritt Flyt Available when: type = epc
epc_bic Valgfritt Streng Available when: type = epc
epc_remittance_reference Valgfritt Streng Available when: type = epc
epc_remittance_text Valgfritt Streng Available when: type = epc
information Valgfritt Streng Available when: type = epc
pix
pix_payee_key Valgfritt Streng Available when: type = pix
pix_payee_name Valgfritt Streng Available when: type = pix
pix_currency Valgfritt Streng Available when: type = pix
pix_amount Valgfritt Flyt Available when: type = pix
pix_city Valgfritt Streng Available when: type = pix
pix_transaction_id Valgfritt Streng Available when: type = pix
pix_description Valgfritt Streng Available when: type = pix
curl --request POST \
--url 'https://qr-kode.no/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://qr-kode.no/api/qr-codes/{qr_code_id}
curl --request DELETE \
--url 'https://qr-kode.no/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \