I'm having this requirement to get data out from Pardot Saleforce objects using Python API.
Can someone please share any available snippets to get data from all the Pardot objects(tables) using Python.
I'm having this requirement to get data out from Pardot Saleforce objects using Python API.
Can someone please share any available snippets to get data from all the Pardot objects(tables) using Python.
Copyright © 2021 Jogjafile Inc.
I am working on a Pardot sync solution using pypardot4 (kudos to Matt for https://github.com/mneedham91/PyPardot4), which involves retrieving data through the API (v4). Here are some snippets for Visitors API, but you can use the same for almost any Pardot APIs (except Visit...):
Also I have used some introspection to iterate through API config data I have set up like this:
And a snippet from the apiList config JSON:
Notice the noSortBy field and how it's handled in the code.
Hope this helps!