func (o *OrgsClient) GetTree(ctx context.Context, orgID identity.ID) ([]OrgTreeSegment, error) {
	v := &url.Values{}
	v.Set("org_id", orgID.String())
	req, _, err := o.client.NewRequest("GET", "/orgtree", v, nil, true)
	if err != nil {
		return nil, err
	}

	segments := []OrgTreeSegment{}
	_, err = o.client.Do(ctx, req, &segments, nil, nil)
	return segments, err
}
// GetTree returns an org tree
GetTree returns an org tree
// GetTree returns an org tree
func (o *OrgsClient) GetTree(ctx context.Context, orgID identity.ID) ([]OrgTreeSegment, error) {
	v := &url.Values{}
	v.Set("org_id", orgID.String())
	req, _, err := o.client.NewRequest("GET", "/orgtree", v, nil, true)
	if err != nil {
		return nil, err
	}
	segments := []OrgTreeSegment{}
	_, err = o.client.Do(ctx, req, &segments, nil, nil)
	return segments, err
}
func ( o * OrgsClient ) GetTree ( ctx context . Context , orgID identity . ID ) ( [ ] OrgTreeSegment , error ) { v := & url . Values { } v . Set ( " " , orgID . String ( ) ) req , _ , err := o . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } segments := [ ] OrgTreeSegment { } _ , err = o . client . Do ( ctx , req , & segments , nil , nil ) return segments , err }
GetTree returns an org tree
GetTree returns an org tree