1. Go to this page and download the library: Download lemonway/php-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lemonway / php-sdk example snippets
$api = new LemonWayAPI();
$api->config->dkUrl = 'Your DirectKitXML url';
$api->config->wkUrl = 'Your WebKit url';
$api->config->wlLogin = 'Your login';
$api->config->wlPass = 'Your password';
$api->config->lang = 'Your language';
//$api->config->isDebugEnabled = true; //Uncomment to turn on debug mode
// call some API methods...
$result = $api->RegisterWallet(...);
$api = new LemonWayAPI();
$api->config->dkUrl = 'Your DirectKitXML url';
$api->config->wkUrl = 'Your WebKit url';
$api->config->wlLogin = 'Your login';
$api->config->wlPass = 'Your password';
$api->config->lang = 'Your language';
// call some API methods...
$walletID = 'Fill in with a unique id';
$response = $api->RegisterWallet(array('wallet' => $walletID,
'clientMail' => $walletID.'@mail.fr',
'clientTitle' => Wallet::UNKNOWN,
'clientFirstName' => 'Paul',
'clientLastName' => 'Atreides'));
if (isset($response->lwError)) {
print 'Error, code '.$response->lwError->CODE.' : '.$response->lwError->MSG;
} else {
print '<br/>Wallet created : ' . $response->wallet->ID;
// OR BY USING lwXml :
print '<br/>Wallet created : ' . $response->lwXml->WALLET->ID;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.