Retrieve
Retrieve configuration files for a project
client.Projects.Configs.Get(ctx, params) (*ContentstringProjectConfigGetResponse, error)
get/v0/projects/{project}/configs
Retrieve configuration files for a project
Parameters
paramsProjectfieldBranchfieldIncludefieldProjectConfigGetParams
Returns
package main
import (
"context"
"fmt"
"github.com/stainless-api/stainless-api-go"
"github.com/stainless-api/stainless-api-go/option"
)
func main() {
client := stainless.NewClient(
option.WithAPIKey("My API Key"),
)
config, err := client.Projects.Configs.Get(context.TODO(), stainless.ProjectConfigGetParams{
Project: stainless.String("project"),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", config)
}
200 Example
{
"foo": {
"content": "content"
}
}