Skip to content

Commit

Permalink
v1.8.2
Browse files Browse the repository at this point in the history
- saveOrder() now returns TRUE when the update itself succeeded, but there were no changes.
  • Loading branch information
Mplus Software committed Jul 11, 2018
1 parent 50fb358 commit 94ad871
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 40 deletions.
4 changes: 3 additions & 1 deletion Mplusqapiclient.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class MplusQAPIclient
{
const CLIENT_VERSION = '1.8.1';
const CLIENT_VERSION = '1.8.2';


var $MIN_API_VERSION_MAJOR = 0;
Expand Down Expand Up @@ -4226,6 +4226,8 @@ public function parseSaveOrderResult($soapSaveOrderResult)
} else {
return true;
}
} else if (isset($soapSaveOrderResult->result) and $soapSaveOrderResult->result == 'SAVE-ORDER-RESULT-FAILED' and $soapSaveOrderResult->errorMessage == 'Order not saved because there were no changes in the order.') {
return true;
} else {
if ( ! empty($soapSaveOrderResult->errorMessage)) {
$this->lastErrorMessage = $soapSaveOrderResult->errorMessage;
Expand Down
Empty file modified Mplusqapiclient_versiontester.php
100644 → 100755
Empty file.
78 changes: 39 additions & 39 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
mplus-api-client-php
====================

PHP client for the Mplus Q-line API.

### Example of usage:

The following script will connect to the API with your credentials and try to request the currently running version of the API.

```php
<?php

require_once('Mplusqapiclient.php');

$mplusqapiclient = new Mplusqapiclient();
$mplusqapiclient->setApiServer($your_api_url);
$mplusqapiclient->setApiPort($your_api_port);
$mplusqapiclient->setApiFingerprint($certificate_fingerprint);
$mplusqapiclient->setApiIdent($your_api_ident);
$mplusqapiclient->setApiSecret($your_api_secret);

try {
$mplusqapiclient->initClient();
} catch (MplusQAPIException $e) {
exit($e->getMessage());
}

try {
$api_version = $mplusqapiclient->getApiVersion();
echo sprintf('Current API version: %d.%d.%d',
$api_version['majorNumber'],
$api_version['minorNumber'],
$api_version['revisionNumber']);
} catch (MplusQAPIException $e) {
exit($e->getMessage());
}
```

Visit the [Mplus Developers website](http://developers.mpluskassa.nl/php/) for more information.
mplus-api-client-php
====================

PHP client for the Mplus Q-line API.

### Example of usage:

The following script will connect to the API with your credentials and try to request the currently running version of the API.

```php
<?php

require_once('Mplusqapiclient.php');

$mplusqapiclient = new Mplusqapiclient();
$mplusqapiclient->setApiServer($your_api_url);
$mplusqapiclient->setApiPort($your_api_port);
$mplusqapiclient->setApiFingerprint($certificate_fingerprint);
$mplusqapiclient->setApiIdent($your_api_ident);
$mplusqapiclient->setApiSecret($your_api_secret);

try {
$mplusqapiclient->initClient();
} catch (MplusQAPIException $e) {
exit($e->getMessage());
}

try {
$api_version = $mplusqapiclient->getApiVersion();
echo sprintf('Current API version: %d.%d.%d',
$api_version['majorNumber'],
$api_version['minorNumber'],
$api_version['revisionNumber']);
} catch (MplusQAPIException $e) {
exit($e->getMessage());
}
```

Visit the [Mplus Developers website](http://developers.mpluskassa.nl/php/) for more information.
Empty file modified composer.json
100644 → 100755
Empty file.

0 comments on commit 94ad871

Please sign in to comment.