Skip to content

Azure Function written in Python, to update users Card Number in Printix

Notifications You must be signed in to change notification settings

SunnySydney123/PrintixCardManagementPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Function for Printix WebHook Integration Written in Python

Azure Function in Python

When Printix sends a WebHook on a New User Create event, this function will:

  1. Get the userID
  2. Authorize to Printix API
  3. Get user details like name and email
  4. Look up a file UserCardDetails.csv which is saved in:
    • Azure StorageContainerFile
  5. Get card number from the file, convert it to Base64
  6. Update Printix user with the card number in Base64

Development Setup

  • 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)

Environment Variables

  • PrintixClientId
  • PrintixTenantId
  • PrintixClientSecret
  • StorageConnectionString
  • StorageContainerName
  • StorageFileName

These are saved as environment variables in Azure Function Configuration

About

Azure Function written in Python, to update users Card Number in Printix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages