_apiKey); $url = $this->instanceUrl() . '/buy'; list($response, $apiKey) = $requestor->request('post', $url, $params); $this->refreshFrom($response, $apiKey, true); return $this; } /** * cancel a pickup * * @param mixed $params * @return $this * @throws \EasyPost\Error */ public function cancel($params = null) { $requestor = new Requestor($this->_apiKey); $url = $this->instanceUrl() . '/cancel'; list($response, $apiKey) = $requestor->request('post', $url, $params); $this->refreshFrom($response, $apiKey, true); return $this; } }