RefreshSessionToken formulate the JSON request object from the user credentials and POST it to the /session endpoint and get a session cookie
(username, password string)
| 364 | // RefreshSessionToken formulate the JSON request object from the user |
| 365 | // credentials and POST it to the /session endpoint and get a session cookie |
| 366 | func (client *Client) RefreshSessionToken(username, password string) error { |
| 367 | params := SessionQuery{ |
| 368 | Username: username, |
| 369 | Password: password, |
| 370 | } |
| 371 | |
| 372 | data, err := json.Marshal(params) |
| 373 | if err != nil { |
| 374 | return err |
| 375 | } |
| 376 | |
| 377 | return client.RefreshSessionTokenRaw(data) |
| 378 | } |
| 379 | |
| 380 | // SetTokenCredentials POST credentials to the /session endpoint and get a |
| 381 | // session cookie |
no test coverage detected