Call the service API
To execute an action on signmii.com, you simply send an HTTP GET request to the address https://signmii.com/api followed by the name of the action and a series of parameters:
You MUST use an HTTPS connection to insure that your identification code and your password remain confidential. If you don't, the request returns an error HTTP 301 Moved Permanently. The certificate of the server was signed by Let's Encrypt.
action is either
password are your identification code and your password.
Depending on the action, more parameters might be necessary, like a digital digest for encoding a signmii.
Your identification code in 6 small letters is displayed in bold on your home page. Your password was posted to your email address. Click on the link To change your password on your home page or on the link If you have forgotten your password on the identification page to get a new one.
Try entering https://signmii.com/api/getcredit?login=abcdef&password=ABCDEF in the address bar of your navigator replacing
ABCDEF by your identification code and your password.
To call signmii.com by program, you need a function able to send an HTTP GET request to a server and to collect the returned data. Download the file sendhttp.php and copy it in the space of your own application.
The file sendhttp.php defines the functions
To dialog with signmii.com, you will use the
sendget sends a GET request to an HTTP server at the address specified by
$url with the parameters in
$url is a string of characters with the format https://signmii.com/api/action where action designates the requested function such as getcredit, getsignmii or checksignmii.
$args is an array containing the list of values of the parameters of the called function such as
array( 'login' => 'abcdef', 'password' => 'ABCDEF' ... ).
sendget returns an array containing the HTTP code, the header and the body of the document returned by the server or
false in case of error.
Assuming you have saved the file sendhttp.php in the current directory, run PHP in interactive mode, load the
sendget function and call it with the URL https://signmii.com/api/getcredit and an array containing your identification code and your password in argument:
$ php -a php > require_once 'sendhttp.php'; php > $r=sendget('https://signmii.com/api/getcredit', array('login' => 'abcdef', 'password' => 'ABCDEF')); php > echo $r == 200 ? $r : 'HTTP ERROR ' . $r; 5 php > quit