Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
opb authored Dec 8, 2022
1 parent 0db490d commit 0e5664c
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 0e5664c

Please sign in to comment.