Skip to content

Commit

Permalink
Prepares for next version development (#465)
Browse files Browse the repository at this point in the history
* Sets client version for unreleased 1.7
* Minor updates to README
  • Loading branch information
ChuckCrawford authored Sep 26, 2022
1 parent 6e844df commit a895632
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ go-pagerduty is a CLI and [go](https://golang.org/) client library for the [Page

## Installation

First, download the source code
To add the latest stable version to your project:
```cli
go get github.com/PagerDuty/go-pagerduty
go get github.com/PagerDuty/go-pagerduty@v1.6
```

Next build the application.
If you instead wish to work with the latest code from main:
```cli
cd $GOPATH/src/github.com/PagerDuty/go-pagerduty
make install
go get github.com/PagerDuty/go-pagerduty@latest
```

## Usage
Expand Down Expand Up @@ -162,15 +161,15 @@ responses. You can then use one of the methods to make an API call, and then
inspect the API response received. For example:

```Go
client := pagerduty.NewClient("exmaple")
client := pagerduty.NewClient("example")

client.SetDebugFlag(pagerduty.DebugCaptureLastResponse)

oncalls, err := client.ListOnCallsWithContext(ctx, pagerduty.ListOnCallOptions{})

resp, ok := client.LastAPIReponse()
resp, ok := client.LastAPIResponse()
if ok { // resp is an *http.Response we can inspect
body, err := ioutil.ReadAll(resp.Body)
body, err := httputil.DumpResponse(resp, true)
// ...
}
```
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

// Version is current version of this client.
const Version = "1.6.0"
const Version = "1.7.0-alpha"

const (
apiEndpoint = "https://api.pagerduty.com"
Expand Down

0 comments on commit a895632

Please sign in to comment.