Skip to content

Commit

Permalink
Merge pull request #303 from JinHuangAtZen/jin.huang/Add-version-to-u…
Browse files Browse the repository at this point in the history
…seragent

Add version number to User Agent
  • Loading branch information
nukosuke committed Feb 6, 2024
2 parents 6f60a64 + eeacecd commit e4a6604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ func main() {

## Want to mock API?

go-zendesk has a [mock package](https://pkg.go.dev/github.com/nukosuke/go-zendesk/zendesk/mock) generated by [golang/mock](https://github.com/golang/mock).
go-zendesk has a [mock package](https://pkg.go.dev/github.com/nukosuke/go-zendesk/zendesk/mock) generated by [uber-go/mock](https://github.com/uber-go/mock).
You can simulate the response from Zendesk API with it.

## To regenerate the mock client

`go generate ./...`

## Zendesk [OBP(Offset Based Pagination) to CBP(Cursor Based Pagination) migration guide](CBPMigration.md)
## Zendesk OBP(Offset Based Pagination) to CBP(Cursor Based Pagination) migration guide
[CBPMigration](CBPMigration.md)

## Maintainer

Expand Down
2 changes: 1 addition & 1 deletion zendesk/zendesk.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
)

var defaultHeaders = map[string]string{
"User-Agent": "nukosuke/go-zendesk",
"User-Agent": "nukosuke/go-zendesk/0.18.0",
"Content-Type": "application/json",
}

Expand Down

0 comments on commit e4a6604

Please sign in to comment.