QR ਕੋਡ

ਲੋਗੋ, ਰੰਗ, ਸਟਾਈਲ ਅਤੇ ਸਮੱਗਰੀ ਕਿਸਮਾਂ ਨਾਲ QR ਕੋਡ ਬਣਾਓ, ਫਿਰ ਸੂਚੀਬੱਧ ਜਾਂ ਅੱਪਡੇਟ ਕਰੋ।

ਸਮਰਥਿਤ ਕਿਸਮਾਂ

type ਇਹਨਾਂ ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਇੱਕ ਦਿਓ। ਸਮੱਗਰੀ ਖੇਤਰ ਕਿਸਮ ਨਾਲ ਬਦਲਦੇ ਹਨ।

  • text
  • url
  • phone
  • sms
  • email
  • whatsapp
  • facetime
  • location
  • wifi
  • event
  • vcard
  • crypto
  • paypal
  • upi
  • epc
  • pix
POST/api/v1/qr-codes
QR ਕੋਡ ਬਣਾਓ

ਬੇਨਤੀ ਬਾਡੀ ਵਿੱਚ JSON ਭੇਜੋ। name ਅਤੇ type ਲਾਜ਼ਮੀ ਹਨ। url ਕਿਸਮਾਂ ਲਈ url ਦਿਓ। ਸਟੂਡੀਓ ਦੇ ਡਿਜ਼ਾਈਨ ਨਾਲ ਮਿਲਾਉਣ ਲਈ style, ਰੰਗ ਅਤੇ qr_code_logo ਜੋੜੋ। file ਕਿਸਮ API ਤੇ ਉਪਲਬਧ ਨਹੀਂ।

ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਡਿਫਾਲਟਵੇਰਵਾ
namestringਹਾਂਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ।
typestringਹਾਂurlਸਮੱਗਰੀ ਦੀ ਕਿਸਮ। ਸਮਰਥਿਤ QR ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਇੱਕ, file ਤੋਂ ਇਲਾਵਾ।
urlstringਨਹੀਂਮੰਜ਼ਿਲ URL। ਜਦੋਂ type url ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ।
textstringਨਹੀਂਸਾਦਾ ਪਾਠ। ਜਦੋਂ type text ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ। ਥੋਕ ਪਾਠ ਲਈ ਇਸ ਖੇਤਰ ਵਿੱਚ ਲਾਈਨਾਂ ਵੱਖ ਕਰੋ।
url_dynamicbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ, ਛੋਟਾ ਲਿੰਕ ਬਣਦਾ ਹੈ ਅਤੇ QR ਉਸ ਲਿੰਕ ਨੂੰ ਇਨਕੋਡ ਕਰਦਾ ਹੈ ਤਾਂ ਮੰਜ਼ਿਲ ਬਾਅਦ ਵਿੱਚ ਬਦਲੀ ਜਾ ਸਕੇ।
project_idintegerਨਹੀਂਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ।
is_bulkbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ ਅਤੇ type text ਹੋਵੇ, text ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ QR ਬਣਦਾ ਹੈ।
stylestringਨਹੀਂsquareਮੋਡੀਊਲ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, rounded, heart, hexagon।
inner_eye_stylestringਨਹੀਂsquareਅੰਦਰੂਨੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, circle, rounded।
outer_eye_stylestringਨਹੀਂsquareਬਾਹਰੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, circle, rounded, flower।
sizeintegerਨਹੀਂ500ਪਿਕਸਲ ਵਿੱਚ ਤਸਵੀਰ ਦਾ ਆਕਾਰ, 50–2000।
marginintegerਨਹੀਂ0ਕੁਆਇਟ-ਜ਼ੋਨ ਮੋਡੀਊਲ, 0–25।
eccstringਨਹੀਂMਗਲਤੀ ਸੁਧਾਰ: L, M, Q ਜਾਂ H। ਲੋਗੋ ਜੋੜਦੇ ਸਮੇਂ H ਵਰਤੋ।
foreground_typestringਨਹੀਂcolorcolor ਜਾਂ gradient।
foreground_colorstringਨਹੀਂ#000000HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ।
foreground_gradient_stylestringਨਹੀਂhorizontalvertical, horizontal, diagonal, inverse_diagonal ਜਾਂ radial।
foreground_gradient_onestringਨਹੀਂਪਹਿਲਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ।
foreground_gradient_twostringਨਹੀਂਦੂਜਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ।
background_colorstringਨਹੀਂ#ffffffਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ।
background_color_transparencyintegerਨਹੀਂ0ਪਿਛੋਕੜ ਪਾਰਦਰਸ਼ਤਾ, 0–100।
custom_eyes_colorbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ, ਅੱਖਾਂ eyes_inner_color ਅਤੇ eyes_outer_color ਵਰਤਦੀਆਂ ਹਨ।
eyes_inner_colorstringਨਹੀਂ#000000ਅੰਦਰੂਨੀ ਅੱਖ ਦਾ HEX ਰੰਗ।
eyes_outer_colorstringਨਹੀਂ#000000ਬਾਹਰੀ ਅੱਖ ਦਾ HEX ਰੰਗ।
qr_code_logostringਨਹੀਂਲੋਗੋ ਤਸਵੀਰ URL ਜਾਂ ਅਪਲੋਡ ਕੀਤੀ ਫਾਈਲ ਕੁੰਜੀ।
qr_code_logo_sizenumberਨਹੀਂ25QR ਦੇ ਫੀਸਦ ਵਜੋਂ ਲੋਗੋ ਆਕਾਰ, 5–40।
framestringਨਹੀਂਸਟੂਡੀਓ ਤੋਂ ਵਿਕਲਪਿਕ ਫਰੇਮ ਕੁੰਜੀ।
frame_textstringਨਹੀਂਫਰੇਮ ਤੇ ਖਿੱਚੀ ਗਈ ਸੁਰਖੀ।

