Skip to content

Commit

Permalink
Incidents fix (#11)
Browse files Browse the repository at this point in the history
* Added APIListObject to Option types to allow setting offset and

page through more than the inital 25 returned entries.
Also renamed a file with typo and gofmt changed ordering of some
of the imports.

* Added missing ? in incidents url
  • Loading branch information
jareksm authored and ranjib committed Jun 14, 2016
1 parent 3b5e813 commit be142e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incident.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (c *Client) ListIncidents(o ListIncidentsOptions) (*ListIncidentsResponse,
if err != nil {
return nil, err
}
resp, err := c.Get("/incidents" + v.Encode())
resp, err := c.Get("/incidents?" + v.Encode())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit be142e6

Please sign in to comment.