mneedham91 / PyPardot4

PyPardot is a wrapper for Version 4 of the Pardot API, written in Python.
MIT License
48 stars 38 forks source link

users read by email not working correctly #35

Open mayurpande opened 5 years ago

mayurpande commented 5 years ago

The function read_by_email is not working for the users. I have tested with various different emails that are correct by they all return;

PardotAPIError: Error #11: Invalid user email address

I have connected properly as I am able to access lists and send emails. But just this line of code always fails;

    def get_user_id(self):

        print(self.p.users.read_by_email("avalid@email.com"))
mayurpande commented 5 years ago

Sorry I didn't realise the prospects object is what I want. But I cannot get the prospect id from the user email