func (i *InvitesClient) Accept(ctx context.Context, org, email, code string) error {
	data := apitypes.InviteAccept{
		Org:   org,
		Email: email,
		Code:  code,
	}

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

	_, err = i.client.Do(ctx, req, nil, &reqID, nil)
	if err != nil {
		return err
	}

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