Skip to content

查询机构信息接口

根据机构ID或者机构名称,查询入驻的机构信息

请求参数类型描述
queryobject声明请求的查询参数
organization_idstring机构ID
organization_namestring机构名称
php
$instance->v3->offlinefacemch->organizations->getAsync([
  'query' => [
    'organization_id'   => 'DBES323aeb',
    'organization_name' => '南山中兴小学部',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/offlinefacemch/organizations')->getAsync([
  'query' => [
    'organization_id'   => 'DBES323aeb',
    'organization_name' => '南山中兴小学部',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/offlinefacemch/organizations']->getAsync([
  'query' => [
    'organization_id'   => 'DBES323aeb',
    'organization_name' => '南山中兴小学部',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->offlinefacemch->organizations->get([
  'query' => [
    'organization_id'   => 'DBES323aeb',
    'organization_name' => '南山中兴小学部',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlinefacemch/organizations')->get([
  'query' => [
    'organization_id'   => 'DBES323aeb',
    'organization_name' => '南山中兴小学部',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlinefacemch/organizations']->get([
  'query' => [
    'organization_id'   => 'DBES323aeb',
    'organization_name' => '南山中兴小学部',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
organization_idstring机构ID
organization_namestring机构名称

参阅 官方文档

Published on the GitHub by TheNorthMemory