Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
borisershov authored Jul 22, 2021
1 parent 9a08ccf commit 3afd2fa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Follows Redmine resources are fully implemented at this moment:
## Install

```
go get github.com/nixys/nxs-go-redmine/v2
go get github.com/nixys/nxs-go-redmine/v3
```

## Example of usage
Expand All @@ -35,7 +35,7 @@ import (
"fmt"
"os"

"github.com/nixys/nxs-go-redmine/v2"
"github.com/nixys/nxs-go-redmine/v3"
)

func main() {
Expand All @@ -57,7 +57,12 @@ func main() {
fmt.Println("Init: success")

// Get all projects
p, _, err := r.ProjectAllGet([]string{"trackers", "issue_categories", "enabled_modules"})
p, _, err := r.ProjectAllGet(ProjectAllGetRequest{
Includes: []string{"trackers", "issue_categories", "enabled_modules"},
Filters: ProjectGetRequestFilters{
Status: ProjectStatusActive,
},
})
if err != nil {
fmt.Println("Projects get error:", err)
os.Exit(1)
Expand Down

0 comments on commit 3afd2fa

Please sign in to comment.