Get Evaluation Taxonomy
client.Evaluations.GetTaxonomy(ctx, evaluationID) (*EvaluationGetTaxonomyResponse, error)
GET/v5/evaluations/{evaluation_id}/taxonomy
Get the taxonomy JSON for an evaluation’s contributor question tasks.
Returns the raw taxonomy document stored for the evaluation. Responds with a not-found error if the evaluation has no taxonomy.
Get Evaluation Taxonomy
package main
import (
"context"
"fmt"
"github.com/scaleapi/sgp-dev-go"
"github.com/scaleapi/sgp-dev-go/option"
)
func main() {
client := sgpdev.NewClient(
option.WithAPIKey("My API Key"),
option.WithAccountID("My Account ID"),
)
response, err := client.Evaluations.GetTaxonomy(context.TODO(), "evaluation_id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{
"foo": "bar"
}Returns Examples
{
"foo": "bar"
}