Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create an Openscreen contact against a QR Code scan.
create_contact_by_scan_id = ospro.scan(scanId).contacts().create({
'firstName': 'Brian',
'lastName': 'Smith',
'emailAddress': '',
'mailingAddress': {
'address': '123 Street',
'city': 'Toronto',
'provinceOrState': 'ON',
'country': 'Canada',
'postalOrZip': 'A1B2C3'
'consent': [{'url': '', 'consentedAt': '2021-06-20 08:03:00.0', 'consented': true}],
'cellPhone': '+14162121212'
'customAttributes': {
'scanId': scanId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment