-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
4 changed files
with
42 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.