/** * @param $action String the action to call * @throws InvalidRequestError * @throws ResourceNotFoundException * @throws ServiceException * @throws UnauthorizedException * @return mixed */ public static function delete($action) { $signedRequest = ApiRequest::sign_request("DELETE", $action); $client = new GuzzleHttp\Client(); $res = $client->request('DELETE', Itwapp::$apiBase . $signedRequest, ['exceptions' => false]); return ApiRequest::parse_result($res); }