File "/usr/local/lib/python3.6/site-packages/pypardot/objects/visits.py", line 51, in query_by_prospect_ids
if result['total_results'] == 0:
KeyError: 'total_results'
As per Pardot's documentation, this option "returns basic data for an object (does not provide total object count). Used for querying large amounts of data."
If the option output='bulk' is entered, the code should not rely in the return of the key total_results, because it won't be there.
Trying this:
returns this:
As per Pardot's documentation, this option "returns basic data for an object (does not provide total object count). Used for querying large amounts of data."
If the option
output='bulk'
is entered, the code should not rely in the return of the keytotal_results
, because it won't be there.