bank.php 761 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * 1.2 进件相关信息查询 -> 银行列表查询
  4. * 接口:/api/v3/tkbs/bank
  5. * 请求加密:无 返回解密:无
  6. */
  7. $config = require __DIR__ . '/bootstrap.php';
  8. $api = new \Lakala\OpenAPISDK\V3\Api\LakalaApi($config, \Lakala\OpenAPISDK\V3\Api\EncryptMode::NONE);
  9. $request = new \Lakala\OpenAPISDK\V3\Model\ModelRequest();
  10. $request->setReqData([
  11. 'org_code' => JINGJIAN_ORG_CODE,
  12. 'area_code' => '1000',
  13. 'bank_name' => '',
  14. ]);
  15. try {
  16. $response = $api->tradeApi('/api/v3/tkbs/bank', $request);
  17. print_r($response->getRespData());
  18. echo $response->getCode();
  19. print_r($response->getHeaders());
  20. echo $response->getOriginalText();
  21. } catch (\Lakala\OpenAPISDK\V3\ApiException $e) {
  22. echo $e->getMessage();
  23. }