PHP code example of ndadayo / nextengine

1. Go to this page and download the library: Download ndadayo/nextengine 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/ */

    

ndadayo / nextengine example snippets


$field = [
    'goods_id',
    'goods_representation_id',
    'goods_name',
];

$criteria = [
    [
        'field' => 'goods_id',
        'operator' => '-eq',
        'parameter' => 'goods_idを設定',
    ],
];

$fields = new MasterGoodsFields($field);
$criteria = new MasterGoodsCriteria($criteria);
$masterGoods = new MasterGoods();
$masterGoods->fields($fields)->criteria($criteria);

$response = $nextEngine($masterGoods, 'access_token');
$response->body();

$field = [
    'receive_order_shop_id',
    'receive_order_id',
    'receive_order_shop_cut_form_id',
];

$criteria = [
    [
        'field' => 'receive_order_id',
        'operator' => '-eq',
        'parameter' => 'receive_order_idを設定',
    ],
];

$fields = new ReceiveOrderBaseFields($field);
$criteria = new ReceiveOrderBaseCriteria($criteria);
$receiveOrderBase = new ReceiveOrderBase();
$receiveOrderBase->fields($fields)->criteria($criteria);
$response = $nextEngine($receiveOrderBase, 'access_token');
$response->body();

$field = [
    'receive_order_row_receive_order_id',
    'receive_order_row_shop_cut_form_id',
    'receive_order_row_no',
];

$criteria = [
    [
        'field' => 'receive_order_id',
        'operator' => '-eq',
        'parameter' => 'receive_order_idを設定',
    ],
];

$fields = new ReceiveOrderRowFields($field);
$criteria = new ReceiveOrderRowCriteria($criteria);
$receiveOrderRow = new ReceiveOrderRow();
$receiveOrderRow->fields($fields)->criteria($criteria);
$response = $nextEngine($receiveOrderRow, 'access_token');
$response->body();

$field = [
    'goods_page_goods_code',
    'goods_page_goods_name',
    'goods_page_display_flag',
];

$criteria = [
    [
        'field' => 'goods_page_goods_code',
        'operator' => '-eq',
        'parameter' => 'goods_page_goods_codeを設定',
    ],
];

$fields = new MasterGoodsPageFields($field);
$criteria = new MasterGoodsPageCriteria($criteria);
$masterGoodsPage = new MasterGoodsPage();
$masterGoodsPage->fields($fields)->criteria($criteria);
$response = $nextEngine($masterGoodsPage, 'access_token');
$response->body();

$field = [
    'shop_id',
    'shop_name',
];

$fields = new MasterShopFields($field);
$masterShop = new MasterShop();
$masterShop->fields($fields);

$response = $nextEngine($masterShop, 'access_token');
$response->body();

$receiveOrderBaseShipped = new ReceiveOrderBaseShipped();
$receiveOrderBaseShipped->receiveOrderId('order_idを設定');
$receiveOrderBaseShipped->receiveOrderLastModifiedDate('last_modified_dateを設定');

$response = $nextEngine($receiveOrderBaseShipped, 'access_token');
$response->body();

$field = ['set_goods_id'];

$fields = new MasterSetGoodsFields($field);
$masterSetGoods = new MasterSetGoods();
$masterSetGoods->fields($fields);
$nextEngine = new NextEngine($client);
$response = $nextEngine($masterSetGoods, 'access_token');
$response->body();