وثائق API رموز QR

GET https://biolink.ma/api/qr-codes/
curl --request GET \
--url 'https://biolink.ma/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
المعلمات تفاصيل وصف
page اختياري عدد صحيح رقم الصفحة التي تريد النتائج منها. الافتراضي هو 1 .
results_per_page اختياري عدد صحيح كم عدد النتائج التي تريدها لكل صفحة. القيم المسموح بها هي: 10 , 25 , 50 , 100 , 250 , 500. Defaults to 25.
{
    "data": [
        {
            "id": 1,
            "type": "url",
            "name": "Example name",
            "qr_code": "https://biolink.ma/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://biolink.ma/api/qr-codes?&page=1",
        "last": "https://biolink.ma/api/qr-codes?&page=1",
        "next": null,
        "prev": null,
        "self": "https://biolink.ma/api/qr-codes?&page=1"
    }
}
GET https://biolink.ma/api/qr-codes/{qr_code_id}
curl --request GET \
--url 'https://biolink.ma/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
{
    "data": {
        "id": 1,
        "type": "url",
        "name": "Example name",
        "qr_code": "https://biolink.ma/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://biolink.ma/api/qr-codes
المعلمات تفاصيل وصف
project_id اختياري عدد صحيح -
name مطلوب سلسلة -
type مطلوب سلسلة text , url , phone , sms , email , whatsapp , facetime , location , wifi , event , crypto , vcard , paypal
style اختياري سلسلة square, dot, round
foreground_type اختياري سلسلة color, gradient
foreground_color اختياري سلسلة (foreground_type=color)
foreground_gradient_style اختياري سلسلة vertical horizontal diagonal inverse_diagonal radial (foreground_type=gradient)
foreground_gradient_one اختياري سلسلة (foreground_type=gradient)
foreground_gradient_two اختياري سلسلة (foreground_type=gradient)
background_color اختياري سلسلة
background_color_transparency اختياري عدد صحيح
custom_eyes_color اختياري قيمة منطقية
eyes_inner_color اختياري سلسلة (custom_eyes_color=1)
eyes_outer_color اختياري سلسلة (custom_eyes_color=1)
qr_code_logo اختياري طابور -
qr_code_logo_size اختياري عدد صحيح 5-35
size اختياري عدد صحيح 50-2000
margin اختياري عدد صحيح 0-25
ecc اختياري سلسلة L, M, Q, H
text اختياري سلسلة (type=text)
url اختياري سلسلة (type=url)
phone اختياري سلسلة (type=phone)
sms اختياري سلسلة (type=sms)
sms_body اختياري سلسلة (type=sms)
email اختياري سلسلة (type=email)
email_subject اختياري سلسلة (type=email)
email_body اختياري سلسلة (type=email)
whatsapp اختياري سلسلة (type=whatsapp)
whatsapp_body اختياري سلسلة (type=whatsapp)
facetime اختياري سلسلة (type=facetime)
location_latitude اختياري يطفو (type=location)
location_longitude اختياري يطفو (type=location)
wifi_ssid اختياري سلسلة (type=wifi)
wifi_encryption اختياري سلسلة nopass, WEP, WPA/WPA2 (type=wifi)
wifi_password اختياري سلسلة (type=wifi)
wifi_is_hidden اختياري قيمة منطقية (type=wifi)
event اختياري سلسلة (type=event)
event_location اختياري سلسلة (type=event)
event_url اختياري سلسلة (type=event)
event_note اختياري سلسلة (type=event)
event_timezone اختياري سلسلة (type=event)
event_start_datetime اختياري سلسلة (type=event)
event_end_datetime اختياري سلسلة (type=event)
crypto_coin اختياري سلسلة (type=crypto)
crypto_address اختياري سلسلة (type=crypto)
crypto_amount اختياري سلسلة (type=crypto)
vcard_first_name اختياري سلسلة (type=vcard)
vcard_last_name اختياري سلسلة (type=vcard)
vcard_company اختياري سلسلة (type=vcard)
vcard_phone اختياري سلسلة (type=vcard)
vcard_email اختياري سلسلة (type=vcard)
vcard_url اختياري سلسلة (type=vcard)
vcard_job_title اختياري سلسلة (type=vcard)
vcard_birthday اختياري سلسلة (type=vcard)
vcard_street اختياري سلسلة (type=vcard)
vcard_city اختياري سلسلة (type=vcard)
vcard_zip اختياري سلسلة (type=vcard)
vcard_region اختياري سلسلة (type=vcard)
vcard_country اختياري سلسلة (type=vcard)
vcard_note اختياري سلسلة (type=vcard)
vcard_social_label[index] اختياري سلسلة (type=vcard)
vcard_social_value[index] اختياري سلسلة (type=vcard)
curl --request POST \
--url 'https://biolink.ma/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://biolink.ma/api/qr-codes/{qr_code_id}
المعلمات تفاصيل وصف
project_id اختياري سلسلة -
name اختياري سلسلة -
type اختياري سلسلة text , url , phone , sms , email , whatsapp , facetime , location , wifi , event , crypto , vcard , paypal
style اختياري سلسلة square, dot, round
foreground_type اختياري سلسلة color, gradient
foreground_color اختياري سلسلة (foreground_type=color)
foreground_gradient_style اختياري سلسلة vertical horizontal diagonal inverse_diagonal radial (foreground_type=gradient)
foreground_gradient_one اختياري سلسلة (foreground_type=gradient)
foreground_gradient_two اختياري سلسلة (foreground_type=gradient)
background_color اختياري سلسلة
background_color_transparency اختياري عدد صحيح
custom_eyes_color اختياري قيمة منطقية
eyes_inner_color اختياري سلسلة (custom_eyes_color=1)
eyes_outer_color اختياري سلسلة (custom_eyes_color=1)
qr_code_logo اختياري طابور -
qr_code_logo_size اختياري عدد صحيح 5-35
size اختياري عدد صحيح 50-2000
margin اختياري عدد صحيح 0-25
ecc اختياري سلسلة L, M, Q, H
text اختياري سلسلة (type=text)
url اختياري سلسلة (type=url)
phone اختياري سلسلة (type=phone)
sms اختياري سلسلة (type=sms)
sms_body اختياري سلسلة (type=sms)
email اختياري سلسلة (type=email)
email_subject اختياري سلسلة (type=email)
email_body اختياري سلسلة (type=email)
whatsapp اختياري سلسلة (type=whatsapp)
whatsapp_body اختياري سلسلة (type=whatsapp)
facetime اختياري سلسلة (type=facetime)
location_latitude اختياري يطفو (type=location)
location_longitude اختياري يطفو (type=location)
wifi_ssid اختياري سلسلة (type=wifi)
wifi_encryption اختياري سلسلة nopass, WEP, WPA/WPA2 (type=wifi)
wifi_password اختياري سلسلة (type=wifi)
wifi_is_hidden اختياري قيمة منطقية (type=wifi)
event اختياري سلسلة (type=event)
event_location اختياري سلسلة (type=event)
event_url اختياري سلسلة (type=event)
event_note اختياري سلسلة (type=event)
event_timezone اختياري سلسلة (type=event)
event_start_datetime اختياري سلسلة (type=event)
event_end_datetime اختياري سلسلة (type=event)
crypto_coin اختياري سلسلة (type=crypto)
crypto_address اختياري سلسلة (type=crypto)
crypto_amount اختياري سلسلة (type=crypto)
vcard_first_name اختياري سلسلة (type=vcard)
vcard_last_name اختياري سلسلة (type=vcard)
vcard_company اختياري سلسلة (type=vcard)
vcard_phone اختياري سلسلة (type=vcard)
vcard_email اختياري سلسلة (type=vcard)
vcard_url اختياري سلسلة (type=vcard)
vcard_job_title اختياري سلسلة (type=vcard)
vcard_birthday اختياري سلسلة (type=vcard)
vcard_street اختياري سلسلة (type=vcard)
vcard_city اختياري سلسلة (type=vcard)
vcard_zip اختياري سلسلة (type=vcard)
vcard_region اختياري سلسلة (type=vcard)
vcard_country اختياري سلسلة (type=vcard)
vcard_note اختياري سلسلة (type=vcard)
vcard_social_label[index] اختياري سلسلة (type=vcard)
vcard_social_value[index] اختياري سلسلة (type=vcard)
curl --request POST \
--url 'https://biolink.ma/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://biolink.ma/api/qr-codes/{qr_code_id}
curl --request DELETE \
--url 'https://biolink.ma/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \