PHP code example of sureyee / rock-fintech
1. Go to this page and download the library: Download sureyee/rock-fintech library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sureyee / rock-fintech example snippets
// 实例化Client,传入配置信息
$clinet = new Sureyee\RockFinTech\Client($rft_key, $rft_secret, $rft_org, $pub_key, $pri_key)
// 实例化请求对象
$request = new Request('create_account_p');
$userinfo = [
// ...
];
//设定参数,发起请求。
$response = $client->request($request->setParams($userinfo));
if ($response->isSuccess()) {
// [ItemResponse]
$items = $response->getItems();
} else {
echo $reponse->getMessage();
}