Amazon Product API now requires a signature with every request which I\'m trying to generate ushing Python.
The step I get hung up on is this one:
\"Calculat
import hmac import hashlib import base64 digest = hmac.new(secret, msg=thing_to_hash, digestmod=hashlib.sha256).digest() signature = base64.b64encode(digest).decode()
I know this sounds silly, but make sure you don't have a trailing space on your secret by accident.