Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[Fix] Handle token
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Jun 5, 2021
1 parent 0cf58a2 commit d838650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func (c *Client) GetToken() error {
// The url query parameter are defined by the GetStreamsInput struct
func (c Client) GetStreams(streamsList []string) ([]StreamData, int, error) {
var s []StreamData
var token int

for i := 0; i < int(math.Ceil(float64(len(streamsList))/100)); i++ {
end := i*100+100
Expand All @@ -171,7 +172,7 @@ func (c Client) GetStreams(streamsList []string) ([]StreamData, int, error) {
s = append(s, r...)
}

return s, 0, nil
return s, token, nil
}

// get100Streams will get a list of live Streams, limited to 100 users
Expand Down

0 comments on commit d838650

Please sign in to comment.