Skip to content

Commit

Permalink
Fix default port and insert feedback usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus4k authored Oct 28, 2023
1 parent 78c016b commit 084ae96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ go get github.com/zhenghaoz/gorse/client@master
```go
import "github.com/zhenghaoz/gorse/client"

gorse := client.NewGorseClient("http://127.0.0.1:8087", "api_key")
gorse := client.NewGorseClient("http://127.0.0.1:8088", "api_key")

gorse.InsertFeedback([]client.Feedback{
gorse.InsertFeedback(context.Background(), []client.Feedback{
{FeedbackType: "star", UserId: "bob", ItemId: "vuejs:vue", Timestamp: "2022-02-24"},
{FeedbackType: "star", UserId: "bob", ItemId: "d3:d3", Timestamp: "2022-02-25"},
{FeedbackType: "star", UserId: "bob", ItemId: "dogfalo:materialize", Timestamp: "2022-02-26"},
Expand Down

0 comments on commit 084ae96

Please sign in to comment.