diff --git a/compress/api_restreamer.go b/compress/api_restreamer.go index 0f1c862..de6913d 100644 --- a/compress/api_restreamer.go +++ b/compress/api_restreamer.go @@ -12,12 +12,13 @@ import ( * @param {number} amount * @returns restreamer list */ -func (o *compress) GetRestreamers(startFrom int, amount int) ([]Restreamer, error) { - requestBody := &findRestreamersRequest{ +func (o *compress) GetRestreamers() ([]Restreamer, error) { + requestBody := BaseModel{ClientId: o.GetCliendId(), ApiKey: o.apiKey} + /*&findRestreamersRequest{ BaseModel: BaseModel{ClientId: o.GetCliendId(), ApiKey: o.apiKey}, StartFrom: startFrom, Amount: amount, - } + }*/ // if errs := validator.Validate(requestBody); errs != nil { // values not valid, deal with errors here diff --git a/compress/compress.go b/compress/compress.go index 48dcbd5..0540003 100644 --- a/compress/compress.go +++ b/compress/compress.go @@ -18,7 +18,7 @@ type ICompress interface { Upload(file []byte, size int64, categoryId int, title string, tags string, location string, filename string, targetFolder string) (*ResponseUpload, error) GetCategories() ([]Category, error) CreateCategory(name string) (*Category, error) - GetRestreamers(startFrom int, amount int) ([]Restreamer, error) + GetRestreamers() ([]Restreamer, error) // startFrom int, amount int GetSingleRestreamer(instanceName string) (*Restreamer, error) } diff --git a/test/api_restreamer_test.go b/test/api_restreamer_test.go index d882644..d0fdfdd 100644 --- a/test/api_restreamer_test.go +++ b/test/api_restreamer_test.go @@ -21,3 +21,5 @@ func TestGetRestreamers(t *testing.T) { log.Println("restreamers ", restreamers) //c.IsDebug() } + +