MaxSignatures Api Get Workflow Information

getMDWorkflows($getMDWFsRequest)

getMDWorkflows should be called when a digital signature user needs to get workflows (send document to a group of counterparties). It can be retrieved via a soap request using the "getMDWorkflows" method to https://api.maxsignatures.com/MdDigitalSignatureGetMDWorkflowsApi.php?wsdl.

getMDWFsRequest:{
accountInfo:{//used to authenticate the user who upload the document
username:'',//account name, for example: abc@mdemail.md
password:'',//password
},
activeOnly:'',//boolean type. Whether only get active workflows (if it's false, completed and stopped workflows get be returned also)
getById:'',//boolean type. Whether get the workflow by id (get only one workflow)
workflowId:''//if getById set to true, then get workflow by this parameter
}

Response

getWFsResponse:{
code:'',//string type. A response code. This will be "000" if there is no error
message:'',//string type. A description of the response code
workflows{'',//An array of workflows
workflowId:'' //id of the workflow
document:{ // an array of documents information
data: //this parameter is available only when the getById parameter is true
mimeType: //Mimetype
documentName:'',//the name of the document
},
signers:{//an array of counterparty infromation
signerName: //name of the counterparty
signerEmail: //email address of the counterparty
signerIndex: //the counterparty's index in the workflow
isSigned: //whether the counterparty signed in the workflow
comment: //the comment from the counterparty
updatedTs: //the counterparty's most recent action(sign) in the workflow
},
comment: //comments for the counterparties
signerIndex: //which counterparty is signing right now
isPublic: //whether the workflow is public
isActive: //whether the workflow is active
}

Sample Code (using NuSoap) (PHP)

The xml for the WSDL can be found here