Description Usage Arguments Value Examples
View source: R/pardot_client.R
Make a call to the Pardot API and return XML or data frame
1 2 3 | pardot_client(object, operator, identifier_field = NULL, identifier = NULL,
request_pars = NULL, result_format = "json", unlist_dataframe = TRUE,
verbose = 0)
|
object |
A string containing a Pardot Object |
operator |
A string containing a Pardot Operator |
identifier_field |
A string with an optional identifier field. Can be null |
identifier |
A string with an optional identifier that can be null if identifier_field is null |
request_pars |
A string of query parameters. Can be null |
result_format |
A string specifying the result format used for API calls: "json" (default) or "xml". If json, pardot_client() returns a data frame. |
unlist_dataframe |
A logical, default TRUE. If it is FALSE all fields having embedded lists are returned as they are. If unlist_dataframe is TRUE a field with embedded list(s) is converted to multiple records and/or fields. The values of the other fields are duplicated across these records. Applies to object "visit". |
verbose |
Verbose output. Integer value, default zero is non-verbose. 1 displays a progress bar consisting of dots and numbers, for respectively every 200th and 1000th received record. 2 displays the successive call urls and the data structure returned by the first call. |
XML or a data frame.
1 2 3 4 5 6 | ## Not run:
set_credentials("your-username", "your-password", "your-user-key")
pardot_client("campaign", "query")
pardot_client(object = "campaign", operator = "query",
request_params = "created_after=yesterday&id_greater_than=492276479")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.