Retrieve an organization by name.
Parameters
org string
Returns
Retrieve an organization
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"),
)
org, err := client.Orgs.Get(context.TODO(), "org")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", org.DisplayName)
}
{
"display_name": "display_name",
"object": "org",
"slug": "slug"
}
Returns Examples
{
"display_name": "display_name",
"object": "org",
"slug": "slug"
}