Welcome to the Acuity Scheduling C# SDK. This SDK provides examples and a standard library for integrating with the Acuity Scheduling API using .Net. You can learn more about developing for Acuity Scheduling at developers.acuityscheduling.com.
This package can be installed via the nuget package manager.
$ dotnet add package AcuityScheduling.API --version 1.0.0-alpha3PS C:\ProjectDir\> Install-Package AcuityScheduling.API -Version 1.0.0-alpha3<PackageReference Include="AcuityScheduling.API" Version="1.0.0-alpha3" />$ paket add AcuityScheduling.API --version 1.0.0-alpha3var httpClient = new HttpClient();
var byteArray = Encoding.ASCII.GetBytes("username:password");
httpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
var client = new Client(httpClient)
{
BaseUrl = "https://acuityscheduling.com/api/v1/"
};
var x = await client.ListAppointmentsAsync();
Console.WriteLine(JsonConvert.SerializeObject(x, Formatting.Indented));