Skip to content

获取出租车信息

获取出租车信息

请求参数类型描述
plate_numberstring车牌号
queryobject声明请求的查询参数
region_idinteger行政区划代码
php
$instance->v3->taxiInvoice->taxies->_plate_number_->getAsync([
  'plate_number' => '粤B12345',
  'query' => [
    'region_id' => 510100,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/taxi-invoice/taxies/{plate_number}')->getAsync([
  'plate_number' => '粤B12345',
  'query' => [
    'region_id' => 510100,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/taxi-invoice/taxies/{plate_number}']->getAsync([
  'plate_number' => '粤B12345',
  'query' => [
    'region_id' => 510100,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->taxiInvoice->taxies->_plate_number_->get([
  'plate_number' => '粤B12345',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/taxies/{plate_number}')->get([
  'plate_number' => '粤B12345',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/taxies/{plate_number}']->get([
  'plate_number' => '粤B12345',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
plate_numberstring车牌号
company_namestring公司名称
company_mchidstring公司商户号
main_licensestring主班司机资格证号
deputy_licensestring副班司机资格证号
region_idinteger行政区划代码
support_invoiceboolean是否支持开票
taxi_statestring出租车状态

参阅 官方文档

Published on the GitHub by TheNorthMemory