func (p *ProjectsClient) List(ctx context.Context, orgID *identity.ID) ([]envelope.Unsigned, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}

	req, err := p.client.NewRequest("GET", "/projects", v, nil)
	if err != nil {
		return nil, err
	}

	var projects []envelope.Unsigned
	_, err = p.client.Do(ctx, req, &projects)
	return projects, err
}
// List returns a list of all Projects within the given org.
List returns a list of all Projects within the given org.
// List returns a list of all Projects within the given org .
func (p *ProjectsClient) List(ctx context.Context, orgID *identity.ID) ([]envelope.Unsigned, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	req, err := p.client.NewRequest("GET", "/projects", v, nil)
	if err != nil {
		return nil, err
	}
	var projects []envelope.Unsigned
	_, err = p.client.Do(ctx, req, &projects)
	return projects, err
}
func ( p * ProjectsClient ) List ( ctx context . Context , orgID * identity . ID ) ( [ ] envelope . Unsigned , error ) { v := & url . Values { } if orgID != nil { v . Set ( " " , orgID . String ( ) ) } req , err := p . client . NewRequest ( " " , " " , v , nil ) if err != nil { return nil , err } var projects [ ] envelope . Unsigned _ , err = p . client . Do ( ctx , req , & projects ) return projects , err }
List returns a list of all Projects within the given org.
List returns a list of all Projects within the given org .