ソースを参照

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


読み込み中…
キャンセル
保存