dfp_createContacts: ContactService

Description Usage Arguments Details Value See Also Examples

Description

Provides methods for creating, updating and retrieving Contact objects.

Usage

1
dfp_createContacts(request_data, as_df = TRUE, verbose = FALSE)

Arguments

request_data

a list or data.frame of data elements to be formatted for a SOAP request (XML format, but passed as character string)

as_df

a boolean indicating whether to attempt to parse the result into a data.frame

verbose

a boolean indicating whether to print the service URL and POSTed XML

Details

createContacts

Creates new Contact objects.

Value

a data.frame or list containing all the elements of a createContactsResponse

See Also

Google Documentation for createContacts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
request_data <- list(contacts=list(name="TestContact1", 
                                   companyId=dfp_createCompanies_result$id, 
                                   status='UNINVITED', 
                                   cellPhone='(888) 999-7777',
                                   comment='API Test', 
                                   email='testcontact1@gmail.com'))
result <- dfp_createContacts(request_data)

## End(Not run)

StevenMMortimer/rdfp documentation built on June 11, 2019, 4:50 p.m.