Skip to content

下载电子回单

下载电子回单API为通用接口,商家转账等业务电子回单均可通过该接口进行下载。

请求参数类型描述
queryobject声明请求的查询参数
tokenstring
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' => '',
  ],
]);
返回字典类型描述
文件流(需解析为对应数据)

参阅 官方文档

Published on the GitHub by TheNorthMemory