Git Product home page Git Product logo

api-client-csharp's People

Contributors

krzysztof-gorski avatar quarties avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-client-csharp's Issues

Chat test error: Get tending messages

Hi - I am getting an error implementing the chat test method. I think it might be that I need the actual sessionID, but I am not sure how to get that.

        public async Task ChatTest()
        {
            Console.WriteLine("Start chat");
            string visitorID = "S1415110640.63935a25f1";
            string licenseID = "my_license_id";
            string welcomeMessage = "Hello";
            string result = await Api.Chat.StartChat(visitorID, licenseID, welcomeMessage);
            Console.WriteLine(result);

            Console.ReadLine();

            Console.WriteLine("Get pending messages");
            string sessionID = "CS1449238356.e911a7da96";
            result = await Api.Chat.GetPendingMessages(visitorID, licenseID, sessionID);
            Console.WriteLine(result);

            Console.ReadLine();

            Console.WriteLine("Send message");
            string message = "new message";
            result = await Api.Chat.SendMessage(visitorID, licenseID, sessionID, message);
            Console.WriteLine(result);

            Console.ReadLine();

            Console.WriteLine("Close chat");
            result = await Api.Chat.CloseChat(visitorID, licenseID, sessionID);
            Console.WriteLine(result);

            Console.WriteLine("");
        }

Chat starts:
image

Error when getting pending messages
image

Client for api V3

Hello,
As api v2 is deprecated which was working with api key and there is no place to get the api key anymore in the user login area of your site, I tried to find a new client which is suitable for api v3 but unfortunately there is no one. I have read your documentation of api v3 and it's showing curl commands. I cloned them in postman and it returned response but when I am trying to clone same webrequest in my c# application, it throws StatusCode: 422, ReasonPhrase: 'Unprocessable Entity' error.

Getting access to Agents chat messages through C# using LiveChat API

I have managed to connect to LiveChat API using C# with my account and access key. I have included the LiveChat API in a c# project. What I want to really do is get access to chats by other agents so i can store them in data structures and push to my server. I tried this code from your documentation and added a option to the menu list called getResponses but it still does not work. Can you help me out in getting access to chat messages by each agent through the API??
`
public async Task Getresponses()
{
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters.Add("date_from", "2017-10-27");
parameters.Add("query", "test");
string result = await Api.Archives.Get(parameters);

        return await Api.Get(result);
    }

`

Update Visitor Details

I am attempting to use the livechat API to add custom visistor details as described here: https://developers.livechatinc.com/rest-api/#add-custom-visitor-details

When I use the Visitors.AddCustomDetails() method it returns "{"result":"Visitor details added"}" however the fields are not displayed when viewing the visitor on the web portal.

I fields are also not visible on the visitor when returned from the Visitors.List() method.

Please could you advise.

Thanks,
Chris Fitz-Avon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.