<?php
include('../libs/function.php');
$json = curl([
    'url' => 'http://test.edi-runtime.jdl.cn/api/sap/QueryProductInfo',
    'auth' => [
        'type' => 'BASIC',
        'username' => 'gspcpgl',
        'password' => 'sPEj3kGMfy*7!$+V'
    ],
    'dataType' => 'json',
    'data' => [
        'brand_code' => 'DRJN',
        'segments' => 'items,applications,interchange_informations,custom_fields',
        'use_staging_database' => 1,
        'page' => 1,
        'limit' => 1
    ],
]);

print_r($json);