Dowell QR Code Generator API

Simplify Your QR Code Generation with Dowell’s API

QR Code Generation API

Dowell QR Code Generator API

Dowell QR Code Generator API involves the creation of QR codes through an API. QR codes are two-dimensional barcodes that can store data such as URLs and other types of information.
To use this API, clients can send HTTP requests to create, retrieve, update, or delete QR codes. The API supports the creation of QR codes with various options such as custom colors, logos, and sizes

Key Features

qr-code (1)

QRCode Generation

Supports creation of QR codes with various options such as custom colors, logos, and sizes.

qr-code

QRCode Retrieval

Returns the details of a QR code, including qrcode_id, qrcode_image_url, logo_url, logo_size, qrcode_color, link, company_id, product_name, created_by, description, and is_active.

update

QrCode Update

Updates various properties of a QR code such as the company ID, QR code image URL, logo URL, logo size, QR code color, link, product name, created by, description, and is_active status.

How Does it Work?

Authentication: Users authenticate themselves with the API by obtaining an API key or using OAuth tokens for secure access.

Request Creation: Users make an HTTP request to the API endpoint, specifying the data they want to encode into the QR code. This can include URLs, text, contact information, etc.

Customization (Optional): Users can include additional parameters in the request to customize the appearance of the QR code. This may include options such as color, size, error correction level, and even adding a logo or image to the center of the QR code.

API Processing: The API processes the request and generates a QR code based on the provided data and customization options. It encodes the data into a two-dimensional barcode format suitable for scanning

Response Retrieval: Once the QR code is generated, the API returns a response to the user, typically containing the image data of the QR code in a suitable format such as PNG or SVG.

Usage: Users can now utilize the generated QR code in various ways according to their needs.

Scanning: End-users scan the QR code using a smartphone or QR code scanner application. This decodes the information encoded in the QR code, redirecting users to the specified URL, displaying text, adding contact details, etc.

Benefits of Using the QR Code Generation API

  • Customization Options: Dowell QR Code Generator API offers extensive customization options including custom colors, logos, and sizes, allowing users to create unique and branded QR codes tailored to their specific needs.
  • Ease of Integration: With simple HTTP requests, clients can seamlessly integrate the API into their applications or websites, saving time and effort in development and implementation.

  • Versatility: The API supports the creation of QR codes capable of storing various types of information such as URLs, text, contact details, and more, catering to a wide range of use cases and applications.

  • Reliability: Dowell QR Code Generator API ensures reliable performance and uptime, providing users with a dependable solution for generating QR codes whenever needed without interruptions.

  • Scalability: Whether generating a few QR codes or thousands, the API scales effortlessly to accommodate varying workloads, ensuring consistent performance regardless of the volume of requests.

  • Comprehensive Documentation and Support: Dowell provides comprehensive documentation and support resources, making it easy for users to understand and implement the API effectively, reducing learning curves and facilitating smooth usage.

Dowell QR Code Generator API

Postman Documentation

For detailed API documentation, including endpoint descriptions, request and response examples, and authentication details, please refer to the API documentation

Dowell QR Code Generator API Demonstrative Scenarios

In the following scenarios, Dowell will furnish comprehensive instructions on obtaining the Service key and guide you through the steps to use the Dowell QR Code Generator API. You’ll find examples in various formats such as Python, PHP, React, Flutter, and WordPress in the tabs below. Feel free to explore the examples in each tab for practical insights.

Dowell QR Code Generation API Use Cases

Discover how our QR Code API revolutionizes various industries! From simplifying campus management to optimizing retail inventory, streamlining event ticketing, boosting digital marketing efforts, and enhancing asset tracking in logistics. Dive into our video showcasing real-world applications and unlock the power of seamless QR code integration.

Frequently Asked Questions (FAQs) about Dowell QR Code Generator API

Yes, the API allows customization of QR code appearance, including colors, logos, and sizes, to suit your branding or aesthetic preferences.

By making a request to the QR code retrieval endpoint of the API, you can obtain details such as QR code ID, image URL, logo URL, colors, associated link, and more.

Dowell QR Code Generator API doesn’t specify limitations on the number of QR codes that can be generated. However, it’s advisable to review their terms of service or contact support for any usage restrictions.

Yes, the API can be integrated into various platforms and frameworks using HTTP requests. Examples in languages like Python, PHP, React, Flutter, and WordPress are provided for guidance.

The API documentation should provide details on authentication requirements. Typically, APIs may use methods like API key for authentication.

Dynamic QR codes, which allow for updating the encoded information without changing the QR code itself, may be supported depending on the capabilities of the API. Review the documentation or contact support for more information.

