func (t *TeamsClient) List(ctx context.Context, orgID *identity.ID) ([]envelope.Unsigned, error) {
	if orgID == nil {
		return nil, errors.New("must provide org id")
	}

	v := &url.Values{}
	v.Set("org_id", orgID.String())

	req, err := t.client.NewRequest("GET", "/teams", v, nil)
	if err != nil {
		log.Printf("Error building GET /teams request: %s", err)
		return nil, err
	}

	teams := []envelope.Unsigned{}
	_, err = t.client.Do(ctx, req, &teams)
	if err != nil {
		log.Printf("Error performing GET /teams request: %s", err)
		return nil, err
	}

	return teams, nil
}
// List returns all teams for an organization
List returns all teams for an organization
// List returns all teams for an organization
func (t *TeamsClient) List(ctx context.Context, orgID *identity.ID) ([]envelope.Unsigned, error) {
	if orgID == nil {
		return nil, errors.New("must provide org id")
	}
	v := &url.Values{}
	v.Set("org_id", orgID.String())
	req, err := t.client.NewRequest("GET", "/teams", v, nil)
	if err != nil {
		log.Printf("Error building GET /teams request: %s", err)
		return nil, err
	}
	teams := []envelope.Unsigned{}
	_, err = t.client.Do(ctx, req, &teams)
	if err != nil {
		log.Printf("Error performing GET /teams request: %s", err)
		return nil, err
	}
	return teams, nil
}
func ( t * TeamsClient ) List ( ctx context . Context , orgID * identity . ID ) ( [ ] envelope . Unsigned , error ) { if orgID == nil { return nil , errors . New ( " " ) } v := & url . Values { } v . Set ( " " , orgID . String ( ) ) req , err := t . client . NewRequest ( " " , " " , v , nil ) if err != nil { log . Printf ( " " , err ) return nil , err } teams := [ ] envelope . Unsigned { } _ , err = t . client . Do ( ctx , req , & teams ) if err != nil { log . Printf ( " " , err ) return nil , err } return teams , nil }
List returns all teams for an organization
List returns all teams for an organization