I am using python for generating the access token. I go threw the module and copy the codes. When i run the code, i get the error "{'s': 'error', 'code': -371, 'message': 'Please provide sha256 hash of appId and app secret'}". I have already generated the 256 hash but did not find any parameter where i can put it. If any body knows kindly help me, i have search everywhere, but did not get any answer.
My code:
session=accessToken.SessionModel(redirect_uri=redirect_uri,
client_id=client_id,
secret_key=secret_key,
response_type='code',
grant_type=grant_type)
# Authenticate with the API
auth_code = session.generate_authcode()
print(auth_code)
auth_code = "" #I have put auth code here.
session.set_token(auth_code)
response = session.generate_token()
print(response)
The response i get:
{'s': 'error', 'code': -371, 'message': 'Please provide sha256 hash of appId and app secret'}