def sign_doc_in_person_multiple(
client: Client,
document_id: str,
destination_folder_id: str,
signer_a_email: str,
signer_a_embed_url_id: str,
signer_b_email: str,
) -> SignRequest:
# Sign request params
source_file = FileBase(id=document_id, type=FileBaseTypeField.FILE)
destination_folder = FolderMini(
id=destination_folder_id, type=FolderBaseTypeField.FOLDER
)
signer_a = SignRequestCreateSigner(
email=signer_email,
embed_url_external_user_id=signer_embed_url_id,
is_in_person=True,
)
signer_b = SignRequestCreateSigner(
email=signer_email,
is_in_person=True,
)
# sign document
sign_request = client.sign_requests.create_sign_request(
signers=[signer_a, signer_b],
parent_folder=destination_folder,
source_files=[source_file],
)
return sign_request
def main():
"""Simple script to demonstrate how to use the Box SDK"""
conf = ConfigOAuth()
client = get_client_oauth(conf)
# Sign with phone verification
sign_with_embed_url = sign_doc_embed_url(
client,
SIMPLE_PDF,
SIGN_DOCS_FOLDER,
SIGNER_A,
SIGNER_A_EXTERNAL_ID,
SIGNER_B
)
check_sign_request(sign_with_embed_url)