List records selected by a view (filters and sorts applied; pinned record_order overlaid first)
client.Views.Records.List(ctx, viewObjectType, viewID, params) (*ViewRecordListResponse, error)
GET/v2/prism/{teamId}/{viewObjectType}/views/{viewId}/records
List records selected by a view (filters and sorts applied; pinned record_order overlaid first)
List records selected by a view (filters and sorts applied; pinned record_order overlaid first)
package main
import (
"context"
"fmt"
"github.com/micro-so/micro-sdk-go"
"github.com/micro-so/micro-sdk-go/option"
)
func main() {
client := micro.NewClient(
option.WithAPIKey("My API Key"),
option.WithTeamID("My Team ID"),
)
records, err := client.Views.Records.List(
context.TODO(),
micro.ViewRecordListParamsViewObjectTypeAction,
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
micro.ViewRecordListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", records.Data)
}
{
"data": [
{
"foo": "bar"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}Returns Examples
{
"data": [
{
"foo": "bar"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}