소스 검색

Add Client.BaseURL() method

This allows applications to verify the environment they're interacting
with.
main
Matt Baer 2 년 전
부모
커밋
91e1f9124d
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      writeas.go

+ 5
- 0
writeas.go 파일 보기

@@ -108,6 +108,11 @@ func (c *Client) Token() string {
return c.token
}

// BaseURL returns the base API URL the Client will make calls against.
func (c *Client) BaseURL() string {
return c.baseURL
}

func (c *Client) get(path string, r interface{}) (*impart.Envelope, error) {
method := "GET"
if method != "GET" && method != "HEAD" {


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