mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
16 lines
469 B
C#
16 lines
469 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Client.Models;
|
|
|
|
namespace BTCPayServer.Client
|
|
{
|
|
public partial class BTCPayServerClient
|
|
{
|
|
public virtual async Task<ServerInfoData> GetServerInfo(CancellationToken token = default)
|
|
{
|
|
var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/server/info"), token);
|
|
return await HandleResponse<ServerInfoData>(response);
|
|
}
|
|
}
|
|
}
|