Skip to content

Commit

Permalink
Improve godoc for request function, add info about form argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Prylutskyi Anatolii committed Sep 25, 2016
1 parent 5a94976 commit 67b650e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion asana/asana.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ func (c *Client) Request(ctx context.Context, path string, opt *Filter, v interf
return c.request(ctx, "GET", path, nil, nil, opt, v)
}

// request makes a request to Asana API, using method, at path, sending data with opt filter.
// request makes a request to Asana API, using method, at path, sending data or form with opt filter.
// Only data or form could be sent at the same time. If both provided form will be omitted.
// Also it's possible to do request with nil data and form.
// The response is populated into v, and any error is returned.
func (c *Client) request(ctx context.Context, method string, path string, data interface{}, form url.Values, opt *Filter, v interface{}) error {
if opt == nil {
Expand Down

0 comments on commit 67b650e

Please sign in to comment.