func (i *InvitesClient) Associate(ctx context.Context, org, email, code string) (*InviteResult, error) {
	// Same payload as accept, re-use type
	data := apitypes.InviteAccept{
		Org:   org,
		Email: email,
		Code:  code,
	}

	req, reqID, err := i.client.NewRequest("POST", "/org-invites/associate", nil, data, true)
	if err != nil {
		return nil, err
	}

	invite := InviteResult{}
	_, err = i.client.Do(ctx, req, &invite, &reqID, nil)
	return &invite, err
}
// Associate executes the associate invite request
Associate executes the associate invite request
// Associate executes the associate invite request
func (i *InvitesClient) Associate(ctx context.Context, org, email, code string) (*InviteResult, error) {
	data := apitypes.InviteAccept{
		Org:   org,
		Email: email,
		Code:  code,
	}
	req, reqID, err := i.client.NewRequest("POST", "/org-invites/associate", nil, data, true)
	if err != nil {
		return nil, err
	}
	invite := InviteResult{}
	_, err = i.client.Do(ctx, req, &invite, &reqID, nil)
	return &invite, err
}
func ( i * InvitesClient ) Associate ( ctx context . Context , org , email , code string ) ( * InviteResult , error ) { data := apitypes . InviteAccept { Org : org , Email : email , Code : code , } req , reqID , err := i . client . NewRequest ( " " , " " , nil , data , true ) if err != nil { return nil , err } invite := InviteResult { } _ , err = i . client . Do ( ctx , req , & invite , & reqID , nil ) return & invite , err }
Associate executes the associate invite request
Associate executes the associate invite request
// Same payload as accept, re-use type