下载电子回单
下载电子回单API为通用接口,商家转账等业务电子回单均可通过该接口进行下载。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
token | string |
php
$savedTo = \GuzzleHttp\Psr7\Utils::tryFopen('./somehowfile.csv.gz', 'w+');
$stream = \GuzzleHttp\Psr7\Utils::streamFor($savedTo);
$instance->v3->transferdownload->signfile->getAsync([
'sink' => $stream,
'query' => [
'token' => '',
],
])
->wait();
php
$savedTo = \GuzzleHttp\Psr7\Utils::tryFopen('./somehowfile.csv.gz', 'w+');
$stream = \GuzzleHttp\Psr7\Utils::streamFor($savedTo);
$instance->chain('v3/transferdownload/signfile')->getAsync([
'sink' => $stream,
'query' => [
'token' => '',
],
])
->wait();
php
$savedTo = \GuzzleHttp\Psr7\Utils::tryFopen('./somehowfile.csv.gz', 'w+');
$stream = \GuzzleHttp\Psr7\Utils::streamFor($savedTo);
$instance['v3/transferdownload/signfile']->getAsync([
'sink' => $stream,
'query' => [
'token' => '',
],
])
->wait();
php
$savedTo = \GuzzleHttp\Psr7\Utils::tryFopen('./somehowfile.csv.gz', 'w+');
$stream = \GuzzleHttp\Psr7\Utils::streamFor($savedTo);
$instance->v3->transferdownload->signfile->get([
'sink' => $stream,
'query' => [
'token' => '',
],
]);
php
$savedTo = \GuzzleHttp\Psr7\Utils::tryFopen('./somehowfile.csv.gz', 'w+');
$stream = \GuzzleHttp\Psr7\Utils::streamFor($savedTo);
$instance->chain('v3/transferdownload/signfile')->get([
'sink' => $stream,
'query' => [
'token' => '',
],
]);
php
$savedTo = \GuzzleHttp\Psr7\Utils::tryFopen('./somehowfile.csv.gz', 'w+');
$stream = \GuzzleHttp\Psr7\Utils::streamFor($savedTo);
$instance['v3/transferdownload/signfile']->get([
'sink' => $stream,
'query' => [
'token' => '',
],
]);
返回字典 | 类型 | 描述 |
---|---|---|
文件流(需解析为对应数据) |
参阅 官方文档