setCredentials($appId, $ak, $sk); $config->endPoint = "http://120.48.16.137:8360"; $xHandle = new XassetClient($config); //生成新的account $ac = New Account($binPath); $account = $ac->createAccount(); //使用现有account /*$addr = ''; $pubKey = ''; $privtKey = ''; $account = array( 'address' => $addr, 'public_key' => $pubKey, 'private_key' => $privtKey, );*/ //文件相关接口 $stoken = $xHandle->getStoken($account); var_dump($stoken);