Dowell provides comprehensive documentation for the API, including endpoint descriptions, request and response examples, and authentication details. If you need further assistance or encounter issues, you can contact their support team for help. Dowell@dowellresearch.uk 

Yes, comprehensive API documentation is provided by Dowell, detailing available endpoints, request parameters, response formats, and authentication details.

The Dowell QR Code Generator API currently does not support batch processing for generating multiple QR codes at once. Each QR code must be generated individually.

Dowell UX Living Lab offers a wide range of APIs to enhance user experience and streamline various processes. To explore the full list of APIs available, including Dowell Email, Dowell Newsletter, Samanta Content Evaluator, and many more.

For more details and to explore the complete list of APIs provided by Dowell UX Living Lab, please visit our documentation page.

How To Get The API Key

  • Access the Dowellstore website through this link: https://dowellstore.org and login. Once on the website, navigate to the API service section and activate the Dowell QR Code Generator API service. The API Key you need can be found in the dashboard, provided there as the service key. For more information follow the instructions in the videos found at the link below.
    [How to get API key and redeem your voucher Step-by-Step Tutorial]
  • You can also find a step-by-step guide on how to get the API key and activate the API(s) by following this link Get The Service Key
  • Then set the API KEY as part of the url parameter as shown below. Replace with your actual API key. The URL format: https://www.qrcodereviews.uxlivinglab.online/api/v2/qr-code/
  • Note: Make sure to activate your API from Dowell API Key System link provided above.
how to activate qr code generator api

Python Example

1. How To Create Qrcodes​

This Python code sends a POST request to create a QR code using specified data and API key, then prints the JSON response.

				
					import requests

url = 'https://www.qrcodereviews.uxlivinglab.online/api/v2/qr-code/'

params = {
    'api_key': ''
}

payload = {
    'qrcode_type': 'Link',
    'quantity': '1',
    'company_id': 'discord',
    'link': 'https://discord.com',
    'description': 'This is discord.',
    'created_by': 'pablo'
}

response = requests.post(url, data=payload, params=params)

print(response.json())

				
			

2. How to get QR codes

This Python code makes a GET request to retrieve information about a QR code from a specified URL, using an API key. It checks the response for a successful status code (200) and returns the JSON response, or prints an error message if the request fails.

				
					import requests

url = 'https://www.qrcodereviews.uxlivinglab.online/api/v2/qr-code/'
params = {
    'api_key': 'your-api-key'
}

response = requests.get(url, params=params)

# Check if the request was successful (status code 200)
if response.status_code == 200:
    json_response = response.json()
    return json_response
else:
    print(f"Request failed with status code: {response.status_code}")

				
			

3. How to update QR Code

This Python code sends a PUT request to update a QR code with specified data and API key, then checks the response for a successful status code (200). It returns the JSON response if successful or prints an error message if the request fails.

				
					import requests

qrcode_id = 13124568296138084846
url = f'https://www.qrcodereviews.uxlivinglab.online/api/v2/update-qr-code/{qrcode_id}/'
params = {
    'api_key': ''
}

payload = {
    'company_id': 'Test1',
    'created_by': 'pablo',
    'qrcode_color': '#ff0000',
    'link': 'https://lenovo.com',
    'description': 'This is a qrcode'
}


response = requests.put(url, data=payload, params=params)

# Check if the request was successful (status code 200)
if response.status_code == 200:
    json_response = response.json()
    return json_response
else:
    print(f"Request failed with status code: {response.status_code}")

				
			

4. How to Get Single QR Code By Id

This Python code makes a GET request to retrieve information about a specific QR code identified by its ID. It checks the response for a successful status code (200) and returns the JSON response if successful, or prints an error message if the request fails.

				
					import requests

qrcode_id = 13124568296138084846
url = f'https://www.qrcodereviews.uxlivinglab.online/api/v2/update-qr-code/{qrcode_id}/'

response = requests.get(url)

# Check if the request was successful (status code 200)
if response.status_code == 200:
    json_response = response.json()
    return json_response
else:
    print(f"Request failed with status code: {response.status_code}")

				
			

PHP Example

1. How to Create QR Codes

The PHP code uses cURL to send a POST request with parameters and payload to a URL, then prints and decodes the JSON response.​

				
					 ''
);

$payload = array(
    'qrcode_type' => 'Link',
    'quantity' => '1',
    'company_id' => 'discord',
    'link' => 'https://discord.com',
    'description' => 'This is discord.',
    'created_by' => 'pablo'
);

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Add the API key as a query parameter
$urlWithParams = $url . '?' . http_build_query($params);
curl_setopt($ch, CURLOPT_URL, $urlWithParams);

