address-so / address-php-sdk
ADDRESS PHP SDK
v1.1.1
2020-08-14 15:26 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.3
This package is not auto-updated.
Last update: 2024-06-15 10:27:56 UTC
README
address-php-sdk
PHP library for ADDRESS API integration. Full ADDRESS API features documentation can be found here.
1. Prerequisites
- PHP 7.2 or later
2. Installation
The ADDRESS PHP SDK can be installed using Composer by running the following command:
composer require address-so/address-php-sdk
3. Initialization
Create AddressApiClient object using the following code:
$label = 'btc'; $api_key = 'your_api_key'; $secret_token = 'your_secret_token'; $address = new \AddressSo\AddressApiClient($label, $api_key, $secret_token);
4. Request sample
Example of sending funds from wallet
$label = 'btc'; $api_key = 'your_api_key'; $secret_token = 'your_secret_token'; $address = new \AddressSo\AddressApiClient($label, $api_key, $secret_token); $wallet_id = 1; $amount = 0.1; $recipient = 'bitcoin_address'; $payment_password = 'your_payment_password'; $address->sendFromWallet($wallet_id, $amount, $recipient, $payment_password);