33
44from  docusign_esign  import  EnvelopesApi , Document , Signer , EnvelopeDefinition , Recipients , \
55    BulkEnvelopesApi , TextCustomField , CustomFields , Tabs , SignHere 
6- from  docusign_esign .models  import  BulkSendingCopy , BulkSendingList , BulkSendingCopyRecipient , BulkSendingCopyTab , BulkSendRequest , BulkSendBatchStatus 
6+ from  docusign_esign .models  import  BulkSendingCopy , BulkSendingList , BulkSendingCopyRecipient , BulkSendingCopyTab , \
7+     BulkSendRequest , BulkSendBatchStatus 
78from  flask  import  request , session 
89
910from  ...consts  import  demo_docs_path , pattern 
1011from  ...docusign  import  create_api_client 
1112from  ...ds_config  import  DS_CONFIG 
1213
14+ 
1315class  Eg031BulkSendController :
1416    @staticmethod  
1517    def  get_args ():
@@ -28,20 +30,20 @@ def get_args():
2830            "account_id" : session ["ds_account_id" ],  # Represents your {ACCOUNT_ID} 
2931            "base_path" : session ["ds_base_path" ],
3032            "access_token" : session ["ds_access_token" ],  # Represents your {ACCESS_TOKEN} 
31-             "signers" : [{
32-                 "signer_name" : signer_name_1 ,
33-                 "signer_email" : signer_email_1 ,
34-                 "cc_email" : cc_email_1 ,
35-                 "cc_name" : cc_name_1 
36-             },
33+             "signers" : [
34+                 {
35+                     "signer_name" : signer_name_1 ,
36+                     "signer_email" : signer_email_1 ,
37+                     "cc_email" : cc_email_1 ,
38+                     "cc_name" : cc_name_1 
39+                 },
3740                {
3841                    "signer_name" : signer_name_2 ,
3942                    "signer_email" : signer_email_2 ,
4043                    "cc_email" : cc_email_2 ,
4144                    "cc_name" : cc_name_2 
4245                }
4346            ]
44- 
4547        }
4648        return  args 
4749
@@ -105,7 +107,8 @@ def worker(cls, args):
105107
106108        # Confirm successful batch send 
107109        # Step 7 start 
108-         response  =  bulk_envelopes_api .get_bulk_send_batch_status (account_id = args ["account_id" ], bulk_send_batch_id = batch_id )
110+         response  =  bulk_envelopes_api .get_bulk_send_batch_status (account_id = args ["account_id" ],
111+                                                                  bulk_send_batch_id = batch_id )
109112        # Step 7 end 
110113        print (response )
111114
@@ -150,6 +153,7 @@ def create_bulk_sending_list(cls, args):
150153        )
151154
152155        return  bulk_sending_list 
156+ 
153157    # Step 3-2 end 
154158
155159    # Step 4-2 start 
@@ -219,4 +223,4 @@ def make_draft_envelope(cls):
219223        envelope_definition .recipients  =  Recipients (signers = [signer ], carbon_copies = [cc ])
220224
221225        return  envelope_definition 
222-     # Step 4-2 end 
226+     # Step 4-2 end 
0 commit comments