Last active
June 27, 2022 16:12
-
-
Save birinder-lobana/513fe8b1176c7132047ca72a27322105 to your computer and use it in GitHub Desktop.
Create an Openscreen contact against a QR Code scan.
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
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