Opportunities - mneedham91/PyPardot4 GitHub Wiki
The Opportunities class queries and uses Pardot opportunities.
If you initialize with p = PardotAPI(), you access the Accounts class with p.opportunities
Methods
-
create_by_email Creates a new opportunity using the specified data. prospect_email must correspond to an existing prospect.
-
create_by_id Creates a new opportunity using the specified data. prospect_id must correspond to an existing prospect.
-
delete Deletes the opportunity specified by id, the Pardot ID for the target opportunity. Returns no response on success.
-
query Returns the opportunities matching the specified criteria parameters.
-
read Returns the data for the opportunity specified by id, the Pardot ID for the target opportunity, including campaign assignment and associated visitor activities.
-
update Updates the provided data for the opportunity specified by id, the Pardot ID for the target opportunity. Fields that are not updated by the request remain unchanged. Returns an updated version of the opportunity.
-
undelete Un-deletes the opportunity specified by id, the Pardot ID for the target opportunity. Returns no response on success.