Wix app to create dynamic QR codes
API
We have implemented API to enable different business models as well as automatization of processes.
Authentication
To use the APIs you will need to first get an API key. You can get it from the app dashboard
Once you have the value – for example qT74jYOg8iw1vUf5uC12
you can use it in Authorization header using Bearer authentication in all http requests instead of <your-api-key>
shown in examples bellow.
Authorization: Bearer <your-api-key>
Endpoints
Read QR codes
GET https://link.beaver.codes/api/shortlinks
Example:
curl --location 'https://link.beaver.codes/api/shortlinks' \
--header 'Authorization: Bearer <your-api-key>'
Create QR Code
POST https://link.beaver.codes/api/shortlinks
Example:
curl --location 'https://link.beaver.codes/api/shortlinks' \
--header 'Authorization: Bearer <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Giggleworthy Snickerdoodle",
"targetUrl": "https://beaver.codes/",
}'
Update QR Code
POST https://link.beaver.codes/api/shortlinks
Note: The only difference is by providing id
in the body of request
Example:
curl --location 'https://link.beaver.codes/api/shortlinks' \
--header 'Authorization: Bearer <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"targetUrl": "https://beaver.codes/",
"id": "k-NmJ0afgO"
}'
Delete QR Code
POST https://link.beaver.codes/api/shortlinks
/<id>
Example:
curl --location --request DELETE 'https://link.beaver.codes/api/shortlinks/<id>' \
--header 'Authorization: Bearer <your-api-key>'
Support
Please share your progress or ask for any help on support@beaver.codes