ਕਿਸਮ ਅਨੁਸਾਰ ਸਮੱਗਰੀ ਖੇਤਰ

ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਡਿਫਾਲਟਵੇਰਵਾ
phonestringਨਹੀਂਜਦੋਂ type phone ਹੋਵੇ ਤਾਂ ਫੋਨ ਨੰਬਰ।
smsstringਨਹੀਂਜਦੋਂ type sms ਹੋਵੇ ਤਾਂ ਫੋਨ ਨੰਬਰ।
sms_bodystringਨਹੀਂSMS ਸੁਨੇਹੇ ਦਾ ਮੁੱਖ ਭਾਗ।
emailstringਨਹੀਂਜਦੋਂ type email ਹੋਵੇ ਤਾਂ ਪ੍ਰਾਪਤਕਰਤਾ।
email_subjectstringਨਹੀਂਈਮੇਲ ਵਿਸ਼ਾ।
email_bodystringਨਹੀਂਈਮੇਲ ਮੁੱਖ ਭਾਗ।
whatsappstringਨਹੀਂWhatsApp ਨੰਬਰ, ਸਿਰਫ਼ ਅੰਕ।
whatsapp_bodystringਨਹੀਂਪਹਿਲਾਂ ਭਰਿਆ WhatsApp ਪਾਠ।
wifi_ssidstringਨਹੀਂਜਦੋਂ type wifi ਹੋਵੇ ਤਾਂ ਨੈੱਟਵਰਕ ਨਾਮ।
wifi_passwordstringਨਹੀਂWi-Fi ਪਾਸਵਰਡ।
wifi_encryptionstringਨਹੀਂWPAnopass, WEP, WPA ਜਾਂ WPA/WPA2।
location_latitudenumberਨਹੀਂਜਦੋਂ type location ਹੋਵੇ ਤਾਂ ਵਿਥਕਾਰ।
location_longitudenumberਨਹੀਂਜਦੋਂ type location ਹੋਵੇ ਤਾਂ ਲੰਬਕਾਰ।
eventstringਨਹੀਂਜਦੋਂ type event ਹੋਵੇ ਤਾਂ ਇਵੈਂਟ ਸਿਰਲੇਖ।
event_start_datetimestringਨਹੀਂਇਵੈਂਟ ਸ਼ੁਰੂ ਲਈ ISO ਤਾਰੀਖ-ਸਮਾਂ।
vcard first_name / last_name / emailstringਨਹੀਂ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-codes
QR ਕੋਡ ਸੂਚੀ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਵੇਰਵਾ
pageintegerਨਹੀਂPage number (default 1)
results_per_pageintegerਨਹੀਂItems per page (default 25, max 100)
searchstringਨਹੀਂSearch term
search_bystringਨਹੀਂColumn to search
order_bystringਨਹੀਂSort column
order_typestringਨਹੀਂasc or desc
datetime_startstringਨਹੀਂISO datetime filter start
datetime_endstringਨਹੀਂISO datetime filter end
project_idintegerਨਹੀਂ
typestringਨਹੀਂ
curl -X GET 'https://forqrcode.com/api/v1/qr-codes' \
  -H 'Authorization: Bearer YOUR_API_KEY'
