Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create an Openscreen contact against a QR Code scan.
scanId = 'SCANID_FROM_YOUR_APPLICATION'
create_contact_by_scan_id = ospro.scan(scanId).contacts().create({
'firstName': 'Brian',
'lastName': 'Smith',
'emailAddress': 'bsmith@test.com',
'mailingAddress': {
'address': '123 Street',
'city': 'Toronto',
'provinceOrState': 'ON',
'country': 'Canada',
'postalOrZip': 'A1B2C3'
},
'consent': [{'url': 'https://sidewalkqr.com/123main/consent', '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