Azure Function in Python
When Printix sends a WebHook on a New User Create event, this function will:
- Get the
userID - Authorize to Printix API
- Get user details like name and email
- Look up a file UserCardDetails.csv which is saved in:
- Azure Storage → Container → File
- Get card number from the file, convert it to Base64
- Update Printix user with the card number in Base64
- The function is written in VS Code, the Microsoft-recommended IDE for Azure Functions
- Install Extensions Azure Functions
- Install Azure Functions Core Tools
- Supported Python version: 3.11.X (as of this file's creation)
- PrintixClientId
- PrintixTenantId
- PrintixClientSecret
- StorageConnectionString
- StorageContainerName
- StorageFileName
These are saved as environment variables in Azure Function Configuration