func (o *OrgInviteClient) Approve(ctx context.Context, inviteID *identity.ID) (*envelope.Unsigned, error) {

	path := "/org-invites/" + inviteID.String() + "/approve"
	req, err := o.client.NewRequest("POST", path, nil, nil)
	if err != nil {
		log.Printf(
			"Error building POST /org-invites/:id/approve api request: %s", err)
		return nil, err
	}

	invite := envelope.Unsigned{}
	_, err = o.client.Do(ctx, req, &invite)
	if err != nil {
		log.Printf("Error performing POST /org-invites/:id/accept: %s", err)
		return nil, err
	}

	return &invite, nil
}
// Approve sends an approval notification to the registry regarding a specific
// invitation.
Approve sends an approval notification to the registry regarding a specific
invitation.
// Approve sends an approval notification to the registry regarding a specific // invitation .
func (o *OrgInviteClient) Approve(ctx context.Context, inviteID *identity.ID) (*envelope.Unsigned, error) {
	path := "/org-invites/" + inviteID.String() + "/approve"
	req, err := o.client.NewRequest("POST", path, nil, nil)
	if err != nil {
		log.Printf(
			"Error building POST /org-invites/:id/approve api request: %s", err)
		return nil, err
	}
	invite := envelope.Unsigned{}
	_, err = o.client.Do(ctx, req, &invite)
	if err != nil {
		log.Printf("Error performing POST /org-invites/:id/accept: %s", err)
		return nil, err
	}
	return &invite, nil
}
func ( o * OrgInviteClient ) Approve ( ctx context . Context , inviteID * identity . ID ) ( * envelope . Unsigned , error ) { path := " " + inviteID . String ( ) + " " req , err := o . client . NewRequest ( " " , path , nil , nil ) if err != nil { log . Printf ( " " , err ) return nil , err } invite := envelope . Unsigned { } _ , err = o . client . Do ( ctx , req , & invite ) if err != nil { log . Printf ( " " , err ) return nil , err } return & invite , nil }
Approve sends an approval notification to the registry regarding a specific
invitation.
Approve sends an approval notification to the registry regarding a specific invitation .