Files
.circleci
.github
.run
.vscode
BTCPayServer
BTCPayServer.Abstractions
BTCPayServer.Client
JsonConverters
Models
BTCPayServer.Client.csproj
BTCPayServerClient.APIKeys.cs
BTCPayServerClient.Apps.cs
BTCPayServerClient.Authorization.cs
BTCPayServerClient.CustodianAccounts.cs
BTCPayServerClient.Custodians.cs
BTCPayServerClient.Health.cs
BTCPayServerClient.Invoices.cs
BTCPayServerClient.LNURLPayPaymentMethods.cs
BTCPayServerClient.Lightning.Internal.cs
BTCPayServerClient.Lightning.Store.cs
BTCPayServerClient.LightningAddresses.cs
BTCPayServerClient.LightningNetworkPaymentMethods.cs
BTCPayServerClient.Misc.cs
BTCPayServerClient.Notifications.cs
BTCPayServerClient.OnChainPaymentMethods.cs
BTCPayServerClient.OnChainWallet.Objects.cs
BTCPayServerClient.OnChainWallet.cs
BTCPayServerClient.PaymentRequests.cs
BTCPayServerClient.PayoutProcessors.cs
BTCPayServerClient.PullPayments.cs
BTCPayServerClient.ServerInfo.cs
BTCPayServerClient.StoreEmail.cs
BTCPayServerClient.StorePaymentMethods.cs
BTCPayServerClient.StorePayoutProcessors.cs
BTCPayServerClient.StoreRatesConfiguration.cs
BTCPayServerClient.StoreUsers.cs
BTCPayServerClient.Stores.cs
BTCPayServerClient.Users.cs
BTCPayServerClient.Webhooks.cs
BTCPayServerClient.cs
GreenFieldAPIException.cs
GreenFieldValidationException.cs
Permissions.cs
PushNuget.ps1
icon.png
BTCPayServer.Common
BTCPayServer.Data
BTCPayServer.PluginPacker
BTCPayServer.Rating
BTCPayServer.Tests
Build
Plugins
docs
.dockerignore
.editorconfig
.gitattributes
.gitignore
Changelog.md
LICENSE
README.md
RELEASE-CHECKLIST.md
SECURITY.md
amd64.Dockerfile
arm32v7.Dockerfile
arm64v8.Dockerfile
btcpayserver.sln
build.ps1
build.sh
docker-entrypoint.sh
nuget.config
publish-docker.ps1
run.ps1
run.sh
btcpayserver/BTCPayServer.Client/BTCPayServerClient.Health.cs

16 lines
458 B
C#

using System.Threading;
using System.Threading.Tasks;
using BTCPayServer.Client.Models;
namespace BTCPayServer.Client
{
public partial class BTCPayServerClient
{
public virtual async Task<ApiHealthData> GetHealth(CancellationToken token = default)
{
var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/health"), token);
return await HandleResponse<ApiHealthData>(response);
}
}
}