Call the service in PHP

To execute an action on qrmii.com, you simply send an HTTP GET request to the address http://qrmii.com/api followed by the name of the action and a series of parameters:


action is either getcredit or getqr and login and password are your identification code and your password. Depending on the action, more parameters might be necessary, like a URL and a color for a QR.

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 http://qrmii.com/api/getcredit?login=abcdef&password=ABCDEF in the address bar of your navigator replacing abcdef and ABCDEF by your identification code and your password.


You can send an encrypted request to the same address in HTTPS:


IMPORTANT: Always use an HTTPS connection to insure that your identification code and your password remain confidential.

The certificate of the server was signed by mcPaLo Signing Authority.



To call qrmii.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 sendhttp, sendget and sendpost. To dialog with qrmii.com, you will use the sendget function.

Read the page sendhttp of the documentation on iZend for more technical details.


sendget($url, $args)


sendget sends a GET request to an HTTP server at the address specified by $url with the parameters in $args.

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.

$url is a string of characters with the format http://qrmii.com/api/action where action designates the requested function such as getcredit or getqr.

$args is an array containing the list of values of the parameters of the called function such as array( 'login' => 'abcdef', 'password' => 'ABCDEF' ... ).


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 http://qrmii.com/api/getcredit and an array containing your identification code and your password in argument:

$ php -a
php > require_once 'sendhttp.php';
php > echo sendget('http://qrmii.com/api/getcredit', array('login' => 'abcdef', 'password' => 'ABCDEF'));
php > quit

Check your credit and Get a QR


Your comment:
[p] [b] [i] [u] [s] [quote] [pre] [br] [code] [url] [email] strip help 2000

Enter a maximum of 2000 characters.
Improve the presentation of your text with the following formatting tags:
[p]paragraph[/p], [b]bold[/b], [i]italics[/i], [u]underline[/u], [s]strike[/s], [quote]citation[/quote], [pre]as is[/pre], [br]line break,
[url]http://www.izend.org[/url], [url=http://www.izend.org]site[/url], [email]izend@izend.org[/email], [email=izend@izend.org]izend[/email],
[code]command[/code], [code=language]source code in c, java, php, html, javascript, xml, css, sql, bash, dos, make, etc.[/code].