瀏覽代碼

Add SetClient method

main
Matt Baer 2 年之前
父節點
當前提交
a8ae32056c
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      writeas.go

+ 5
- 0
writeas.go 查看文件

@@ -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


Loading…
取消
儲存