barfly API

GET Request Format

http[s]://domain.name/bctype/data.ext

Supported bctype (barcode type):

  • code39: Code39
  • qrcode: QR Code
  • dmtx: Data Matrix
  • isis: i1 iSis

Supported ext (filetype extension):

  • svg: Scalable Vector Graphics
  • png: Portable Network Graphics
  • jpg: JPEG (Joint Photographic Experts Group)
  • gif: Graphics Interchange Format
  • bmp: Bitmap
  • tif: TIFF (Tagged Image File Format)

cURL Example:

$ curl -Ls https://barfly.ryanobeirne.com/qrcode/barcodedata.png

POST Request Format

http[s]://domain.name/select

Required form data:

  • bctype: barcode type
  • bcdata: barcode data to be encoded
  • ftype: filetype extension

cURL Example:

$ curl -Ls https://barfly.ryanobeirne.com/select \
    -X POST \
    -H 'Content-Type:application/x-www-form-urlencoded' \
    --data 'bctype=qrcode&bcdata=barcodedata&ftype=png'