Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
Login makes a login request using the supplied HTTP client and Config to the supplied base. The HTTP client must have a cookie jar attached, like what is provided by New.
Types ¶
type Config ¶
Config represents a configuration for cookie authentication. It should be directly instantiated with the username, password, and API key for authentication.
func GetCredentialsFromEnv ¶
func GetCredentialsFromEnv() Config
GetCredentialsFromEnv constructs a new Config object from the environment. It expecs the following environment variables: T1_API_USERNAME, T1_API_PASSWORD, T1_API_KEY
Click to show internal directories.
Click to hide internal directories.