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 को अपनी कुंजी से बदलें।