Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseEndpoint = "https://api.zeit.co" RequestLoginEndpoint = BaseEndpoint + "/now/registration" VerifyLoginEndpoint = RequestLoginEndpoint + "/verify?email=%s&token=%s" )
Base consts
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { URL *url.URL HTTPClient *http.Client Config ClientConfig }
Client struct
func NewClient ¶
func NewClient(config ClientConfig) (*Client, error)
NewClient creates a new client to interact with the Zeit API
type ClientConfig ¶
ClientConfig struct
func NewConfig ¶
func NewConfig(token string) *ClientConfig
NewConfig creates a new ClientConfig with token as its Token
func NewEmptyTokenConfig ¶
func NewEmptyTokenConfig() *ClientConfig
NewEmptyTokenConfig creates a new ClientConfig with an empty Token
Click to show internal directories.
Click to hide internal directories.