Skip to content

shauneccles/qrcode-generator-azure-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator Azure Function

QR Code Generator Azure Function does what it says on the label - takes data and uses the qrcode Python library to convert to a PNG image.

Installation

You can use the Deployment Zip Push method if you wish - download this repository as a Zip and then upload using Azure CLI.

az functionapp deployment source config-zip -g <resource_group> -n \
<your-function-name> --src qrcode-generator-azure-function-main.zip

Usage

Visit your Function URL and append ?data= to return a QR code.

You can also do a POST with a JSON payload of:

POST Method

curl -X POST \
  'http://your-azure-function-address/api/<your-function-name>' \
  --header 'Content-Type: application/json' \
  --data-raw '{"data":"https://google.com/"}'

GET Method

curl -X GET \
  'http://<your-azure-function-address>/api/<your-function-name>?data=https://google.com/'

Contributing

Pull requests are welcome - this does what I need and should hopefully be clear enough to help you tailor it as required.

License

MIT

About

A QR Code Generator Azure Function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages