func (t *TeamsClient) GetByName(ctx context.Context, orgID *identity.ID, name string) ([]TeamResult, error) {
	v := &url.Values{}
	v.Set("org_id", orgID.String())
	v.Set("name", name)

	req, _, err := t.client.NewRequest("GET", "/teams", v, nil, true)
	if err != nil {
		return nil, err
	}

	teams := []TeamResult{}
	_, err = t.client.Do(ctx, req, &teams, nil, nil)
	return teams, err
}
// GetByName retrieves the team with the specified name
GetByName retrieves the team with the specified name
// GetByName retrieves the team with the specified name
func (t *TeamsClient) GetByName(ctx context.Context, orgID *identity.ID, name string) ([]TeamResult, error) {
	v := &url.Values{}
	v.Set("org_id", orgID.String())
	v.Set("name", name)
	req, _, err := t.client.NewRequest("GET", "/teams", v, nil, true)
	if err != nil {
		return nil, err
	}
	teams := []TeamResult{}
	_, err = t.client.Do(ctx, req, &teams, nil, nil)
	return teams, err
}
func ( t * TeamsClient ) GetByName ( ctx context . Context , orgID * identity . ID , name string ) ( [ ] TeamResult , error ) { v := & url . Values { } v . Set ( " " , orgID . String ( ) ) v . Set ( " " , name ) req , _ , err := t . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } teams := [ ] TeamResult { } _ , err = t . client . Do ( ctx , req , & teams , nil , nil ) return teams , err }
GetByName retrieves the team with the specified name
GetByName retrieves the team with the specified name