<?php
ini_set("display_errors", 0);
date_default_timezone_set("Asia/Shanghai");
error_reporting(E_ALL);
set_time_limit(0);
header("Content-type: text/html; charset=utf-8");
$Kwaixiaodian = new Kwaixiaodian();
$Kwaixiaodian->appKey = $appKey = 'appKey ';
$Kwaixiaodian->appSecret = $appSecret = 'appSecret ';
$Kwaixiaodian->signSecret = 'signSecret ';
$Kwaixiaodian->debug = 1;;
$Kwaixiaodian->access_token = 'access_token';
$arr = $Kwaixiaodian->api('open.item.list.get', array());
//$arr =$Kwaixiaodian->api('open.user.seller.get',array());
echo '<pre>';
print_r($arr);
echo '</pre>';
class Kwaixiaodian {
public $appKey;
public $appSecret;
public $signSecret;
public $syncAPIClient;
public $serverHost = "https://open.kwaixiaodian.com/";
public $webSite = '1688';
public $access_token = '';
public $debug = false;
public function Api($apiType, $param, $method = 'get') {
$arr['appkey'] = $this->appKey;
$arr['version'] = '1';
$arr['access_token'] = $this->access_token;
$arr['timestamp'] = $this->getMi