maxnaude / pardot-api-client

A Python client for the Pardot API
MIT License
2 stars 1 forks source link

Trouble using email.query() #2

Closed foviestar closed 6 years ago

foviestar commented 6 years ago

I've been able to successfully query many of the other objects in the API using this library, but email is giving me some troubles.

The expression: client.email.query() Throws the following error: AttributeError: 'str' object has no attribute 'query'

I think it has something to do with the authentication component having a property of "email" as in: client = APIClient(email=myUsername, password=myPassword, user_key=myToken)

Has anyone been able to get the email object to query? If so, how did you do it?

Thanks

maxnaude commented 6 years ago

@foviestar the only operation that the email endpoint on the Pardot API supports is read (no query): http://developer.pardot.com/kb/api-version-3/emails/

maxnaude commented 6 years ago

@foviestar can we close this?

foviestar commented 6 years ago

Yes

On Fri, Aug 3, 2018, 1:58 PM Max Naude notifications@github.com wrote:

@foviestar https://github.com/foviestar can we close this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/maxnaude/pardot-api-client/issues/2#issuecomment-410374679, or mute the thread https://github.com/notifications/unsubscribe-auth/Am-2X6pnKzJGUOd9MTu85pNjCwpWlPOpks5uNLmDgaJpZM4VEvig .