Skip to content

Commit

Permalink
Merge pull request andygrunwald#15 from opb/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
andygrunwald authored Dec 8, 2022
2 parents 0db490d + 0e5664c commit 869909b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ apiKey := "<my-secret-api-key>"
client := incident.NewClient(apiKey, nil)

// List all incidents for your organisation.
incidents, response, err := c.Incidents.List(context.Background(), nil)
incidents, response, err := client.Incidents.List(context.Background(), nil)
```

Some API methods have optional parameters that can be passed. For example:
Expand All @@ -58,7 +58,7 @@ opt := &incident.IncidentsListOptions{
incident.IncidentStatusClosed,
},
}
incidents, response, err := c.Incidents.List(context.Background(), opt)
incidents, response, err := client.Incidents.List(context.Background(), opt)
```

The services of a client divide the API into logical chunks and correspond to the structure of the [Incident.io API](https://api-docs.incident.io/) documentation .
Expand Down Expand Up @@ -141,4 +141,4 @@ The structure, code and documentation of this project is inspired by [google/go-

## License

This library is distributed under the MIT License found in the [LICENSE](./LICENSE) file.
This library is distributed under the MIT License found in the [LICENSE](./LICENSE) file.

0 comments on commit 869909b

Please sign in to comment.