Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@ public static function factory($config = array())
return $client;
}

/**
* This API will return all fields and the data type of a lead object.
* Note: This API returns API field names for both Marketo REST and SOAP APIs.
*
* @param array $args - No required parameters
*
* @link http://developers.marketo.com/documentation/rest/describe/
*
* @return array
*/
public function describeLead($args = array()) {
return $this->getResult('describeLead', $args);
}

/**
* Import Leads via file upload
*
Expand Down
4 changes: 4 additions & 0 deletions src/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"apiVersion": "1",
"description": "Service description used for talking to the Marketo.com REST API.",
"operations": {
"describeLead": {
"httpMethod": "GET",
"uri": "leads/describe.json"
},
"importLeadsCsv": {
"httpMethod": "POST",
"uri": "leads.json",
Expand Down