$response = curl_exec($ch);

if ($response === false) {
    echo 'cURL error: ' . curl_error($ch);
}

curl_close($ch);

// Decode the JSON response
$jsonResponse = json_decode($response, true);

if ($jsonResponse === null) {
    echo 'Error decoding JSON response';
} else {
    print_r($jsonResponse);
}

				
			

2. How to Get QR Codes

The PHP code uses cURL to send a GET request to the specified URL with parameters. It includes the API key in the query string. After executing the request, it checks the response for a successful status code (200) and prints the JSON response. If the request fails, it prints an error message.​

				
					$ch = curl_init($url);

// Add the API key as a query parameter
$urlWithParams = $url . '?' . http_build_query($params);
curl_setopt($ch, CURLOPT_URL, $urlWithParams);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

if ($response === false) {
    echo 'cURL error: ' . curl_error($ch);
}

curl_close($ch);

// Check if the request was successful
if (strpos($response, '{"status":200') !== false) {
    $json_response = json_decode($response, true);
    print_r($json_response);
} else {
    echo 'Request failed with status code: ' . $http_status;
}

				
			

3. How to update QR Code.

The PHP code uses cURL to send a PUT request to update a QR code with the specified parameters and payload. It checks the response for a successful status code (200) and prints the JSON response. If the request fails, it prints an error message.​

				
					$payload = array(
    'company_id' => 'Test1',
    'created_by' => 'pablo',
    'qrcode_color' => '#ff0000',
    'link' => 'https://lenovo.com',
    'description' => 'This is a qrcode'
);

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Add the API key as a query parameter
$urlWithParams = $url . '?' . http_build_query($params);
curl_setopt($ch, CURLOPT_URL, $urlWithParams);

$response = curl_exec($ch);

if ($response === false) {
    echo 'cURL error: ' . curl_error($ch);
}

curl_close($ch);

// Check if the request was successful
if (strpos($response, '{"status":200') !== false) {
    $json_response = json_decode($response, true);
    print_r($json_response);
} else {
    echo 'Request failed with status code: ' . $http_status;
}

				
			

4. How to Get Single QR Code By Id

This PHP code uses cURL to send a GET request to a specific URL to retrieve information about a QR code. It checks the response for a successful status code (200) and prints the JSON response. If the request fails, it prints an error message.​

				
					$qrcode_id = 13124568296138084846;
$url = 'https://www.qrcodereviews.uxlivinglab.online/api/v2/update-qr-code/' . $qrcode_id . '/';

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

if ($response === false) {
    echo 'cURL error: ' . curl_error($ch);
}

curl_close($ch);

// Check if the request was successful
if (strpos($response, '{"status":200') !== false) {
    $json_response = json_decode($response, true);
    print_r($json_response);
} else {
    echo 'Request failed with status code: ' . $http_status;
}


				
			

React Example

1. How to Create QR Codes

This React code defines a functional component App that creates QR codes using a form. It allows users to upload an image (logo), specify details such as company ID, creator, color, link, and description. The component sends a POST request to a specific URL with the form data using Axios when the form is submitted. Successful and failed responses are logged to the console. It also handles input changes and file uploads using state and event handlers. Don’t forget to replace '<your-api-key>' with your actual API key.

				
					import React, { useState } from 'react';
import axios from 'axios';

function App() {
  const [file, setFile] = useState(null);
  const [company_id, setCompanyID] = useState('');
  const [created_by, setCreatedBy] = useState('');
  const [qrcode_color, setQRCodeColor] = useState('');
  const [link, setLink] = useState('');
  const [description, setDescription] = useState('');

  const handleFileChange = (e) =&gt; {
    setFile(e.target.files[0]);
  };

  const handleFormSubmit = (e) =&gt; {
    e.preventDefault();

    const formData = new FormData();
    formData.append('company_id', company_id);
    formData.append('created_by', created_by);
    formData.append('qrcode_color', qrcode_color);
    formData.append('link', link);
    formData.append('description', description);
    formData.append('logo', file);

    axios.post('https://www.qrcodereviews.uxlivinglab.online/api/v2/qr-code/?api_key=', formData, {
      headers: {
        'Content-Type': 'multipart/form-data',
      },
    })
      .then(response =&gt; {
        console.log('QR code creation successful:', response.data);
      })
      .catch(error =&gt; {
        console.error('QR code creation failed:', error);
      });
  };

  return (
    <div>
      
        
         setCompanyID(e.target.value)} /&gt;
         setCreatedBy(e.target.value)} /&gt;
         setQRCodeColor(e.target.value)} /&gt;
         setLink(e.target.value)} /&gt;
         setDescription(e.target.value)} /&gt;
        <button type="submit">Create QR Code</button>
      
    </div>
  );
}

