Skip to content

Commit

Permalink
Added SetTimeout usage in README.md. Fixed golint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
utekaravinash committed Mar 3, 2020
1 parent 3d2dc87 commit 1eef1e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ This client library exposes these operations for Amazon Product Advertising API
- [GetVariations](https://github.com/utekaravinash/gopaapi5/blob/master/_examples/get_variations/main.go)
- [SearchItems](https://github.com/utekaravinash/gopaapi5/blob/master/_examples/search_items/main.go)

Use Client instance's SetTimeout() method to set a time limit for the above operations. If not used, the operations wait until API service either completes or times out.

## Author ##

Expand Down
1 change: 1 addition & 0 deletions api/resource.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package api

// Resource determine what information will be returned in the API response
type Resource string

const (
Expand Down
2 changes: 1 addition & 1 deletion operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (c *Client) GetBrowseNodes(params *api.GetBrowseNodesParams) (*api.GetBrows
return &response, nil
}

// GetBrowseNodes gets item information for items
// GetItems gets item information for items
func (c *Client) GetItems(params *api.GetItemsParams) (*api.GetItemsResponse, error) {
response := api.GetItemsResponse{}

Expand Down

0 comments on commit 1eef1e4

Please sign in to comment.