mahtab2003/faucetpay
最新稳定版本:1.0
Composer 安装命令:
composer require mahtab2003/faucetpay
包简介
An API Wrapper to Interact with FaucetPay Account.
README 文档
README
An API Wrapper to Interact with FaucetPay.
Installation
This package is best installed through Composer:
composer require mahtab2003/faucetpay
Usage
Before you can get started, you need to get the API Key from FaucetPay. Login to the FaucetPay, go to Faucet Owner Dashboard -> Your Faucet -> Reveal API Key. Use this API key to interact with FaucetPay.
The FaucetPay API exposes the following methods. The available parameters are listed below.
- listCurrencies: Get the list of all supported currencies.
- listFaucets: Get the list of all available faucets.
- getBalance: Get the balance of the faucet.
- checkAddress: Check if the address is linked to any FaucetPay account.
- getPayouts: Get the list of all recent faucets.
- send: Send funds to another FaucetPay account.
Example
use \Mahtab2003\FaucetPay\Api; // Create a new Api class instance. $api = new Api('API Key', 'BTC'); // Get the balance of the faucet. $response = $api->getBalance(); // Check whether the request was successful. if ($response->isSuccessful()) { $data = $response->getData(); echo 'Your faucet balance is: ' . $data['balance']; } else { echo 'Error: ' . $response->getMessage(); }
License
©️ Copyright 2022 NXTS Developer. Code released under the MPL-2.0 License.
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2022-06-02