Skip to content

Instantly share code, notes, and snippets.

@birinder-lobana
Created June 28, 2022 16:55
Show Gist options
  • Save birinder-lobana/4e1ade3dea14f291988bd6bd229eafe4 to your computer and use it in GitHub Desktop.
Save birinder-lobana/4e1ade3dea14f291988bd6bd229eafe4 to your computer and use it in GitHub Desktop.
Get scan details after a dynamic QR code is scanned, using python SDK.
from openscreen import Openscreen
import os
#Obtain your access key and secret from Openscreen Dashboard
ospro = Openscreen(access_key=os.environ.get('OS_ACCESS_KEY'), access_secret=os.environ.get('OS_ACCESS_SECRET'))
#Create a new project on Openscreen Dashboard. Paste the projectId below
projectId = os.environ.get('PROJECT_ID')
assetId = 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
scans = os.asset(assetId).scans().get()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment