// var_dump($append_ret); // $odescr = array('test1'=>'testa','test2'=>'testb'); // $com_ret = $client->commitObj($token, $testfile, $odescr, $ftype); // var_dump($com_ret); // $attribute = 'test1'; // $ret1 = $client->queryAttribute($token, $attribute, $testfile, $ftype); // var_dump($ret1); // $attribute = 'test2'; // $ret2 = $client->queryAttribute($token, $attribute, $testfile, $ftype); // var_dump($ret2); $q_ret = $client->QueryFile($token, $ftype, $testfile); var_dump($q_ret); echo "====333==<br />"; $filepath = 'C:\\Users\\Administrator\\Desktop\\test12.jpg'; $download_arr['objid'] = 'netdiskportrait'; $download_arr['offerset'] = 0; $download_arr['reqlen'] = 74671; $download_arr['type'] = $ftype; $download_param = new \proto\DownloadParam($download_arr); $download = $client->downloadFile($token, $download_param); var_dump($download->result); file_put_contents($filepath, $download->bin); $transport->close(); } catch (TException $tx) { print 'TException: ' . $tx->getMessage() . "\n"; } ?> <?php