Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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