export default App;

				
			

2. How to Get QR Codes

This React component fetches QR code data using Axios, then displays the JSON response in a formatted way. Make sure to replace `'<your-api-key>’` with your actual API key.

				
					import React, { useEffect, useState } from 'react';
import axios from 'axios';

function App() {
  const [data, setData] = useState(null);
      
  useEffect(() =&gt; {
    axios.get('https://www.qrcodereviews.uxlivinglab.online/api/v2/qr-code/?api_key=')
      .then(response =&gt; {
        setData(response.data);
      })
      .catch(error =&gt; {
        console.error('Request failed:', error);
      });
  }, []);

  return (
    <div>
      {data &amp;&amp; <pre>{JSON.stringify(data, null, 2)}</pre>}
    </div>
  );
}

export default App;

				
			

3. How to Update QR Codes

This React component captures user input to update a QR code’s details and image. It sends a PUT request with the new data to a specified API endpoint using Axios. Make sure to replace `'<your-api-key>’` with your actual API key.

				
					import React, { useState } from 'react';
import axios from 'axios';

function App() {
  const [company_id, setCompanyID] = useState('Test1');
  const [created_by, setCreatedBy] = useState('pablo');
  const [qrcode_color, setQRCodeColor] = useState('#ff0000');
  const [link, setLink] = useState('https://lenovo.com');
  const [description, setDescription] = useState('This is a qrcode');
  const [file, setFile] = useState(null);

  const handleFileChange = (e) =&gt; {
    setFile(e.target.files[0]);
  };

  const handleSubmit = (e) =&gt; {
    e.preventDefault();

    const apiUrl = 'https://www.qrcodereviews.uxlivinglab.online/api/v2/update-qr-code/13124568296138084846/';
    const apiKey = '';

    const payload = new FormData();
    payload.append('company_id', company_id);
    payload.append('created_by', created_by);
    payload.append('qrcode_color', qrcode_color);
    payload.append('link', link);
    payload.append('description', description);
    if (file) {
      payload.append('logo', file);
    }

    axios.put(apiUrl, payload, {
      params: {
        api_key: apiKey,
      },
      headers: {
        'Content-Type': 'multipart/form-data',
      },
    })
      .then(response =&gt; {
        console.log('Request successful:', response.data);
      })
      .catch(error =&gt; {
        console.error('Request failed:', error);
      });
  };

  return (
    <div>
      
         setCompanyID(e.target.value)} /&gt;
         setCreatedBy(e.target.value)} /&gt;
         setQRCodeColor(e.target.value)} /&gt;
         setLink(e.target.value)} /&gt;
         setDescription(e.target.value)} /&gt;
        
        <button type="submit">Submit</button>
      
    </div>
  );
}

export default App;

				
			

4. How to Get Single QR Code By Id​

This React component fetches and displays data of a specific QR code identified by its ID using the `fetch` API. The data is retrieved from a specified URL, and the JSON response is displayed.

				
					import React, { useEffect, useState } from 'react';

function App() {
  const [data, setData] = useState(null);
  const qrcode_id = 13124568296138084846;
  useEffect(() =&gt; {
    fetch(`https://www.qrcodereviews.uxlivinglab.online/api/v2/update-qr-code/${qrcode_id}/`)
      .then(response =&gt; response.json())
      .then(data =&gt; {
        setData(data);
      })
      .catch(error =&gt; {
        console.error('Request failed:', error);
      });
  }, []);

  return (
    <div>
      {data &amp;&amp; <pre>{JSON.stringify(data, null, 2)}</pre>}
    </div>
  );
}

export default App;

				
			

Flutter Example

1. How to Create QR Codes.

This Flutter code sends a POST request to create a QR code using the specified data and API key. It then processes the JSON response and prints it.

				
					import 'package:http/http.dart' as http;

void makeApiRequest() async {
  final url = Uri.parse('https://www.qrcodereviews.uxlivinglab.online/api/v2/qr-code/');
  final headers = {'Content-Type': 'application/json'};
  final apiKey = '';
  final payload = {
    'qrcode_type': 'Link',
    'quantity': '1',
    'company_id': 'discord',
    'link': 'https://discord.com',
    'description': 'This is discord.',
    'created_by': 'pablo'
  };

  final response = await http.post(
    url,
    headers: headers,
    body: payload,
    queryParameters: {'api_key': apiKey},
  );

  if (response.statusCode == 200) {
    final jsonResponse = json.decode(response.body);
    print(jsonResponse);
  } else {
    print('Request failed with status code: ${response.statusCode}');
  }
}

				
			

