Explorar el Código

Add SetClient method

main
Matt Baer hace 2 años
padre
commit
a8ae32056c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      writeas.go

+ 5
- 0
writeas.go Ver fichero

@@ -110,6 +110,11 @@ func (c *Client) SetApplicationKey(key string) {
c.apiKey = key
}

// SetClient sets a custom http.Client to use instead of the default.
func (c *Client) SetClient(cl *http.Client) {
c.client = cl
}

// Token returns the user token currently set to the Client.
func (c *Client) Token() string {
return c.token


Cargando…
Cancelar
Guardar