Follow on Google News News By Tag * Chat Visitors information * Banckle cloud apis * Live chat development * Restful Apis * Operators information * More Tags... Industry News News By Place Country(s) Industry News
Follow on Google News | How to Get Chat Visitors & Operators information in ASP.NET Using Cloud APIsCloud API for Live Chat and to Get Online and Queued Visitors and Operators Information
By: Banckle Prerequisites You can easily access Banckle.Chat API by using Swagger API Explorer: http://chat.banckle.com/ In order to use Swagger API Explorer, you must have: A valid Banckle Account. You can create new Banckle Account by using this link: https://apps.banckle.com/ A valid Banckle API key. You will get API key from your Dashboard after successful login A Valid Banckle Authorize Token which you can get from this url: https://apps.banckle.com/ Get permission to access Banckle.Chat API Service. See Create New Session for more information. Application Details This application is developed in ASP.NET and will you a solution of how to get the details regarding online visitors, visitors in queue and details of operators by using a valid API Key and Authorized Token. You can get API Key from your application dashboard once you have logged in and below is the code to get authorized token using the combination of your username and password. Get Authorized Token protected void Get_Authorized_ { // Create JSON object to be sent JObject request_json = new JObject(); request_ request_ string request_body = request_json.ToString(); string request_url = "https://apps.banckle.com/ // Create request object HttpWebRequest request = (HttpWebRequest) // Add custom headers for authentication request.Headers.Add(" // request.Headers.Add(" // Set request parameters request.Method = "POST"; request.ContentType = "application/ request.ContentLength = request_body.Length; // Add the required JSON to request object StreamWriter request_writer = new StreamWriter( request_ request_ // Retrieve response object WebResponse response = request.GetResponse(); Stream response_stream = response.GetResponseStream(); // Fetch response as string string response_body = new StreamReader( // Close response stream to release resources response_ // Parse response as JSON object JObject response_json = JObject.Parse( auth_token = response_json[" } Create New Session After providing a valid key and getting an authorized token, a new session is created which is used to get the information from Cloud. We need to pass a valid token to get the session information. Below is the code to create new session by passing authorized token in request url. protected string Generate_Session() End
Account Email Address Account Phone Number Disclaimer Report Abuse
|
|