Skip to content

Instantly share code, notes, and snippets.

@birinder-lobana
Last active June 27, 2022 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save birinder-lobana/513fe8b1176c7132047ca72a27322105 to your computer and use it in GitHub Desktop.
Save birinder-lobana/513fe8b1176c7132047ca72a27322105 to your computer and use it in GitHub Desktop.
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