go/resources/skills/subresources/content/index.md +0 −42 deleted
File Deleted View Diff
1# Content
2
3## Download a skill zip bundle by its ID.
4
5`client.Skills.Content.Get(ctx, skillID) (*Response, error)`
6
7**get** `/skills/{skill_id}/content`
8
9Download a skill zip bundle by its ID.
10
11### Parameters
12
13- `skillID string`
14
15### Returns
16
17- `type SkillContentGetResponse interface{…}`
18
19### Example
20
21```go
22package main
23
24import (
25 "context"
26 "fmt"
27
28 "github.com/openai/openai-go"
29 "github.com/openai/openai-go/option"
30)
31
32func main() {
33 client := openai.NewClient(
34 option.WithAPIKey("My API Key"),
35 )
36 content, err := client.Skills.Content.Get(context.TODO(), "skill_123")
37 if err != nil {
38 panic(err.Error())
39 }
40 fmt.Printf("%+v\n", content)
41}
42```