Please note that I am not longer continuing active development since I've stopped using PipelineDeals and switched from PHP to Python. I am more than happy to accept pull requests though!
- Requirements
- Usage
- Examples
- PHP with cURL
- Pipelinedeals Account with API-Access
$pda = new PDAdapter(api-key,custom-base-url);
- api-key: Your Pipelinedeals API-Key
- custom-base-url: Set a custom base url for API requests (advanced users only, see source for further information)
$pda->setMethod(method);
- method: The method of your request. Either 'get' (default), 'post' or 'put'
$result = $pda->doRequest(resource, conditions, page, request-data)
- resource: the wanted Pipelinedeals resource. E.g.: 'people', see the Pipelinedeals-API-Documentation for further information (http://www.pipelinedeals.com/developers/api)
- conditions (optional): Conditions in key=>value array, e.g.: "array('[deal_created][from_date]'=>'2011-01-01','[deal_created][to_date]' => '2012-01-01')"
- page (optional): The wanted page as integer, e.g.: "2"
- request-data (optional): Needed for requests which send data with themselves, for e.g. creating a deal.
That's only two lines - see how easy that is?