Skip to content

Commit

Permalink
update get restreamers
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Nov 16, 2023
1 parent b901235 commit 72b6894
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions compress/api_restreamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compress/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 2 additions & 0 deletions test/api_restreamer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ func TestGetRestreamers(t *testing.T) {
log.Println("restreamers ", restreamers)
//c.IsDebug()
}


0 comments on commit 72b6894

Please sign in to comment.