Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CredsFile stores path to Gmail API credentials. CredsFile string )
Functions ¶
func GetToken ¶
func GetToken() (err error)
GetToken requests an authorization token and stores it in `Token`.
func NewGmailService ¶
func NewGmailService() (*gmail.Service, error)
NewGmailService creates a new `gmail.Service` using `Config` and `Token`.
func ReadCredentials ¶
func ReadCredentials() error
ReadCredentials unmarshals `CredsFile` to `config`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.