PHP code example of webgriffe / amp-magento
1. Go to this page and download the library: Download webgriffe/amp-magento 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/ */
webgriffe / amp-magento example snippets
use Amp\Http\Client\HttpClientBuilder;
use Webgriffe\AmpMagento\ApiClient;
seUrl' => 'http://magento.base.url',
'username' => 'magento-username',
'password' => 'magento-password'
]
);
$order = \Amp\Promise\wait($client->getOrder(1));
var_dump($order);