python-rest-api icon indicating copy to clipboard operation
python-rest-api copied to clipboard

{'code': 2, 'description': 'Request not allowed (incorrect access_key)', 'parameter': 'access_key'}

Open karabo25 opened this issue 1 year ago • 0 comments

Hey team, this is frustrating. please help me fix this issue, the role ha full access.

import messagebird

api_key = 'YVBbo*************************************COl'

client = messagebird.Client(api_key)
balance = client.balance()
print("Balance:", balance)
    

Error:

Traceback (most recent call last):
  File "C:\Users\khomo\Developer\projects\neighbor_watch\testing.py", line 6, in <module>
    balance = client.balance()
  File "C:\Users\khomo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\messagebird\client.py", line 130, in balance
    return Balance().load(self.request('balance'))
  File "C:\Users\khomo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\messagebird\client.py", line 94, in request
    raise (ErrorException([Error().load(e) for e in response_json['errors']]))
messagebird.client.ErrorException: {'code': 2, 'description': 'Request not allowed (incorrect access_key)', 'parameter': 'access_key'}

karabo25 avatar Oct 19 '24 17:10 karabo25