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
{ | |
"date":"2016-01-01T00:00:00.000Z", | |
"incoterms":"DAP", | |
"source":{"country":"GB"}, | |
"destination":{"country":"SG"}, | |
"entityType":"B2C", | |
"currency":"GBP", | |
"shipping":{"cost":25,"insurance":0,"mode":"air","express":true}, | |
"items":[{ | |
"id":"1", |
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
{ | |
"date":"2016-01-01T00:00:00.000Z", | |
"incoterms":"DAP", | |
"source":{"country":"GB"}, | |
"destination":{"country":"HK"}, | |
"entityType":"B2C", | |
"currency":"GBP", | |
"shipping":{"cost":25,"insurance":0,"mode":"air","express":true}, | |
"items":[{ | |
"id":"1", |
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
<?php | |
require '../vendor/autoload.php'; | |
use OAuth\Common\Consumer\Credentials; | |
use OAuth\OAuth1\Signature\Signature; | |
use OAuth\Common\Http\Uri\Uri; | |
use Zend\Http\Headers; | |
use Zend\Http\Request; |
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
<?php | |
require '../vendor/autoload.php'; | |
use Zend\Http\Headers; | |
use Zend\Http\Request; | |
use Zend\Http\Client; | |
use Zend\Stdlib\Parameters; | |
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
<?php | |
// basic information needed for requests | |
$soapTokenUri = 'http://magento2ee.dev/soap/default?wsdl&services=integrationAdminTokenServiceV1'; | |
$soapResourceUri = 'http://magento2ee.dev/soap/default?wsdl&services=cmsBlockRepositoryV1'; | |
$username = 'admin'; | |
$password = 'admin123'; | |
$options = [ | |
'soap_version' => SOAP_1_2, |
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
<?php | |
error_reporting(E_ALL | E_STRICT); | |
ini_set('display_errors', 1); | |
ini_set('soap.wsdl_cache_enabled', '0'); | |
ini_set('soap.wsdl_cache_ttl', '0'); | |
$url = 'https://www.example.com/api/v2_soap/?wsdl'; | |
$options = ['trace' => 1, 'connection_timeout' => 120]; | |
$username = 'username'; |