PHP class
Before you can use the PHP class, you need to change some settings.
Click here to download the PHP class
Klant nummer
Change $klantId to your client number. You can find your client number in your Versio client control. Change the following line:
$klantId = ""; /// Your client number
for example to:
$klantId = "193495"; /// Your client number
Klant wachtwoord
You need to enter your password in sha1(); format. Change the following:
$klantPw = ""; /// Sha1 password hash
for example to:
$klantPw = "a9bd4e37554ca3968a39dfe7baf419a9cfe170a3"; /// Sha1 password hash
Sandbox
Change $sandBox from 0 to 1 to user API in Sandbox mode:
$sandBox = 0; ///change to 1 for using the API in sandbox, no funds will be deducted and no mutations will be made
for example to:
$sandBox = 1; ///change to 1 for using the API in sandbox, no funds will be deducted and no mutations will be made
The sandbox mode can be used on API commands where fees apply. When using the API in sandbox mode no domains will be registered for example, but the API will respond the same as if it is a production call.
Sandbox mode can be used on the following commands: