func (p *ProfilesClient) ListByName(ctx context.Context, name string) (*apitypes.Profile, error) {
	req, _, err := p.client.NewRequest("GET", "/profiles/"+name, nil, nil, true)
	if err != nil {
		return nil, err
	}

	result := &apitypes.Profile{}
	_, err = p.client.Do(ctx, req, result, nil, nil)
	if err != nil {
		return nil, err
	}

	return result, nil
}
// ListByName returns profiles looked up by username
ListByName returns profiles looked up by username
// ListByName returns profiles looked up by username
func (p *ProfilesClient) ListByName(ctx context.Context, name string) (*apitypes.Profile, error) {
	req, _, err := p.client.NewRequest("GET", "/profiles/"+name, nil, nil, true)
	if err != nil {
		return nil, err
	}
	result := &apitypes.Profile{}
	_, err = p.client.Do(ctx, req, result, nil, nil)
	if err != nil {
		return nil, err
	}
	return result, nil
}
func ( p * ProfilesClient ) ListByName ( ctx context . Context , name string ) ( * apitypes . Profile , error ) { req , _ , err := p . client . NewRequest ( " " , " " + name , nil , nil , true ) if err != nil { return nil , err } result := & apitypes . Profile { } _ , err = p . client . Do ( ctx , req , result , nil , nil ) if err != nil { return nil , err } return result , nil }
ListByName returns profiles looked up by username
ListByName returns profiles looked up by username