We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e.g.
secret = b'it would go here' request = requests.Request( 'POST', 'https://theinstance.service-now.com/api/now/table/incident', json={'short_description':'test'} ) prepped = request.prepare() signature = hmac.new(secret, prepped.body, digestmod=hashlib.sha256) encoded_sig = base64.standard_b64encode(signature.digest()).decode() prepped.headers['x-sn-hmac-signature-256'] = f"keyId=test_secret,signature={encoded_sig}" print(prepped.headers) with requests.Session() as session: response = session.send(prepped) print(response.status_code) print(response.text)
The other is more simply ['x-snc-api-key'] = 'key' or whatnot
['x-snc-api-key'] = 'key'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
e.g.
The other is more simply
['x-snc-api-key'] = 'key'
or whatnotThe text was updated successfully, but these errors were encountered: