func (m *MembershipsClient) List(ctx context.Context, org, user, team *identity.ID) ([]MembershipResult, error) {
	v := &url.Values{}
	v.Set("org_id", org.String())
	if user != nil {
		v.Set("owner_id", user.String())
	}
	if team != nil {
		v.Set("team_id", team.String())
	}

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

	memberships := []MembershipResult{}
	_, err = m.client.Do(ctx, req, &memberships, nil, nil)
	return memberships, err
}
// List returns all team membership associations for the given user id within
// the given org id.
List returns all team membership associations for the given user id within
the given org id.
// List returns all team membership associations for the given user id within // the given org id .
func (m *MembershipsClient) List(ctx context.Context, org, user, team *identity.ID) ([]MembershipResult, error) {
	v := &url.Values{}
	v.Set("org_id", org.String())
	if user != nil {
		v.Set("owner_id", user.String())
	}
	if team != nil {
		v.Set("team_id", team.String())
	}
	req, _, err := m.client.NewRequest("GET", "/memberships", v, nil, true)
	if err != nil {
		return nil, err
	}
	memberships := []MembershipResult{}
	_, err = m.client.Do(ctx, req, &memberships, nil, nil)
	return memberships, err
}
func ( m * MembershipsClient ) List ( ctx context . Context , org , user , team * identity . ID ) ( [ ] MembershipResult , error ) { v := & url . Values { } v . Set ( " " , org . String ( ) ) if user != nil { v . Set ( " " , user . String ( ) ) } if team != nil { v . Set ( " " , team . String ( ) ) } req , _ , err := m . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } memberships := [ ] MembershipResult { } _ , err = m . client . Do ( ctx , req , & memberships , nil , nil ) return memberships , err }
List returns all team membership associations for the given user id within
the given org id.
List returns all team membership associations for the given user id within the given org id .