ServerDateTime
Get server time
{{:: 'controllers.documentation.chooseFramework' | translate }}
PM > Install-Package
NikSms.Library.Net
PM > Install-Package
NikSms.Library.NetCore
using NikSms.Library.Net.ViewModels;
using NikSms.Library.Net.WebApi;
using System;
using System.Threading.Tasks;
namespace AwesomeApplication
{
public class NikSmsApiV2Client
{
private readonly PublicApiV2 service;
public NikSmsApiV2Client(string username, string password)
{
service = new PublicApiV2(username, password);
}
public async Task<DateTime?> ServerDateTime()
{
return await service.ServerDateTime();
}
}
}