Example Request
const axios = require('axios');
const options = {
method: 'GET',
url: 'https://text-to-anything.p.rapidapi.com/generateQR',
params: {
content: 'https://google.nl',
lightColor: 'cecece',
darkColor: '000000',
margin: '4',
width: '100'
},
headers: {
'x-rapidapi-key': '{Your-RapidAPI-Key}',
}
};
const response = await axios.request(options);
console.log(response.data);
Inside of the operation you have the following options:
Option | Type | Description |
---|---|---|
content | string | The content of the QRCode. |
lightColor | string | Used as the background of the QRCode. |
darkColor | string | Used for the symbols inside of the QRCode. |
margin | number | The offset around the QRCode. |
width | number | The width of the QRCode. |
Output
The endpoint will return the generated file as result.