public function getSamples(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array(); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/samples', new ProductFeedUploadErrorSample(), 'EDGE', ProductFeedUploadErrorSample::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
/** * @param array $fields * @param array $params * @return Cursor */ public function getSamples(array $fields = array(), array $params = array()) { return $this->getManyByConnection(ProductFeedUploadErrorSample::className(), $fields, $params, 'samples'); }