I am tryin to work with this repo https://github.com/RavenPack/python-api
Weirdly enough, the API is working perfectly with POSTMAN (it's a tool used to automate testing API development and HTTP calls)
Here's the code snippet
from ravenpackapi import RPApi
from ravenpackapi import Dataset
api = RPApi(
api_key="_________" //correct api_key was intentionally removed for the post
)
ds = api.create_dataset(
Dataset(
name="New Dataset",
filters={
"relevance": {
"$gte": 90
}
},
)
)
print("Dataset created", ds)
Here is the error message.
I repeat the same API key is working with postman on the same device and network. It's just that their python library is giving me a hard time.
Exception has occurred: APIException
Got an error 401: body was '{"endpoint":"datasets","errors":[{"type":"UnauthorizedError","reason":"Unauthorized: Must supply a valid API key"}]}'
File "C:\Users\XYZ\Documents\Python\RavenPackAPI.py", line 8, in <module>
ds = api.create_dataset(
