def send_invite_link(self, email, personal_email=None):
self.clean_error()<EOL>try:<EOL><INDENT>url = self.get_url(Constants.SEND_INVITE_LINK_URL)<EOL>data = {<EOL>'<STR_LIT:email>': email<EOL>}<EOL>if personal_email:<EOL><INDENT>data['<STR_LIT>'] = personal_email<EOL><DEDENT>response = self.execute_call('<STR_LIT>', url, json=data)<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>return self.handle_operation_response(response)<EOL><DEDENT>else:<EOL><INDENT>self.error = str(response.status_code)<EOL>self.error_description = self.extract_error_message_from_response(response)<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>self.error = <NUM_LIT><EOL>self.error_description = e.args[<NUM_LIT:0>]<EOL><DEDENT>return False<EOL>
Sends an invite link to a user that you have already created in your OneLogin account.

:param email: Set to the email address of the user that you want to send an invite link for.
:type email: string

:param personal_email: If you want to send the invite email to an email other than the
                       one provided in email, provide it here. The invite link will be
                       sent to this address instead.
:type personal_email: string

Returns the result of the operation
:return: True if the mail with the link was sent
:rtype: bool

See https://developers.onelogin.com/api-docs/1/invite-links/send-invite-link Send Invite Link documentation