diff --git a/src/Client.php b/src/Client.php index eec03b9..1da1b12 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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 * diff --git a/src/service.json b/src/service.json index 80d2709..27b5395 100644 --- a/src/service.json +++ b/src/service.json @@ -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",