2. How to get QR Codes

This Flutter code sends a GET request with an API key as a query parameter to retrieve QR code data from a specific URL. It then processes the JSON response and prints it.

				
					import 'package:http/http.dart' as http;

void makeApiRequest() async {
  final url = Uri.parse('https://www.qrcodereviews.uxlivinglab.online/api/v2/qr-code/');
  final apiKey = 'your-api-key';

  final response = await http.get(
    url,
    headers: {'Content-Type': 'application/json'},
    queryParameters: {'api_key': apiKey},
  );

  if (response.statusCode == 200) {
    final jsonResponse = json.decode(response.body);
    print(jsonResponse);
  } else {
    print('Request failed with status code: ${response.statusCode}');
  }
}

				
			

3. How to Update QR Code

This Flutter code sends a PUT request to update a specific QR code using the provided data and API key. It then processes the JSON response and prints it.

				
					import 'package:http/http.dart' as http;

void makeApiRequest() async {
  final qrcodeId = 13124568296138084846;
  final url = Uri.parse('https://www.qrcodereviews.uxlivinglab.online/api/v2/update-qr-code/$qrcodeId/');
  final apiKey = 'your-api-key';

  final payload = {
    'company_id': 'Test1',
    'created_by': 'pablo',
    'qrcode_color': '#ff0000',
    'link': 'https://lenovo.com',
    'description': 'This is a qrcode',
  };

  final response = await http.put(
    url,
    headers: {'Content-Type': 'application/json'},
    body: payload,
    queryParameters: {'api_key': apiKey},
  );

  if (response.statusCode == 200) {
    final jsonResponse = json.decode(response.body);
    print(jsonResponse);
  } else {
    print('Request failed with status code: ${response.statusCode}');
  }
}

				
			

4. How to Get Single QR Code By Id

This Flutter code sends a GET request to retrieve data of a specific QR code identified by its ID. It then processes the JSON response and prints it.

				
					import 'package:http/http.dart' as http;

void makeApiRequest() async {
  final qrcodeId = 13124568296138084846;
  final url = Uri.parse('https://www.qrcodereviews.uxlivinglab.online/api/v2/update-qr-code/$qrcodeId/');

  final response = await http.get(url, headers: {'Content-Type': 'application/json'});

  if (response.statusCode == 200) {
    final jsonResponse = json.decode(response.body);
    print(jsonResponse);
  } else {
    print('Request failed with status code: ${response.statusCode}');
  }
}

				
			

WordPress Example

1. How to Create QR Codes

Step 1 : Set up the Dowell QR Code Generator API name and the base url. It’s a prerequisite to have WP-GET API installed in your wordpress API.

How to set up the api name and base url

Step 2: Set up the api endpoint and the request body. the endpoint should have the api key and request body should have the necessary body post fields.

How to set up the endpoint for qrcode generator api
How to set up the body post fields for qrcode generator api

Step 3: Test endpoint to get JQuery response from the API. Go to the url provided by the API output to confirm that theAPI works as expected and that the QR Code has been generated and is visible. The Data output provided by the API below is a result of calling the API qrcode_image_url is the url of the image created.

Dowell QR Code Generator API

2. Getting QR Codes.​

This is a GET request that you send to QR Code Generator and what the API does is it fetches all the previous QR codes that you have generated. The screen shot below shows how you should setup the parameters to fetch data from this API.

Dowell QR Code Generator API

Below is the data output provided by calling the QR Code generator API with the parameters above.

Dowell QR Code Generator API
Dowell QR Code Generator API
Dowell QR Code Generator API

3. How to Update QR code.

This is a PUT request that you send to QR code generator that you use to update your previously generated QR Code. You are able to update logo, company_id, created_by, qrcode_color, link and description. The screenshot below will show you how to set QR code generator in your wordpress website.

Dowell QR Code Generator API
Dowell QR Code Generator API

Data Output from testing the API above:

Dowell QR Code Generator API

4. How to Get Single QR Code By Id

This is a GET request to find a single qrcode that was previously generated using QR Code generator. on your endpoint you just have to add the id of your QR Code that was previously generated.Below is a screenshot to guide you on how to set the endpoint.

Get Single QR Code