Sharekhan-API / shareconnectpython

8 stars 4 forks source link

Access Denied with access-token:None #6

Open amitbuyo2020 opened 7 months ago

amitbuyo2020 commented 7 months ago

After getting access token, when trying to access the data, it throws an exception as below:

{'api-key': 'my_api_key', 'access-token': None, 'Content-type': 'application/json'} {'status': 403, 'message': 'error', 'errorType': 'Access Denied'}

Even when i pass the token, this error occurs and i cannot access anything.

anurag265 commented 4 months ago

There is an issue with documentation here try this instead. It worked for me.

sharekhan = SharekhanConnect(api_key, access_token=access_token)

Basically second arg is not access_token in this constructor. 🙃