GET/api/v1/qr-codes/{id}
ਇੱਕ QR ਕੋਡ ਪੜ੍ਹੋ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਵੇਰਵਾ
idintegerਹਾਂ
curl -X GET 'https://forqrcode.com/api/v1/qr-codes/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'
PATCH/api/v1/qr-codes/{id}
QR ਕੋਡ ਅੱਪਡੇਟ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਡਿਫਾਲਟਵੇਰਵਾ
idintegerਹਾਂ
namestringਨਹੀਂਸਰੋਤ ਤੇ ਸੰਭਾਲਿਆ ਲੇਬਲ।
typestringਨਹੀਂurlਸਮੱਗਰੀ ਦੀ ਕਿਸਮ। ਸਮਰਥਿਤ QR ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਇੱਕ, file ਤੋਂ ਇਲਾਵਾ।
urlstringਨਹੀਂਮੰਜ਼ਿਲ URL। ਜਦੋਂ type url ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ।
textstringਨਹੀਂਸਾਦਾ ਪਾਠ। ਜਦੋਂ type text ਹੋਵੇ ਤਾਂ ਲਾਜ਼ਮੀ। ਥੋਕ ਪਾਠ ਲਈ ਇਸ ਖੇਤਰ ਵਿੱਚ ਲਾਈਨਾਂ ਵੱਖ ਕਰੋ।
url_dynamicbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ, ਛੋਟਾ ਲਿੰਕ ਬਣਦਾ ਹੈ ਅਤੇ QR ਉਸ ਲਿੰਕ ਨੂੰ ਇਨਕੋਡ ਕਰਦਾ ਹੈ ਤਾਂ ਮੰਜ਼ਿਲ ਬਾਅਦ ਵਿੱਚ ਬਦਲੀ ਜਾ ਸਕੇ।
project_idintegerਨਹੀਂਉਹ ਪ੍ਰੋਜੈਕਟ ਜਿਸ ਨਾਲ ਸਰੋਤ ਜੋੜਨਾ ਹੈ।
is_bulkbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ ਅਤੇ type text ਹੋਵੇ, text ਦੀ ਹਰ ਲਾਈਨ ਲਈ ਇੱਕ QR ਬਣਦਾ ਹੈ।
stylestringਨਹੀਂsquareਮੋਡੀਊਲ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, rounded, heart, hexagon।
inner_eye_stylestringਨਹੀਂsquareਅੰਦਰੂਨੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, dot, circle, rounded।
outer_eye_stylestringਨਹੀਂsquareਬਾਹਰੀ ਫਾਈਂਡਰ-ਪੈਟਰਨ ਆਕਾਰ। ਉਦਾਹਰਨਾਂ: square, circle, rounded, flower।
sizeintegerਨਹੀਂ500ਪਿਕਸਲ ਵਿੱਚ ਤਸਵੀਰ ਦਾ ਆਕਾਰ, 50–2000।
marginintegerਨਹੀਂ0ਕੁਆਇਟ-ਜ਼ੋਨ ਮੋਡੀਊਲ, 0–25।
eccstringਨਹੀਂMਗਲਤੀ ਸੁਧਾਰ: L, M, Q ਜਾਂ H। ਲੋਗੋ ਜੋੜਦੇ ਸਮੇਂ H ਵਰਤੋ।
foreground_typestringਨਹੀਂcolorcolor ਜਾਂ gradient।
foreground_colorstringਨਹੀਂ#000000HEX ਵਜੋਂ ਮੋਡੀਊਲ ਰੰਗ।
foreground_gradient_stylestringਨਹੀਂhorizontalvertical, horizontal, diagonal, inverse_diagonal ਜਾਂ radial।
foreground_gradient_onestringਨਹੀਂਪਹਿਲਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ।
foreground_gradient_twostringਨਹੀਂਦੂਜਾ ਗ੍ਰੇਡੀਐਂਟ HEX ਰੰਗ।
background_colorstringਨਹੀਂ#ffffffਪਿਛੋਕੜ HEX ਰੰਗ। ਮੋਡੀਊਲ ਤੋਂ ਹਲਕਾ ਰੱਖੋ।
background_color_transparencyintegerਨਹੀਂ0ਪਿਛੋਕੜ ਪਾਰਦਰਸ਼ਤਾ, 0–100।
custom_eyes_colorbooleanਨਹੀਂfalseਜੇ true ਹੋਵੇ, ਅੱਖਾਂ eyes_inner_color ਅਤੇ eyes_outer_color ਵਰਤਦੀਆਂ ਹਨ।
eyes_inner_colorstringਨਹੀਂ#000000ਅੰਦਰੂਨੀ ਅੱਖ ਦਾ HEX ਰੰਗ।
eyes_outer_colorstringਨਹੀਂ#000000ਬਾਹਰੀ ਅੱਖ ਦਾ HEX ਰੰਗ।
qr_code_logostringਨਹੀਂਲੋਗੋ ਤਸਵੀਰ URL ਜਾਂ ਅਪਲੋਡ ਕੀਤੀ ਫਾਈਲ ਕੁੰਜੀ।
qr_code_logo_sizenumberਨਹੀਂ25QR ਦੇ ਫੀਸਦ ਵਜੋਂ ਲੋਗੋ ਆਕਾਰ, 5–40।
framestringਨਹੀਂਸਟੂਡੀਓ ਤੋਂ ਵਿਕਲਪਿਕ ਫਰੇਮ ਕੁੰਜੀ।
frame_textstringਨਹੀਂਫਰੇਮ ਤੇ ਖਿੱਚੀ ਗਈ ਸੁਰਖੀ।

ਬੇਨਤੀ ਦੀ ਉਦਾਹਰਨ

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 ਕੋਡ ਮਿਟਾਓ
ਨਾਮਕਿਸਮਲੋੜੀਂਦਾਵੇਰਵਾ
idintegerਹਾਂ
curl -X DELETE 'https://forqrcode.com/api/v1/qr-codes/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'

ਪੈਰਾਮੀਟਰ ਨਾਮ ਅਤੇ JSON ਉਦਾਹਰਣ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਹਨ। YOUR_API_KEY ਨੂੰ ਆਪਣੀ ਕੁੰਜੀ ਨਾਲ ਬਦਲੋ।