gsList($uploadRequest)
gsList should be called when a mdEmail user needs to list all the graphic signatures. It can be retrieved via a soap request using the "gsList" method to https://api.maxsignatures.com/MdDigitalSignatureApi.php?wsdl.
uploadRequest:{
accountInfo:{
//used to authenticate the user who upload the document
username:
//account name, for example: abc@mdemail.md
password:
//password
}
}
Response
The response comes in a soap object containing three elements.
(string) code - A response code. This will be "000" if there is no error
(string) message - A description of the response code
(array) gsImages - An array of graphical images in GSImageType.
GSImageType:{
graphicImageName:
//name of the graphical signature
width:
//width of the graphic signature image
height:
//height of the graphic signature image
graphicImageMimeType:
//Mime type of the graphic signature, only 'image/bmp' is allowed
graphicImage:
//the base64 encoded data of the image
}
Sample Code (using NuSoap) (PHP)
The xml for the WSDL can be found here