* Adding Store (Users) endpoints. * Add Store Email endpoints; fix codestyle. * Adding Store Rates, Rates config, rate sources. * Add server info example.
18 lines
391 B
PHP
18 lines
391 B
PHP
<?php
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use BTCPayServer\Client\Server;
|
|
|
|
// Fill in with your BTCPay Server data.
|
|
$apiKey = '';
|
|
$host = ''; // e.g. https://your.btcpay-server.tld
|
|
|
|
// Get information about store on BTCPay Server.
|
|
try {
|
|
$client = new Server($host, $apiKey);
|
|
var_dump($client->getInfo());
|
|
} catch (\Throwable $e) {
|
|
echo "Error: " . $e->getMessage();
|
|
}
|