Skip to content

Commit 2523a09

Browse files
author
Sean Sain
committed
add params to token resource
1 parent 60d7804 commit 2523a09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sumologic/sumologic_token.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
func (s *Client) CreateToken(token Token) (string, error) {
99
urlWithoutParams := "v1/tokens"
1010

11-
data, err := s.Post(urlWithoutParams, token)
11+
data, err := s.Post(urlWithoutParams, token, false)
1212
if err != nil {
1313
return "", err
1414
}
@@ -32,7 +32,7 @@ func (s *Client) GetToken(id string) (*Token, error) {
3232

3333
urlWithParams := fmt.Sprintf(urlWithoutParams+paramString, sprintfArgs...)
3434

35-
data, _, err := s.Get(urlWithParams)
35+
data, _, err := s.Get(urlWithParams, false)
3636
if err != nil {
3737
return nil, err
3838
}
@@ -74,7 +74,7 @@ func (s *Client) UpdateToken(token Token) error {
7474

7575
token.ID = ""
7676

77-
_, err := s.Put(urlWithParams, token)
77+
_, err := s.Put(urlWithParams, token, false)
7878

7979
return err
8080

0 commit comments

Comments
 (0)