Created
June 28, 2022 16:55
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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