in Platform Updates

C# library for LiveChat API

Krzysztof Górski in Programming, on December 10, 2015

We have just published the C# library for the LiveChat API. With only two lines of code you can add an agent, create a ticket, start a chat or get the availability report.

Here is an example of how to get the list of all agents:

public class ApiExample
{
    LiveChatApi.Api Api;

    public ApiExample()
    {
        Api = new LiveChatApi.Api("username@mycompany.com", "API_KEY");
        GetAgents().Wait();
    }

    public async Task GetAgents()
    {
        string result = await Api.Agents.List();
        Console.WriteLine(result);
    }
}

Visit the project website at GitHub, where you can find installation guidelines and more usage examples.

If you are interested in evaluating the LiveChat API using PHP, node.js or Ruby check out the LiveChat REST API website for more information.

See other Platform Updates

Installation and Update Systems for Windows (Part 2): ClickOnce - As simple as It Gets?

In early 2014, inspired by the Slack desktop application for OS X, LiveChat decided to create a new desktop application in a form of a smart….

Read more

Testing Angular 2 Apps (Part 1): The Beginning

Introduction Angular 2 tends to be one of the hottest front-end framework last time.

Read more
See all updates