public function pipedriveAction() { $result = ''; $data = array(); $pipedrive = new Pipedrive('61feeee8b93408071fc202b57a689a229c2991a9'); $result = $pipedrive->deals()->getByName('A00000X'); $data['6b69eb5081674c79916e74624883adc02be3769f'] = 'Hero'; $response = $pipedrive->deals()->update(1847, $data); var_dump($response); die; }
/** * Initialize the object load master class */ public function __construct(\Benhawker\Pipedrive\Pipedrive $master) { //associate curl class $this->curl = $master->curl(); }