소스 검색

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


불러오는 중...
취소
저장