monster / zhima-credit
zhima credit api. life is hard.
0.1.1
2016-12-23 03:07 UTC
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.12
This package is auto-updated.
Last update: 2024-12-21 21:14:26 UTC
README
芝麻信用api
require 'vendor\autoload.php'; use Monster\Zhima\Client; $config = new Monster\Zhima\Config(); $config->setAppId('1001528'); $config->setPrivateKey(__DIR__ . '/rsa/rsa_private_key.pem'); $config->setZhimaPublicKey(__DIR__ . '/rsa/rsa_public_key.pem'); $config->setChannel('api'); $creditIvsDetail = new \Monster\Zhima\Handlers\CreditIvsDetail(); $creditIvsDetail->setCertNo('33022719xxxxxxxxxxx'); $creditIvsDetail->setName('张三'); $creditIvsDetail->setCertType('100'); $client = new Client(new \GuzzleHttp\Client(), $config); $result = $client->with($creditIvsDetail)->fetch(); var_dump($result);