QR ਕੋਡ
ਲੋਗੋ, ਰੰਗ, ਸਟਾਈਲ ਅਤੇ ਸਮੱਗਰੀ ਕਿਸਮਾਂ ਨਾਲ QR ਕੋਡ ਬਣਾਓ, ਫਿਰ ਸੂਚੀਬੱਧ ਜਾਂ ਅੱਪਡੇਟ ਕਰੋ।
ਸਮਰਥਿਤ ਕਿਸਮਾਂ
type ਇਹਨਾਂ ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਇੱਕ ਦਿਓ। ਸਮੱਗਰੀ ਖੇਤਰ ਕਿਸਮ ਨਾਲ ਬਦਲਦੇ ਹਨ।
- text
- url
- phone
- sms
- facetime
- location
- wifi
- event
- vcard
- crypto
- paypal
- upi
- epc
- pix
POST/api/v1/qr-codesQR ਕੋਡ ਬਣਾਓ
ਬੇਨਤੀ ਬਾਡੀ ਵਿੱਚ JSON ਭੇਜੋ। name ਅਤੇ type ਲਾਜ਼ਮੀ ਹਨ। url ਕਿਸਮਾਂ ਲਈ url ਦਿਓ। ਸਟੂਡੀਓ ਦੇ ਡਿਜ਼ਾਈਨ ਨਾਲ ਮਿਲਾਉਣ ਲਈ style, ਰੰਗ ਅਤੇ qr_code_logo ਜੋੜੋ। file ਕਿਸਮ API ਤੇ ਉਪਲਬਧ ਨਹੀਂ।
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਡਿਫਾਲਟ | ਵੇਰਵਾ |
|---|---|---|---|---|
| name | string | ਹਾਂ | — | ਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ। |
| type | string | ਹਾਂ | url | ਸਮੱਗਰੀ ਦੀ ਕਿਸਮ। ਸਮਰਥਿਤ QR ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਇੱਕ, file ਤੋਂ ਇਲਾਵਾ। |
| url | string | ਨਹੀਂ | — | ਮੰਜ਼ਿਲ URL। ਜਦੋਂ type url ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ। |
| text | string | ਨਹੀਂ | — | ਸਾਦਾ ਪਾਠ। ਜਦੋਂ type text ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ। ਥੋਕ ਪਾਠ ਲਈ ਇਸ ਖੇਤਰ ਵਿੱਚ ਲਾਈਨਾਂ ਵੱਖ ਕਰੋ। |
| url_dynamic | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, ਛੋਟਾ ਲਿੰਕ ਬਣਦਾ ਹੈ ਅਤੇ QR ਉਸ ਲਿੰਕ ਨੂੰ ਇਨਕੋਡ ਕਰਦਾ ਹੈ ਤਾਂ ਮੰਜ਼ਿਲ ਬਾਅਦ ਵਿੱਚ ਬਦਲੀ ਜਾ ਸਕੇ। |
| project_id | integer | ਨਹੀਂ | — | ਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ। |
| is_bulk | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ ਅਤੇ type text ਹੋਵੇ, text ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ QR ਬਣਦਾ ਹੈ। |
| style | string | ਨਹੀਂ | square | ਮੋਡੀਊਲ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, rounded, heart, hexagon। |
| inner_eye_style | string | ਨਹੀਂ | square | ਅੰਦਰੂਨੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, circle, rounded। |
| outer_eye_style | string | ਨਹੀਂ | square | ਬਾਹਰੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, circle, rounded, flower। |
| size | integer | ਨਹੀਂ | 500 | ਪਿਕਸਲ ਵਿੱਚ ਤਸਵੀਰ ਦਾ ਆਕਾਰ, 50–2000। |
| margin | integer | ਨਹੀਂ | 0 | ਕੁਆਇਟ-ਜ਼ੋਨ ਮੋਡੀਊਲ, 0–25। |
| ecc | string | ਨਹੀਂ | M | ਗਲਤੀ ਸੁਧਾਰ: L, M, Q ਜਾਂ H। ਲੋਗੋ ਜੋੜਦੇ ਸਮੇਂ H ਵਰਤੋ। |
| foreground_type | string | ਨਹੀਂ | color | color ਜਾਂ gradient। |
| foreground_color | string | ਨਹੀਂ | #000000 | HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ। |
| foreground_gradient_style | string | ਨਹੀਂ | horizontal | vertical, horizontal, diagonal, inverse_diagonal ਜਾਂ radial। |
| foreground_gradient_one | string | ਨਹੀਂ | — | ਪਹਿਲਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ। |
| foreground_gradient_two | string | ਨਹੀਂ | — | ਦੂਜਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ। |
| background_color | string | ਨਹੀਂ | #ffffff | ਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ। |
| background_color_transparency | integer | ਨਹੀਂ | 0 | ਪਿਛੋਕੜ ਪਾਰਦਰਸ਼ਤਾ, 0–100। |
| custom_eyes_color | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, ਅੱਖਾਂ eyes_inner_color ਅਤੇ eyes_outer_color ਵਰਤਦੀਆਂ ਹਨ। |
| eyes_inner_color | string | ਨਹੀਂ | #000000 | ਅੰਦਰੂਨੀ ਅੱਖ ਦਾ HEX ਰੰਗ। |
| eyes_outer_color | string | ਨਹੀਂ | #000000 | ਬਾਹਰੀ ਅੱਖ ਦਾ HEX ਰੰਗ। |
| qr_code_logo | string | ਨਹੀਂ | — | ਲੋਗੋ ਤਸਵੀਰ URL ਜਾਂ ਅਪਲੋਡ ਕੀਤੀ ਫਾਈਲ ਕੁੰਜੀ। |
| qr_code_logo_size | number | ਨਹੀਂ | 25 | QR ਦੇ ਫੀਸਦ ਵਜੋਂ ਲੋਗੋ ਆਕਾਰ, 5–40। |
| frame | string | ਨਹੀਂ | — | ਸਟੂਡੀਓ ਤੋਂ ਵਿਕਲਪਿਕ ਫਰੇਮ ਕੁੰਜੀ। |
| frame_text | string | ਨਹੀਂ | — | ਫਰੇਮ ਤੇ ਖਿੱਚੀ ਗਈ ਸੁਰਖੀ। |
ਕਿਸਮ ਅਨੁਸਾਰ ਸਮੱਗਰੀ ਖੇਤਰ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਡਿਫਾਲਟ | ਵੇਰਵਾ |
|---|---|---|---|---|
| phone | string | ਨਹੀਂ | — | ਜਦੋਂ type phone ਹੋਵੇ ਤਾਂ ਫੋਨ ਨੰਬਰ। |
| sms | string | ਨਹੀਂ | — | ਜਦੋਂ type sms ਹੋਵੇ ਤਾਂ ਫੋਨ ਨੰਬਰ। |
| sms_body | string | ਨਹੀਂ | — | SMS ਸੁਨੇਹੇ ਦਾ ਮੁੱਖ ਭਾਗ। |
| string | ਨਹੀਂ | — | ਜਦੋਂ type email ਹੋਵੇ ਤਾਂ ਪ੍ਰਾਪਤਕਰਤਾ। | |
| email_subject | string | ਨਹੀਂ | — | ਈਮੇਲ ਵਿਸ਼ਾ। |
| email_body | string | ਨਹੀਂ | — | ਈਮੇਲ ਮੁੱਖ ਭਾਗ। |
| string | ਨਹੀਂ | — | WhatsApp ਨੰਬਰ, ਸਿਰਫ਼ ਅੰਕ। | |
| whatsapp_body | string | ਨਹੀਂ | — | ਪਹਿਲਾਂ ਭਰਿਆ WhatsApp ਪਾਠ। |
| wifi_ssid | string | ਨਹੀਂ | — | ਜਦੋਂ type wifi ਹੋਵੇ ਤਾਂ ਨੈੱਟਵਰਕ ਨਾਮ। |
| wifi_password | string | ਨਹੀਂ | — | Wi-Fi ਪਾਸਵਰਡ। |
| wifi_encryption | string | ਨਹੀਂ | WPA | nopass, WEP, WPA ਜਾਂ WPA/WPA2। |
| location_latitude | number | ਨਹੀਂ | — | ਜਦੋਂ type location ਹੋਵੇ ਤਾਂ ਵਿਥਕਾਰ। |
| location_longitude | number | ਨਹੀਂ | — | ਜਦੋਂ type location ਹੋਵੇ ਤਾਂ ਲੰਬਕਾਰ। |
| event | string | ਨਹੀਂ | — | ਜਦੋਂ type event ਹੋਵੇ ਤਾਂ ਇਵੈਂਟ ਸਿਰਲੇਖ। |
| event_start_datetime | string | ਨਹੀਂ | — | ਇਵੈਂਟ ਸ਼ੁਰੂ ਲਈ ISO ਤਾਰੀਖ-ਸਮਾਂ। |
| vcard first_name / last_name / email | string | ਨਹੀਂ | — | vCard ਖੇਤਰ: first_name, last_name, email ਅਤੇ ਹੋਰ ਸਟੂਡੀਓ ਕੁੰਜੀਆਂ। |
ਬੇਨਤੀ ਦੀ ਉਦਾਹਰਨ
curl -X POST 'https://forqrcode.com/api/v1/qr-codes' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Website QR",
"type": "url",
"url": "https://forqrcode.com",
"style": "rounded",
"size": 500,
"ecc": "M",
"foreground_color": "#17191c",
"background_color": "#ffffff",
"qr_code_logo": "https://forqrcode.com/logo.png",
"qr_code_logo_size": 25
}'ਹੋਰ ਉਦਾਹਰਨਾਂ
ਗ੍ਰੇਡੀਐਂਟ QR
curl -X POST 'https://forqrcode.com/api/v1/qr-codes' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Gradient QR",
"type": "url",
"url": "https://forqrcode.com",
"style": "dot",
"inner_eye_style": "circle",
"outer_eye_style": "rounded",
"foreground_type": "gradient",
"foreground_gradient_style": "radial",
"foreground_gradient_one": "#5c8b29",
"foreground_gradient_two": "#25492f",
"background_color": "#ffffff",
"size": 600
}'Wi-Fi QR
curl -X POST 'https://forqrcode.com/api/v1/qr-codes' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Office Wi-Fi",
"type": "wifi",
"wifi_ssid": "Guest",
"wifi_password": "correct-horse",
"wifi_encryption": "WPA",
"style": "square",
"ecc": "H"
}'ਜਵਾਬ ਉਦਾਹਰਣ
{
"data": {
"id": 1,
"type": "url",
"name": "Website QR",
"qr_code": "https://…/qr-codes/…/qr.svg",
"settings": {
"style": "rounded",
"size": 500,
"ecc": "M"
}
}
}GET/api/v1/qr-codesQR ਕੋਡ ਸੂਚੀ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਵੇਰਵਾ |
|---|---|---|---|
| page | integer | ਨਹੀਂ | Page number (default 1) |
| results_per_page | integer | ਨਹੀਂ | Items per page (default 25, max 100) |
| search | string | ਨਹੀਂ | Search term |
| search_by | string | ਨਹੀਂ | Column to search |
| order_by | string | ਨਹੀਂ | Sort column |
| order_type | string | ਨਹੀਂ | asc or desc |
| datetime_start | string | ਨਹੀਂ | ISO datetime filter start |
| datetime_end | string | ਨਹੀਂ | ISO datetime filter end |
| project_id | integer | ਨਹੀਂ | — |
| type | string | ਨਹੀਂ | — |
curl -X GET 'https://forqrcode.com/api/v1/qr-codes' \ -H 'Authorization: Bearer YOUR_API_KEY'
GET/api/v1/qr-codes/{id}ਇੱਕ QR ਕੋਡ ਪੜ੍ਹੋ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਵੇਰਵਾ |
|---|---|---|---|
| id | integer | ਹਾਂ | — |
curl -X GET 'https://forqrcode.com/api/v1/qr-codes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY'PATCH/api/v1/qr-codes/{id}QR ਕੋਡ ਅੱਪਡੇਟ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਡਿਫਾਲਟ | ਵੇਰਵਾ |
|---|---|---|---|---|
| id | integer | ਹਾਂ | — | — |
| name | string | ਨਹੀਂ | — | ਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ। |
| type | string | ਨਹੀਂ | url | ਸਮੱਗਰੀ ਦੀ ਕਿਸਮ। ਸਮਰਥਿਤ QR ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਇੱਕ, file ਤੋਂ ਇਲਾਵਾ। |
| url | string | ਨਹੀਂ | — | ਮੰਜ਼ਿਲ URL। ਜਦੋਂ type url ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ। |
| text | string | ਨਹੀਂ | — | ਸਾਦਾ ਪਾਠ। ਜਦੋਂ type text ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ। ਥੋਕ ਪਾਠ ਲਈ ਇਸ ਖੇਤਰ ਵਿੱਚ ਲਾਈਨਾਂ ਵੱਖ ਕਰੋ। |
| url_dynamic | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, ਛੋਟਾ ਲਿੰਕ ਬਣਦਾ ਹੈ ਅਤੇ QR ਉਸ ਲਿੰਕ ਨੂੰ ਇਨਕੋਡ ਕਰਦਾ ਹੈ ਤਾਂ ਮੰਜ਼ਿਲ ਬਾਅਦ ਵਿੱਚ ਬਦਲੀ ਜਾ ਸਕੇ। |
| project_id | integer | ਨਹੀਂ | — | ਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ। |
| is_bulk | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ ਅਤੇ type text ਹੋਵੇ, text ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ QR ਬਣਦਾ ਹੈ। |
| style | string | ਨਹੀਂ | square | ਮੋਡੀਊਲ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, rounded, heart, hexagon। |
| inner_eye_style | string | ਨਹੀਂ | square | ਅੰਦਰੂਨੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, circle, rounded। |
| outer_eye_style | string | ਨਹੀਂ | square | ਬਾਹਰੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, circle, rounded, flower। |
| size | integer | ਨਹੀਂ | 500 | ਪਿਕਸਲ ਵਿੱਚ ਤਸਵੀਰ ਦਾ ਆਕਾਰ, 50–2000। |
| margin | integer | ਨਹੀਂ | 0 | ਕੁਆਇਟ-ਜ਼ੋਨ ਮੋਡੀਊਲ, 0–25। |
| ecc | string | ਨਹੀਂ | M | ਗਲਤੀ ਸੁਧਾਰ: L, M, Q ਜਾਂ H। ਲੋਗੋ ਜੋੜਦੇ ਸਮੇਂ H ਵਰਤੋ। |
| foreground_type | string | ਨਹੀਂ | color | color ਜਾਂ gradient। |
| foreground_color | string | ਨਹੀਂ | #000000 | HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ। |
| foreground_gradient_style | string | ਨਹੀਂ | horizontal | vertical, horizontal, diagonal, inverse_diagonal ਜਾਂ radial। |
| foreground_gradient_one | string | ਨਹੀਂ | — | ਪਹਿਲਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ। |
| foreground_gradient_two | string | ਨਹੀਂ | — | ਦੂਜਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ। |
| background_color | string | ਨਹੀਂ | #ffffff | ਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ। |
| background_color_transparency | integer | ਨਹੀਂ | 0 | ਪਿਛੋਕੜ ਪਾਰਦਰਸ਼ਤਾ, 0–100। |
| custom_eyes_color | boolean | ਨਹੀਂ | false | ਜੇ true ਹੋਵੇ, ਅੱਖਾਂ eyes_inner_color ਅਤੇ eyes_outer_color ਵਰਤਦੀਆਂ ਹਨ। |
| eyes_inner_color | string | ਨਹੀਂ | #000000 | ਅੰਦਰੂਨੀ ਅੱਖ ਦਾ HEX ਰੰਗ। |
| eyes_outer_color | string | ਨਹੀਂ | #000000 | ਬਾਹਰੀ ਅੱਖ ਦਾ HEX ਰੰਗ। |
| qr_code_logo | string | ਨਹੀਂ | — | ਲੋਗੋ ਤਸਵੀਰ URL ਜਾਂ ਅਪਲੋਡ ਕੀਤੀ ਫਾਈਲ ਕੁੰਜੀ। |
| qr_code_logo_size | number | ਨਹੀਂ | 25 | QR ਦੇ ਫੀਸਦ ਵਜੋਂ ਲੋਗੋ ਆਕਾਰ, 5–40। |
| frame | string | ਨਹੀਂ | — | ਸਟੂਡੀਓ ਤੋਂ ਵਿਕਲਪਿਕ ਫਰੇਮ ਕੁੰਜੀ। |
| frame_text | string | ਨਹੀਂ | — | ਫਰੇਮ ਤੇ ਖਿੱਚੀ ਗਈ ਸੁਰਖੀ। |
ਬੇਨਤੀ ਦੀ ਉਦਾਹਰਨ
curl -X PATCH 'https://forqrcode.com/api/v1/qr-codes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://forqrcode.com/pricing",
"foreground_color": "#5d2a1a"
}'DELETE/api/v1/qr-codes/{id}QR ਕੋਡ ਮਿਟਾਓ
| ਨਾਮ | ਕਿਸਮ | ਲੋੜੀਂਦਾ | ਵੇਰਵਾ |
|---|---|---|---|
| id | integer | ਹਾਂ | — |
curl -X DELETE 'https://forqrcode.com/api/v1/qr-codes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY'ਪੈਰਾਮੀਟਰ ਨਾਮ ਅਤੇ JSON ਉਦਾਹਰਣ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਹਨ। YOUR_API_KEY ਨੂੰ ਆਪਣੀ ਕੁੰਜੀ ਨਾਲ ਬਦਲੋ।