SetCommonBearerAuthToken set the bearer auth token for requests fired from the client.
(token string)
| 848 | |
| 849 | // SetCommonBearerAuthToken set the bearer auth token for requests fired from the client. |
| 850 | func (c *Client) SetCommonBearerAuthToken(token string) *Client { |
| 851 | return c.SetCommonHeader(header.Authorization, "Bearer "+token) |
| 852 | } |
| 853 | |
| 854 | // SetCommonBasicAuth set the basic auth for requests fired from |
| 855 | // the client. |