Skip to content

获取司机信息

获取司机信息

请求参数类型描述
driver_licensestring营运资格证号
queryobject声明请求的查询参数
region_idinteger行政区划代码
php
$instance->v3->taxiInvoice->drivers->_driver_license_->getAsync([
  'driver_license' => '6298416',
  '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/drivers/{driver_license}')->getAsync([
  'driver_license' => '6298416',
  '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/drivers/{driver_license}']->getAsync([
  'driver_license' => '6298416',
  '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->drivers->_driver_license_->get([
  'driver_license' => '6298416',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/drivers/{driver_license}')->get([
  'driver_license' => '6298416',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/drivers/{driver_license}']->get([
  'driver_license' => '6298416',
  'query' => [
    'region_id' => 510100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
driver_namestring司机姓名
company_namestring公司名称
company_mchidstring商户号
driver_licensestring营运资格证号
driver_categorystring司机类别
driver_photoobject司机照片
photo_typestring照片类型
photo_digestobject司机照片摘要
hash_typestring哈希类型
hash_valuestring哈希值
photo_urlstring头像url
photo_datastring头像icon
region_idinteger行政区划代码
driver_statestring司机状态

参阅 官方文档

Published on the GitHub by TheNorthMemory