A simple connection and query to Oracle Service Cloud to query a contact by ID.
This returns the data in JSON format.
import requests
url = openSingleQuotes_https://SITENAME.custhelp.com/services/rest/connect/v1.3/contacts/702923_closeSingleQuotes
r = requests.get(url, auth=(‘USERNAME’, ‘PASSWORD’))
print(r.text)
It is worth noting though, that not all values for fields come out this way. For example email.
