List feedback for an objective
client.Objectives.Feedback.List(ctx, objectiveID, query) (*CursorPagination[ObjectiveFeedback], error)
GET/v1/objectives/{objectiveId}/feedback
List feedback for an objective
package main
import (
"context"
"fmt"
"github.com/cadenya/cadenya-go"
"github.com/cadenya/cadenya-go/option"
)
func main() {
client := cadenya.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.Objectives.Feedback.List(
context.TODO(),
"objectiveId",
cadenya.ObjectiveFeedbackListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"items": [
{
"data": {
"attributes": {
"foo": "string"
},
"comment": "comment",
"score": 0
},
"metadata": {
"id": "id",
"name": "name"
},
"info": {
"submittedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
}
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"data": {
"attributes": {
"foo": "string"
},
"comment": "comment",
"score": 0
},
"metadata": {
"id": "id",
"name": "name"
},
"info": {
"submittedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
}
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}