1. Go to this page and download the library: Download momentum/msg-online 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/ */
momentum / msg-online example snippets
// Initialise the MSGOnline client with your API key
\Momentum\MsgOnline\Client::setApiKey('%APIKEY%');
$user = new \Momentum\MSGOnline\User();
$user->getCurrentUser();
// Initialise the MSGOnline client with your API key
\Momentum\MsgOnline\Client::setApiKey('%APIKEY%');
$api = new \Momentum\MSGOnline\API();
$api->currentVersion();
// Initialise the MSGOnline client with your API key
$client = new \Momentum\MsgOnline\Client('%APIKEY%');
$products = new \Momentum\MsgOnline\Products();
// List all products
$products->all();
// Search the products API
$products->search($keywords, $parameters = array());
// Get a product by its IMPA Code
$products->getProductByCode($code);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.