Closed dishwasher closed 3 years ago
Hi there, I believe the issue is not fixed for every object, I am still getting the Error 49 when trying to user p.account.read() for example.
I am terrible at Python but I have the impression that the code is still passing the parameter with the URL instead of passing them in the body of the request.
I have tried to create a request manually and it works, could double check that your update was applied to all the objects? Thanks
`# importing the requests library import requests
API_ENDPOINT = "http://pi.pardot.com/api/account/version/4/do/read"
user_key = "xxxxx" api_key = "xxxxx"
data = {'user_key': user_key, 'api_key': api_key, }
r = requests.post(url=API_ENDPOINT, data=data)
response = r.text print(response)`
hey @mneedham91 sorry for lack of details, figured code was a better demonstration.
See here: https://github.com/mneedham91/PyPardot4/pull/25
Prior to it, was getting
PardotAPIError: Error #49: Access Denied