donejeh / nuban
您可以使用它来获取尼日利亚任何银行账户的账户名
2.0.0
2023-09-07 09:59 UTC
README
您可以使用它来获取尼日利亚任何银行账户的账户名
-
终身访问。无限账户查找
-
输入账户号码以获取姓名和银行
-
输入账户号码和银行代码以获取账户名
通过Composer安装
composer require donejeh/nuban
应用程序服务提供商...
Donejeh\Nuban\NubapiServiceProvider::class
发布配置文件
php artisan vendor:publish --provider="Donejeh\Nuban\NubapiServiceProvider" --tag="config"
默认配置文件内容
<?php return [ // The Host of the API. 'host' => env('NUB_API_HOST', 'https://nubapi.com/api'), /** * Your API Token from (https://nubapi.com/user/api-tokens) * */ 'api_token' => env('NUB_API_TOKEN', ''), 'options' => [ // Validate number on your server without making an APi request. 'validate_number_locally' => true, //This timeout applies to client connections and determine when //The whole response must be read before it exceeded 'request_timeout' => 5, ] ];
API使用
通过选择注册按钮注册开发人员账户。注册后,访问您的账户仪表板。
您可以通过以下步骤获取您的API密钥并在应用程序中配置它
-
转到API创建访问令牌页面。
-
生成您唯一的API密钥。
-
一旦您有了API密钥,将其插入到您的
.env
文件或配置文件中。
在您的应用程序控制器中
use Donejeh\Nuban\Nubapi;
$nubanApi = app(NubApi::class);
$response = $nubanApi->getAccountDetails('1056684123', '013');
print_r($response);
响应JSON
{
"account_number": "0080******",
"account_name": "Jane Doe",
"first_name: : "Jane"
"last_name: : "Doe"
"Bank_name": "ACCESS BANK PLC",
"bank_code": "044",
"requests": "Free",
"status": "success"
}
有用的链接
- 银行列表代码https://gist.github.com/donejeh/591f2739d986d7ae6338ea2921d03cf4
- 银行列表JSONhttps://gist.github.com/donejeh/5dd73ca4e2c8c94527219af52a5f53b8
如有支持和查询,请通过WhatsApp联系我https://twitter.com/don_ejeh
感谢https://github.com/olakunlevpn/Nigeria-Bank-Account-Number-API
法律
非常合法且安全
安全
我们的API非常安全,并且我们的系统不存储任何银行记录