Skip to content

Commit

Permalink
changes start_time for go WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpq committed Nov 21, 2024
1 parent 2765010 commit fdd933f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/clients/go/template/README_calling_api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ options := ClientReadChangesOptions{
ContinuationToken: {{packageName}}.PtrString("eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ=="),
// You can rely on the store id set in the configuration or override it for this specific request
StoreId: {{packageName}}.PtrString("01FQH7V8BEG3GPQW93KTRFR8JB"),
StartTime: {{packageName}}.PtrString("2022-01-01T00:00:00Z"),
}
data, err := fgaClient.ReadChanges(context.Background()).Body(body).Options(options).Execute()

Expand Down
1 change: 1 addition & 0 deletions config/clients/go/template/api_test.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ func Test{{appShortName}}Api(t *testing.T) {
got, response, err := apiClient.{{appShortName}}Api.ReadChanges(context.Background(), "01GXSB9YR785C4FYS3C0RTG7B2").
Type_("repo").
PageSize(25).
StartTime("2022-01-01T00:00:00Z").
ContinuationToken("eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ==").
Execute()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion config/clients/go/template/client/client_test.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ func Test{{appShortName}}Client(t *testing.T) {
body := ClientReadChangesRequest{
Type: "document",
}
options := ClientReadChangesOptions{ContinuationToken: {{packageName}}.PtrString("eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ=="), PageSize: {{packageName}}.PtrInt32(25)}
options := ClientReadChangesOptions{ContinuationToken: {{packageName}}.PtrString("eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ=="), StartTime: {{packageName}}.PtrString("2022-01-01T00:00:00Z"), PageSize: {{packageName}}.PtrInt32(25)}
got, err := fgaClient.ReadChanges(context.Background()).Body(body).Options(options).Execute()
if err != nil {
t.Fatalf("%v", err)
Expand Down

0 comments on commit fdd933f

Please sign in to comment.