This method returns a unique token number that enables accessing other API methods without your username and password.
Function | To get Token using User name & Password |
---|---|
URL | https://api.k12insight.com/LTService1.svc/GetTokenX |
Method | POST |
Input Parameter | Data Type | Description |
---|---|---|
*Username | String | The username that is configured while signing up for Let's Talk! This field is mandatory. |
*Password | String | The password that is configured while signing up for Let's Talk! This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Result | String | A unique token number which can be used to access other API methods without username and password. |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetTokenX");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
LoginService objLogin = new LoginService();
objLogin.Username = "john@abc.com";
objLogin.Password = "password";
var json = new JavaScriptSerializer().Serialize(objLogin);
//E.g Following Format will be require
streamWriter.Write(json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/GetTokenX');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"objLogin": {
"UserName": "john@abc.com",
"Password": "password"
}
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/GetTokenX\
-H 'Content-Type: application/json' \
-d '{"objLogin":{"UserName":"testuser@gmail.com","Password":"test123"}}'
mport requests
url = "https://api.k12insight.com/LTService1.svc/GetTokenX"
payload = "{\r\n \"objLogin\": {\r\n \"UserName\": \"john@abc.com\",\r\n \"Password\": \"password\"\r\n }\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetTokenX"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Dim streamWriter As StreamWriter = New StreamWriter(httpWebRequest.GetRequestStream)
Dim objLogin As LoginService = New LoginService
objLogin.Username = "john@abc.com"
objLogin.Password = "password"
Dim json As String = JsonConvert.SerializeObject(objLogin)
streamWriter.Write(json)
streamWriter.Flush()
streamWriter.Close()
Dim httpResponse As HttpWebResponse = CType(httpWebRequest.GetResponse, HttpWebResponse)
Dim streamReader As StreamReader = New StreamReader(httpResponse.GetResponseStream)
Dim strresult As String = streamReader.ReadToEnd()
Dim result As Object = JsonConvert.DeserializeObject(strresult)
{
"Errors": [],
"Result": "48e8036b-4a93-44f3-9416-fdc915e9cc3d"
}
{
"Errors": [],
"Result": "48e8036b-4a93-44f3-9416-fdc915e9cc3d"
}
{
"Errors": [],
"Result": "48e8036b-4a93-44f3-9416-fdc915e9cc3d"
}
{
"Errors": [],
"Result": "48e8036b-4a93-44f3-9416-fdc915e9cc3d"
}
{
"Errors": [],
"Result": "48e8036b-4a93-44f3-9416-fdc915e9cc3d"
}
To create a user, no need to pass isActive bit (It is True by Default), Once the user is created, the same will be active and no activation email will be sent.
Function | To create SIS users with school departments |
---|---|
Url | https://api.k12insight.com /LTService1.svc/SISGetAllActiveUsers |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | STRING | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*EmailId | STRING | User Email address. This field is mandatory. |
EmployeeId | STRING | SIS Employee Id |
MiddleName | STRING | User Middle Name |
*FirstName | STRING | User First Name. This field is mandatory. |
*LastName | STRING | User First Name. This field is mandatory. |
Title | STRING | User Designation |
* Role | STRING | Expected values from [System Administrator, Global User, Team member, Recorder] This field is mandatory. |
IsActive | Boolean | User active? (True/False) |
Departments | Object | Comma Separated List of School department IDs |
TeamMemberTopics | Object | Comma Separated List of Topics where the user is assigned as Team member |
OwnerTopics | Object | Comma Separated List of Topics where the user is assigned as owner |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISCreateUser");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "d4718c1e-4b6e-499a-8056-cc3b76f67393";
string EmailID= "spc1@gmailpro.ml";
string EmployeeID= "100";
string FirstName= "Francis";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, EmailID = EmailID, EmployeeID = EmployeeId, FirstName= FirstName});
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/SISCreateUser');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"EmployeeId":"100",
"FirstName":"Francis"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
{"User":
"EmailID":"tantoney+27@zarca.com",
"EmployeeId":"tantoney27",
"FirstName":"27F",
"MiddleName":"27M",
"LastName":"Employee",
"Title":"Director of Finance",
"Role": "System Administrator",
"isActive": true,
"Departments": ["AA1"],
"TeamMemberTopics":["nexus-Copy"],
"OwnerTopics":["nexus-Copy"]
}
}
import requests
url = "https://api.k12insight.com/LTService1.svc/SISCreateUser"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"EmailID\":\"spc1@gmailpro.ml\"\r\n,\r\n \"EmployeeId\":\"100\"\r\n,\r\n \"FirstName\":\"Francis\"\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISCreateUser"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim EmailID As String = "spc1@gmailpro.ml"
Dim EmployeeID As String = "100"
Dim FirstName As String = "Francis"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
EmailID,
EmployeeID,
FirstName
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "User added Successfully.",
"Status": true
}
{
"Reason": "User added Successfully.",
"Status": true
}
{
"Reason": "User added Successfully.",
"Status": true
}
{
"Reason": "User added Successfully.",
"Status": true
}
{
"Reason": "User added Successfully.",
"Status": true
}
All fields included with the request other than Email Address will be updated using the below API request
Function | To Update SiS users with school department |
---|---|
Url | https://api.k12insight.com//LTService1.svc/SISUpdateUser |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | STRING | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
EmailId | STRING | Either User Email address or SIS EmployeeID is Mandatory to update other user details |
EmployeeId | STRING | SIS Employee Id [Optional] |
MiddleName | STRING | User Middle Name |
*FirstName | STRING | User First Name. This field is mandatory. |
*LastName | STRING | User First Name. This field is mandatory. |
Title | STRING | User Designation |
* Role | STRING | Expected values from [System Administrator, Global User, Team member, Recorder] This field is mandatory. |
IsActive | Boolean | User active? (True/False) |
Departments | Object | Comma Separated List of School department IDs |
TeamMemberTopics | Object | Comma Separated List of Topics where the user is assigned as Team member |
OwnerTopics | Object | Comma Separated List of Topics where the user is assigned as owner |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISUpdateuser");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "d4718c1e-4b6e-499a-8056-cc3b76f67393";
string EmailID= "spc1@gmailpro.ml";
string EmployeeId= "100";
string FirstName= "Francis";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, EmailID = EmailID, EmployeeId = EmployeeId=, FirstName= FirstName});
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/SISUpdateuser');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"EmployeeId":"100",
"FirstName":"Francis"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
{
"User":{
"Token":"6c59862c-df9e-46da-9c49-f76599717d5e",
"EmailID":"tantoney+27@zarca.com",
"EmployeeId":"tantoney28",
"FirstName":"22227F",
"MiddleName":"22227M",
"LastName":"22227L",
"Title":"Director of Finance",
"Role":"System Administrator",
"isActive":true,
"Departments":["AA1"],
"TeamMemberTopics":["nexus-Copy"],
"OwnerTopics":["nexus-Copy"]
}
}
import requests
url = "https://api.k12insight.com/LTService1.svc/SISUpdateuser"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"EmailID\":\"spc1@gmailpro.ml\"\r\n,\r\n \"EmployeeId\":\"100\"\r\n,\r\n \"FirstName\":\"Francis\"\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISUpdateuser"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim EmailID As String = "spc1@gmailpro.ml"
Dim EmployeeID As String = "100"
Dim FirstName As String = "Francis"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
EmailID,
EmployeeID,
FirstName
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
To deactivate a user, the request should include isActive bit as false, For that case, API request doesn’t require to include team members and owner's topic list (TeamMemberDeptIds, OwnerDeptIds)
Function | To deactivate the SIS user details |
---|---|
Url | https://api.k12insight.com/LTService1.svc/SISUpdateuser |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | STRING | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*EmailId | STRING | User Email address. This field is mandatory. |
EmployeeId | AlphaNumeric | SIS employee ID |
* IsActive | Boolean | User active? (True/False) |
NewTopicOwnerEmailID | String | Email Id of another user in district to whom the ownership of Topics is transferred from the current user |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISDeactivateUser");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "d4718c1e-4b6e-499a-8056-cc3b76f67393";
string EmailID= "spc1@gmailpro.ml";
string EmployeID= "100";
bool isActive= false;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, EmailID = EmailID, EmployeId = EmployeID, isActive = isActive});
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/SISDeactivateUser');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"EmployeeId":"100",
"isActive":false
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/_restAPI/LTservice.svc/SISDeactivateUser/
-H 'Content-Type: application/json' \
-d '{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"EmployeeId":"100",
"isActive":false
}
import requests
url = "https://api.k12insight.com/LTService1.svc/SISDeactivateUser"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"EmailID\":\"spc1@gmailpro.ml\"\r\n,\r\n \"EmployeeId\":\"100\"\r\n,\r\n \"isActive\":false\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISDeactivateUser"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim EmailID As String = "spc1@gmailpro.ml"
Dim EmployeeID As String = "100"
Dim isActive As Boolean = false
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
EmailID,
EmployeeID,
isActive
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
{
"Reason": "User details updated Successfully.",
"Status": true
}
This method used to get all users of a district account
Function | To get all users for a district |
---|---|
URL | https://api.k12insight.com /LTService1.svc/SISGetAllActiveUsers |
Method | POST |
Output Parameter | Data Type | Description |
---|---|---|
Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISGetAllActiveUsers");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "d4718c1e-4b6e-499a-8056-cc3b76f67393";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token});
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/SISGetAllActiveUsers');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
https://api.k12insight.com//LTService1.svc/ SISGetAllActiveUsers'
-H 'Content-Type: application/json' \
-d '{
"Token": "A97D1BAC-B5B5-4F12-880A-E1B34537D0BB"
}
import requests
url = "https://api.k12insight.com/LTService1.svc//SISGetAllActiveUsers"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\"}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/SISGetAllActiveUser"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Users": [
{
"Departments": [
{
"Id": 193,
"Name": "D777"
}
],
"EmailAddress": "peter@zarca.com",
"EmployeeId": "D7771",
"FirstName": "Peter",
"ID": 138255,
"LastName": "Rudolf",
"MiddleName": "B",
"Permission": "Team Member",
"Status": "Active",
"Title": "Finance Manager",
"Topics": [
{
"Id": 787891749,
"Name": "Top 10 Achivement",
"isOwner": true
},
{
"Id": 787891730,
"Name": "Top 10 News",
"isOwner": false
}
],
"UserGroups": []
}
],
"objResponcesStatus": {
"Reason": "Success",
"Status": true
}
}
{
"Users": [
{
"Departments": [
{
"Id": 193,
"Name": "D777"
}
],
"EmailAddress": "peter@zarca.com",
"EmployeeId": "D7771",
"FirstName": "Peter",
"ID": 138255,
"LastName": "Rudolf",
"MiddleName": "B",
"Permission": "Team Member",
"Status": "Active",
"Title": "Finance Manager",
"Topics": [
{
"Id": 787891749,
"Name": "Top 10 Achivement",
"isOwner": true
},
{
"Id": 787891730,
"Name": "Top 10 News",
"isOwner": false
}
],
"UserGroups": []
}
],
"objResponcesStatus": {
"Reason": "Success",
"Status": true
}
}
{
"Users": [
{
"Departments": [
{
"Id": 193,
"Name": "D777"
}
],
"EmailAddress": "peter@zarca.com",
"EmployeeId": "D7771",
"FirstName": "Peter",
"ID": 138255,
"LastName": "Rudolf",
"MiddleName": "B",
"Permission": "Team Member",
"Status": "Active",
"Title": "Finance Manager",
"Topics": [
{
"Id": 787891749,
"Name": "Top 10 Achivement",
"isOwner": true
},
{
"Id": 787891730,
"Name": "Top 10 News",
"isOwner": false
}
],
"UserGroups": []
}
],
"objResponcesStatus": {
"Reason": "Success",
"Status": true
}
}
{
"Users": [
{
"Departments": [
{
"Id": 193,
"Name": "D777"
}
],
"EmailAddress": "peter@zarca.com",
"EmployeeId": "D7771",
"FirstName": "Peter",
"ID": 138255,
"LastName": "Rudolf",
"MiddleName": "B",
"Permission": "Team Member",
"Status": "Active",
"Title": "Finance Manager",
"Topics": [
{
"Id": 787891749,
"Name": "Top 10 Achivement",
"isOwner": true
},
{
"Id": 787891730,
"Name": "Top 10 News",
"isOwner": false
}
],
"UserGroups": []
}
],
"objResponcesStatus": {
"Reason": "Success",
"Status": true
}
}
{
"Users": [
{
"Departments": [
{
"Id": 193,
"Name": "D777"
}
],
"EmailAddress": "peter@zarca.com",
"EmployeeId": "D7771",
"FirstName": "Peter",
"ID": 138255,
"LastName": "Rudolf",
"MiddleName": "B",
"Permission": "Team Member",
"Status": "Active",
"Title": "Finance Manager",
"Topics": [
{
"Id": 787891749,
"Name": "Top 10 Achivement",
"isOwner": true
},
{
"Id": 787891730,
"Name": "Top 10 News",
"isOwner": false
}
],
"UserGroups": []
}
],
"objResponcesStatus": {
"Reason": "Success",
"Status": true
}
}
This API method is used to Create a new User. It requires a POST request with the User object in the request body. The response will contain a Result field with the status and error message if any.
Function | To create a user |
---|---|
Url | https://api.k12insight.com/LTService1.svc/CreateUser |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | STRING | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*EmailId | STRING | User Email address. This field is mandatory. |
MiddleName | STRING | User Middle Name |
*FirstName | STRING | User First Name. This field is mandatory. |
*LastName | STRING | User Last Name. This field is mandatory. |
Title | STRING | User Designation |
* Role | STRING | Expected values from [System Administrator, Global User, Team member, Recorder] This field is mandatory. |
IsActive | Boolean | User active? (True/False) |
TeamMemberTopics | Object | Comma Separated List of Topics where the user is assigned as Team member |
OwnerTopics | Object | Comma Separated List of Topics where the user is assigned as owner |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/CreateUser");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "d4718c1e-4b6e-499a-8056-cc3b76f67393";
string EmailID= "spc1@gmailpro.ml";
string FirstName= "John";
string LastName= "Francis";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, EmailID = EmailID, FirstName, LastName= LastName});
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/CreateUser');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"FirstName":"John",
"LastName":"Francis"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/_restAPI/LTservice.svc/CreateUser/
-H 'Content-Type: application/json' \
-d '{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"FirstName":"John",
"LastName":"Francis"
}
import requests
url = "https://api.k12insight.com/LTService1.svc/CreateUser"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"EmailID\":\"spc1@gmailpro.ml\"\r\n,\r\n \"FirstName\":\"John\"\r\n,\r\n \"LastName\":\"Francis\"\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/CreateUser"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim EmailID As String = "spc1@gmailpro.ml"
Dim FirstName As String = "John"
Dim LastName As String = "Francis"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
EmailID,
FirstName,
LastName
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Errors": "User added Successfully.",
"Result": true
}
{
"Errors": "User added Successfully.",
"Result": true
}
{
"Errors": "User added Successfully.",
"Result": true
}
{
"Errors": "User added Successfully.",
"Result": true
}
{
"Errors": "User added Successfully.",
"Result": true
}
This API method is used to Update or Edit the User. It requires a POST request with the User object in the request body. The response will contain a Result field with the status and error message if any.
Function | To Edit the user details |
---|---|
Url | https://api.k12insight.com/LTService1.svc/Updateuser |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | STRING | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*EmailId | STRING | User Email address. This field is mandatory. |
MiddleName | STRING | User Middle Name |
*FirstName | STRING | User First Name. This field is mandatory. |
*LastName | STRING | User Last Name. This field is mandatory. |
Title | STRING | User Designation |
* Role | STRING | Expected values from System Administrator, Global User, Team member, Recorder This field is mandatory. |
IsActive | Boolean | User active? (True/False) |
NewTopicOwnerEmailID | String | This paramater will assign current user topics to new user, this is needed if we are deactivating user in IsActive field above by passing IsActive=false |
TeamMemberTopics | Object | Comma Separated List of Topics where the user is assigned as Team member |
OwnerTopics | Object | Comma Separated List of Topics where the user is assigned as owner |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateUser()");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "d4718c1e-4b6e-499a-8056-cc3b76f67393";
string EmailID= "spc1@gmailpro.ml";
string FirstName= "John";
string LastName= "Francis";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, EmailID = EmailID, FirstName, LastName= LastName});
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/UpdateUser');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"FirstName":"John",
"LastName":"Francis"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/_restAPI/LTservice.svc/UpdateUser/
-H 'Content-Type: application/json' \
-d '{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"EmailID":"spc1@gmailpro.ml",
"FirstName":"John",
"LastName":"Francis"
}
import requests
url = "https://api.k12insight.com/LTService1.svc/UpdateUser"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"EmailID\":\"spc1@gmailpro.ml\"\r\n,\r\n \"FirstName\":\"John\"\r\n,\r\n \"LastName\":\"Francis\"\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateUser"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim EmailID As String = "spc1@gmailpro.ml"
Dim FirstName As String = "John"
Dim LastName As String = "Francis"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
EmailID,
FirstName,
LastName
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Errors": "User updated Successfully.",
"Result": true
}
{
"Errors": "User updated Successfully.",
"Result": true
}
{
"Errors": "User updated Successfully.",
"Result": true
}
{
"Errors": "User updated Successfully.",
"Result": true
}
{
"Errors": "User updated Successfully.",
"Result": true
}
This method is used to obtain dialogue timeline.
Function | TO OBTAIN DIALOGUE TIMELINE |
---|---|
Url | https://api.k12insight.com/LTService1.svc/GetTimeline |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | STRING | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*CaseId | Int64 | The Case ID created from the method CreateDialogue() This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Errors | [] | |
IsTTimeline | Success |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetTimeline");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "d4718c1e-4b6e-499a-8056-cc3b76f67393";
Int64 CaseId = 209639;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/GetTimeline');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":209639
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/GetTimeline/
-H '{
"Token": "21bf7ef9-314c-4ff6-8b73-4f2fd1efa4cb",
"CaseId": 4594631
}
import requests
url = "https://api.k12insight.com/LTService1.svc/GetTimeline"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":209639\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetTimeline"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 209639
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Errors": [],
"lstTimeline": [
{
"ActionId": -2,
"Activity": "Sent feedback Form to Customer, Paul",
"AttachmentID": 97655,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "feedback form sent to Customer, Paul",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "",
"Message1": "",
"Message2": "",
"MessagePlain": "",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 2,
"UserId": 88777,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
},
{
"ActionId": 3,
"Activity": "",
"AttachmentID": 0,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "Paul Andrews",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "Updated dialogue status: marked as 'Closed'",
"Message1": "",
"Message2": "",
"MessagePlain": "Updated dialogue status: marked as 'Closed'",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 1,
"UserId": 0,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
}
]
}
{
"Errors": [],
"lstTimeline": [
{
"ActionId": -2,
"Activity": "Sent feedback Form to Customer, Paul",
"AttachmentID": 97655,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "feedback form sent to Customer, Paul",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "",
"Message1": "",
"Message2": "",
"MessagePlain": "",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 2,
"UserId": 88777,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
},
{
"ActionId": 3,
"Activity": "",
"AttachmentID": 0,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "Paul Andrews",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "Updated dialogue status: marked as 'Closed'",
"Message1": "",
"Message2": "",
"MessagePlain": "Updated dialogue status: marked as 'Closed'",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 1,
"UserId": 0,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
}
]
}
{
"Errors": [],
"lstTimeline": [
{
"ActionId": -2,
"Activity": "Sent feedback Form to Customer, Paul",
"AttachmentID": 97655,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "feedback form sent to Customer, Paul",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "",
"Message1": "",
"Message2": "",
"MessagePlain": "",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 2,
"UserId": 88777,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
},
{
"ActionId": 3,
"Activity": "",
"AttachmentID": 0,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "Paul Andrews",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "Updated dialogue status: marked as 'Closed'",
"Message1": "",
"Message2": "",
"MessagePlain": "Updated dialogue status: marked as 'Closed'",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 1,
"UserId": 0,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
}
]
}
{
"Errors": [],
"lstTimeline": [
{
"ActionId": -2,
"Activity": "Sent feedback Form to Customer, Paul",
"AttachmentID": 97655,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "feedback form sent to Customer, Paul",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "",
"Message1": "",
"Message2": "",
"MessagePlain": "",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 2,
"UserId": 88777,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
},
{
"ActionId": 3,
"Activity": "",
"AttachmentID": 0,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "Paul Andrews",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "Updated dialogue status: marked as 'Closed'",
"Message1": "",
"Message2": "",
"MessagePlain": "Updated dialogue status: marked as 'Closed'",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 1,
"UserId": 0,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
}
]
}
{
"Errors": [],
"lstTimeline": [
{
"ActionId": -2,
"Activity": "Sent feedback Form to Customer, Paul",
"AttachmentID": 97655,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "feedback form sent to Customer, Paul",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "",
"Message1": "",
"Message2": "",
"MessagePlain": "",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 2,
"UserId": 88777,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
},
{
"ActionId": 3,
"Activity": "",
"AttachmentID": 0,
"BounceDetailBody": "",
"BounceDetails": "",
"BounceReason": "",
"Date": "on Aug 4, at 9:15am",
"Details": "Paul Andrews",
"IsBounce": false,
"IsDeleted": false,
"IsWorkflow": false,
"Message": "Updated dialogue status: marked as 'Closed'",
"Message1": "",
"Message2": "",
"MessagePlain": "Updated dialogue status: marked as 'Closed'",
"MessagePlain1": "",
"MessagePlain2": "",
"New": false,
"ProfilePicThumb": "",
"ReplyCCEmailIdCount": 0,
"RplBncCnt": 0,
"Score": "",
"TranslateText": "",
"Type": 1,
"UserId": 0,
"UserName": "Paul Andrews",
"isCustomerReplied": false,
"lstReplyCCEmail": []
}
]
}
This method used to get the dialogues based on Topic and Dialogue Date
Function | TO GET THE DIALOGUES BASED ON TOPIC AND DIALOGUE DATE |
---|---|
URL | https://api.k12insight.com/LTService1.svc/GetDialogueByTopic |
Method | POST |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*CaseDate | String | The date when the dialogues are created and should be with a format “MM/DD/YYYY” This field is mandatory The API will consider the dialogues updated for the day as well |
*TopicID | Long | In order to get TopicId, first call GetTopic() function which will return id and name. This field is mandatory |
Output Parameter | Data Type | Description |
---|---|---|
Errors | [] | |
ListCount | INT | No. of Tickets |
lstTickets | Success |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetDialogueByTopic");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 TopicId = 316;
string CaseDate = "01/20/2022";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, TopicId = TopicId, CaseDate = CaseDate });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
Output
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "1232",
"CreationDate": "9/9/2014 6:21:40 AM",
"CustName": "abc",
"CustomerEmail": "abc@gmail.com",
"CustomerPhone": "0",
"CustomerTypes": [
"Tulane Family Member"
],
"TicketDescription": "My CPU is Very slow and it getting shut down frequently so please do this needful.",
"TicketOwner": "IT Helpdesk",
"TicketPriority": "",
"TicketStatus": "Closed",
"TicketSubject": "Machine Problem",
"TicketType": "Compliment",
"Topic": "IT"
}
]
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/GetDialogueByTopic');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"TopicId":316,
"CaseDate":"01/20/2022"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/GetDialogueByTopic
-H 'Content-Type: application/json' \
-d '{
"Token":"87e0e8b7-a2af-4caf-802e-f79ccfcba239",
"TopicID":787907436,
"CaseDate":"10/12/2023"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/GetDialogueByTopic"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"TopicId\":316\r\n,\r\n \"CaseDate\":123564\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetDialogueByTopic"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim TopicId As Long = 316
Dim CaseDate As String = "01/20/2022"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
TopicId,
CaseDate
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
This method is used to retrieve a dialogue from Let's Talk system
Function | TO RETRIEVE A DIALOGUE FROM LET'S TALK SYSTEM |
---|---|
Url | https://api.k12insight.com/LTService1.svc/GetDialogue |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*CaseId | Long | The Case ID created from the method CreateDialogue() This field is mandatory |
Output Parameter | Data Type | Description |
---|---|---|
Errors | [] | |
ListCount | INT | No. of Tickets |
lstTickets | Success |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetDialogue");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/GetDialogue');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":1232
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/GetDialogue\
-H 'Content-Type: application/json' \
-d '{
"Token": "457a22f5-18ea-4679-9c98-8339f94cc49b",
"CaseId": 4594631
},
import requests
url = "https://api.k12insight.com/LTService1.svc/GetDialogue"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":1232\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetDialogue"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
{
"Errors": [],
"ListCount": 1,
"lstTickets": [
{
"CaseId": "",
"CreationDate": "",
"CustName": "",
"CustomerEmail": "",
"CustomerPhone": "0",
"CustomerTypes": [
"Student"
],
"LastUpdatedDate": “",
"TicketDescription": "
"TicketOwner": "",
"TicketPriority": "",
"TicketStatus": "",
"TicketSubject": "",
"TicketType": "",
"Topic": "",
"TopicID":
}
]
}
This method used to get tags.
Function | TO RETRIEVE A DIALOGUE FROM LET'S TALK SYSTEM |
---|---|
Url | https://api.k12insight.com/LTService1.svc/GetTags |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Errors | [] | |
Result | Success |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetTags");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
Int64 CaseId = 1232;
string Token = "93493168-be6a-4624-8746-47e25f93f646";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/GetTags');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":5323
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/GetTags\
-H 'Content-Type: application/json' \
-d '{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668"
},
import requests
url = "https://k12insight.com/_restApi/LTservice.svc/GetTags"
payload = "{\r\n \"objToken\": {\r\n \"StrToken\": \"53387ab4-077e-419b-a015-47ccd8266e7c\"\r\n }\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetTags"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim CaseId As Long = 1232
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
"Result":[{
"TagID":1232,
"DisplaytagName":"my Tag",
"TagCategoryID":3231,
"TagMappingID":55,
"LoginCorpNo":2323
}]
"Result":[{
"TagID":1232,
"DisplaytagName":"my Tag",
"TagCategoryID":3231,
"TagMappingID":55,
"LoginCorpNo":2323
}]
"Result":[{
"TagID":1232,
"DisplaytagName":"my Tag",
"TagCategoryID":3231,
"TagMappingID":55,
"LoginCorpNo":2323
}]
"Result":[{
"TagID":1232,
"DisplaytagName":"my Tag",
"TagCategoryID":3231,
"TagMappingID":55,
"LoginCorpNo":2323
}]
"Result":[{
"TagID":1232,
"DisplaytagName":"my Tag",
"TagCategoryID":3231,
"TagMappingID":55,
"LoginCorpNo":2323
}]
This method used to get active users. *CaseIdInt64The method GetActiveUser() will return the an IntLoginCorpNo. This field is mandatory.
Function | TO GET ACTIVE USERS. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/GetActiveUsers |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Errors | [] | |
Result | Success |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetActiveUsers");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
Int64 CaseId = 1232;
string Token = "93493168-be6a-4624-8746-47e25f93f646";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/GetActiveUsers');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":5323
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/GetActiveUsers\
-H 'Content-Type: application/json' \
-d '{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133
},
import requests
url = "https://api.k12insight.com/LTService1.svc/GetActiveUsers"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/GetActiveUsers"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim CaseId As Long = 1232
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133
}
{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133
}
{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133
}
{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133
}
{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133
}
This method is used to file a dialogue in Let's Talk system.
Function | This method is used to file a dialogue in Let's Talk system. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/CreateDialogue |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
Caseid | Long | The method CreateDialogue() will return the an Case ID. |
*SubmissionType | Int | There are a total of 5 submission types. 1 - Question 2 - Comment 3 - Suggestion 4 - Concern 5 - Compliment This field is mandatory. |
*Description | String | Enter brief about the case This field is mandatory. |
*Departmentid | Long | In order to get DepartmentId first call GetTopic() function which will return id and name. |
*LstRequestedUserType | Array Int | There are a total of 5 user types. 1 - Student 2 - Employee 3 - Parent/Guardian 4 - Community member This field is mandatory. |
Requesteduseranonimity | Boolean | Use 1 to file dialogue anonymously and 0 for non-anonymous (Email or phone number is compulsory for non-anonymous) |
Requesteduser | String | This parameter is used to fetch the customer’s name who is submitting the dialogue. |
Requesteduseremail | String | This parameter is used to fetch the customer’s email who is submitting the dialogue. |
RequestedcontactNo | String | This parameter is used to fetch the customer's phone number who is submitting the dialogue. |
*Title | String | Enter subject of dialogue This field is mandatory. |
Uploadid | String | Use the uploadid generated with GetUploadID() method. |
Filenames | String | Enter file names separated with #ASP.NET#. Only two are allowed. |
Output Parameter | Data Type | Description |
---|---|---|
Result | String | The case ID is a unique number assigned to each dialogue after the dialogue is created. |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/CreateDialogue");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
Dialogue objDialogue = new Dialogue();
Token objToken = new Token();
objToken .StrToken = “93493168-be6a-4624-8746-47e25f93f646”;
objDialogue.SubmissionType = 1;
objDialogue.Description="API final test temporary 34234234";
objDialogue.LstRequestedUserType=[ 1, 2 ];
objDialogue.RequestedUserAnonimity= false;
objDialogue.RequestedUser=”john smith”;
objDialogue.RequestedUserEmail=”smith@nomail.com”
objDialogue.RequestedContactNo=”12345678”;
objDialogue.Title=”API testing”;
objDialogue.Lang=0;
var Json = javaScriptSerializer.Serialize(new {Dialogue = objDialogue , Token = objToken });
streamWriter.Write(json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/CreateDialogue');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"objDialogue": {
"SubmissionType": 0,
"Description": "10 30 jan 2019",
"LstRequestedUserType": [1],
"RequestedUserAnonimity": false,
"RequestedUser": "user",
"RequestedUserEmail": "abcd@xyz.com",
"RequestedContactNo": "1019181716",
"Title": "10 30 jan 2019",
"Origin": 1,
"Lang": 0,
"DepartmentId" : 91229
},
"objToken": {
"StrToken": "e0a47d08-f229-445c-9837-59a8e6bcd01b"
}
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/CreateDialogue \
-H 'Content-Type: application/json' \
-d '{
"objDialogue":{
"SubmissionType":0,
"Description":"10 30 jan 2019",
"LstRequestedUserType":[1],
"RequestedUserAnonimity":false,
"RequestedUser":"user",
"RequestedUserEmail":"abcd@xyz.com",
"RequestedContactNo":"1019181716",
"Title":"10 30 jan 2019",
"Origin":1,
"Lang":0,
"DepartmentId" :91229
},
"Token":"7472bd65-b714-4bc5-b012-4501cec58f96"
}'
import requests
url = "https://api.k12insight.com/LTService1.svc/CreateDialogue"
payload = "{\r\n \"objDialogue\": {\r\n \"SubmissionType\": 0,\r\n \"Description\": \"10 30 jan 2019\",\r\n \"LstRequestedUserType\": [1],\r\n \"RequestedUserAnonimity\": false,\r\n \"RequestedUser\": \"user\",\r\n \"RequestedUserEmail\": \"abcd@xyz.com\",\r\n \"RequestedContactNo\": \"1019181716\",\r\n \"Title\": \"10 30 jan 2019\",\r\n \"Origin\": 1,\r\n \"Lang\": 0,\r\n \"DepartmentId\" : 91229\r\n },\r\n \"objToken\": {\r\n \"StrToken\": \"e0a47d08-f229-445c-9837-59a8e6bcd01b\"\r\n }\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/CreateDialogue"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Dim streamWriter As StreamWriter = New StreamWriter(httpWebRequest.GetRequestStream)
Dim objDialogue As Dialogue = New Dialogue()
objDialogue.Token = “93493168-be6a-4624-8746-47e25f93f646”
objDialogue.SubmissionType = 1
objDialogue.Description="API final test temporary 34234234"
objDialogue.LstRequestedUserType=[1,2];
objDialogue.RequestedUserAnonimity= false
objDialogue.RequestedUser=”john smith”
objDialogue.RequestedUserEmail=”smith@nomail.com”
objDialogue.RequestedContactNo=”1234567890”
objDialogue.Title=”API testing”
objDialogue.Lang=0
Dim Json1 As Object = JavaScriptSerializer.Serialize(New Object() {Dialogue = objDialogue, Token = objToken})
streamWriter.Write(json)
streamWriter.Flush()
streamWriter.Close()
Dim httpResponse As HttpWebResponse = CType(httpWebRequest.GetResponse, HttpWebResponse)
Dim streamReader As StreamReader = New StreamReader(httpResponse.GetResponseStream)
Dim strresult As String = streamReader.ReadToEnd()
Dim result As Object = JsonConvert.DeserializeObject(strresult)
{
"Errors": [],
"Result": 4698150
}
{
"Errors": [],
"Result": 4698150
}
{
"Errors": [],
"Result": 4698150
}
{
"Errors": [],
"Result": 4698150
}
{
"Errors": [],
"Result": 4698150
}
This method is used to update the status of Dialogue through case id.
Function | THIS METHOD IS USED TO UPDATE THE STATUS OF DIALOGUE THROUGH CASE ID. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseId |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*CaseId | Int | Enter caseid of Dialogue |
Value | String | 1 - In progress 2 - Pending details 3 - ClosedThis field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Result | Int | Return result 1 if successfully updated |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseId");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
Int64 Value = 1;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Value = Value });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseId');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":1232,
"Value":1
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseId\
-H 'Content-Type: application/json' \
-d '{
"Token": "457a22f5-18ea-4679-9c98-8339f94cc49b",
"CaseId": 1232,
"Value": 1
},
import requests
url = "https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseId"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":1232\r\n,\r\n \"Value\":1\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseId'"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Value As Int = 1
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
Values
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
Result: 1
Result: 1
Result: 1
Result: 1
Result: 1
This method used to save comment.
Function | TO SAVE COMMENT. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/AddComment |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*Comment | String | Add comment for dialogue This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Errors | [] | |
Result | Success |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/AddComment");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Comment = "comment added";
Int64 CaseId = 1232;
string Token = "93493168-be6a-4624-8746-47e25f93f646";
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Comment = Comment });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/AddComment');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":5323,
"Comment":"dialogue comment"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/AddComment\
-H 'Content-Type: application/json' \
-d '{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133,
"Comment": "dialogue comment"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/AddComment"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564\r\n ,\r\n \"Comment\": \"dialogue comment\"\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/AddComment"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Comment As String = "comment added"
Dim CaseId As Long = 1232
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
Comment
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method used to add tags.
Function | TO ADD TAGS. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/AddTags |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*Value | List<string> | This GetTags() returns TagName and TagId This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Errors | [] | |
Result | Success |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/AddTags");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
List tags = new List();
tags.Add(1235);
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Value = tags });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/AddTags');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"Value":[12,5422]
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/AddTags\
-H 'Content-Type: application/json' \
-d '{
"Token": "e2beb2f7-5e38-4dcd-af3e-494f56d6d668",
"CaseId": 4598133,
"Value": [
12,
106814
]
},
import requests
url = "https://api.k12insight.com/LTService1.svc/AddTags"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"Value\": [232,8555] \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/AddTags"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim tags As List(Of Long) = New List(Of Long)()
tags.Add(1235)
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
Value = tags
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Errors": [],
"Result": "Success"
}
{
"Errors": [],
"Result": "Success"
}
{
"Errors": [],
"Result": "Success"
}
{
"Errors": [],
"Result": "Success"
}
{
"Errors": [],
"Result": "Success"
}
This method is used to update the status of Dialogue through case number.
Function | TO UPDATE THE STATUS OF DIALOGUE THROUGH CASE NUMBER. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseNo |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk! This field is mandatory. |
*CaseID | Int | Enter Case Number of Dialogue This field is mandatory. |
*Value | String | 1 - In progress 2 - Pending details 3 - Closed This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Result | Int | Returns result “1” if successfully updated |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseNo");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
Int64 Value = 1;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Value = Value });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseNo');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":1232,
"Value":1
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ UpdateStatusWithCaseNo'\
-H 'Content-Type: application/json' \
-d '{
"Token": "457a22f5-18ea-4679-9c98-8339f94cc49b",
"CaseId": 4594631,
"Value": 1
},
import requests
url = "https://api.k12insight.com/_restApi/LTservice.svc/_restApi/LTservice.svc/UpdateStatusWithCaseNo"
payload = "{\r\n \"objDialogue\": {\r\n \"CaseNo\": 56,\r\n \"Status\": \"1\"\r\n },\r\n \"objToken\": {\r\n \"StrToken\": \"93493168-be6a-4624-8746-47e25f93f646\"\r\n }\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateStatusWithCaseNo'"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Value As Int = 1
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
Values
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
Result: 1
Result: 1
Result: 1
Result: 1
Result: 1
This method is used to get topic’s name and topic’s ID.
Function | TO GET TOPIC’S NAME AND TOPIC’S ID |
---|---|
Url | https://api.k12insight.com/LTService1.svc/GetTopic |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The username that is configured while signing up for Let's Talk! This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Result | String | Topic ID and Name are returned, and this ID can be further used in CreateDialogue() function to create a dialogue. |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/_restApi/ltservice.svc/GetTopic");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
Token objToken= new Token ();
objToken .StrToken = “93493168-be6a-4624-8746-47e25f93f646”;
var Json = javaScriptSerializer.Serialize(new {Dialogue = objDialogue , Token = objToken });
streamWriter.Write(json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/_restApi/LTservice.svc/GetTopic');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"objToken": {
"StrToken": "53387ab4-077e-419b-a015-47ccd8266e7c"
}
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/GetTopic \
-H 'Content-Type: application/json' \
-d '{
"Token": "457a22f5-18ea-4679-9c98-8339f94cc49b"
}'
import requests
url = "https://api.k12insight.com/_restApi/LTservice.svc/GetTopic"
payload = "{\r\n \"objToken\": {\r\n \"StrToken\": \"53387ab4-077e-419b-a015-47ccd8266e7c\"\r\n }\r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/_restApi/ltservice.svc/GetTopic"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Dim streamWriter As StreamWriter = New StreamWriter(httpWebRequest.GetRequestStream)
Dim objToken As Token= New Token()
objToken .StrToken = “93493168-be6a-4624-8746-47e25f93f646”
Dim Json1 As Object = JavaScriptSerializer.Serialize(New Object() {Dialogue = objDialogue, Token = objToken})
streamWriter.Write(json)
streamWriter.Flush()
streamWriter.Close()
Dim httpResponse As HttpWebResponse = CType(httpWebRequest.GetResponse, HttpWebResponse)
Dim streamReader As StreamReader = New StreamReader(httpResponse.GetResponseStream)
Dim strresult As String = streamReader.ReadToEnd()
Dim result As Object = JsonConvert.DeserializeObject(strresult)
{"Id":12345,"Name":"Accounts"}
{"Id":12345,"Name":"Accounts"}
{"Id":12345,"Name":"Accounts"}
{"Id":12345,"Name":"Accounts"}
{"Id":12345,"Name":"Accounts"}
This method used to reply to customer.
Function | TO REPLY TO CUSTOMER. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ReplyToCustomer |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*ReplySubject | String | Please add Reply Subject This field is mandatory. |
*ReplyText | String | Please add Reply text This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ReplyToCustomer");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
Int16 Status = 1;
string ReplyText = "Reply Text";
string ReplySubject = "Reply Subject";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, ReplySubject = ReplySubject, ReplyText = ReplyText, Status = Status });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ReplyToCustomer');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"ReplySubject":"Reply Subject",
"ReplyText":"Reply Text"
"Status":1
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ReplyToCustomer\
-H 'Content-Type: application/json' \
-d '{
"Token": "4636adc2-cffb-44c4-bdf6-c29a24c65ef1",
"CaseId": 4594631,
"ReplySubject": "Reply Subject",
"ReplyText": "Reply Text",
"Status": 2
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ReplyToCustomer"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"ReplySubject\": \"Reply Subject\",\r\n \"ReplyText\": \"Reply Text\",\r\n \"Status\": 2 \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ReplyToCustomer"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Status As Short = 1
Dim ReplyText As String = "Reply Text"
Dim ReplySubject As String = "Reply Subject"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
ReplySubject,
ReplyText,
Status
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method is used to update owner of the dialogue based on case number.
Function | TO UPDATE OWNER OF THE DIALOGUE BASED ON CASE NUMBER |
---|---|
Url | https://api.k12insight.com/LTService1.svc/UpdateCaseOwner |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*CaseOwner | Int64 | The method GetActiveUser() will return the an IntLoginCorpNo. This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateCaseOwner");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
Int64 CaseOwner = 23541;
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, CaseOwner = CaseOwner });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/UpdateCaseOwner');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"CaseOwner":10222
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/UpdateCaseOwner\
-H 'Content-Type: application/json' \
-d '{
"Token":"87e0e8b7-a2af-4caf-802e-f79ccfcba239",
"CaseId":402888,
"CaseOwner":126888
},
import requests
url = "https://api.k12insight.com/LTService1.svc/UpdateCaseOwner"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"CaseOwner\": 45322 \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/UpdateCaseOwner"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim CaseOwner As Long = 23541
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
CaseOwner
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method used to set bookmark.
Function | TO UPDATE CASE OWNER. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/SetBookmark |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*IsBookMark | Boolean | Set book mark 1-Set Bookmark 0-Remove from BookMark This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/SetBookmark");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
Int16 IsBookMark = 1;
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, IsBookMark = IsBookMark });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
//$request = new HttpRequest();
// $request->setUrl('https://api.k12insight.com/LTService1.svc/SetBookmark');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"IsBookMark":1
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/SetBookmark\
-H 'Content-Type: application/json' \
-d '{
"Token": "a70505ac-3406-45a3-ac2e-a56e8a3db305",
"CaseId": 4598133,
"IsBookMark": 1
},
import requests
url = "https://api.k12insight.com/LTService1.svc/SetBookmark"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"IsBookMark\": 1 \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/SetBookmark"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim IsBookMark As Short = 1
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
IsBookMark
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method used to save topic.
Function | TO SAVE TOPIC. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/SaveTopic |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*TopicId | String | Enter Topic Id. This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
// Used for SaveTopic
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/SaveTopic");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string TopicId = "Topic Id";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, TopicId = TopicId });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/SaveTopic');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"TopicId":1213
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/SaveTopic\
-H 'Content-Type: application/json' \
-d '{
"Token": "a70505ac-3406-45a3-ac2e-a56e8a3db305",
"CaseId": 4598133,
"TopicId": 160540
}
,
import requests
url = "https://api.k12insight.com/LTService1.svc/SaveTopic"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"TopicId\": 2341 \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/SaveTopic"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim TopicId As String = "Topic Id"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
TopicId
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method used to forward dialogue.
Function | TO FORWARD DIALOGUE. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ForwardDialogue |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*IntroMessage | String | Introduction Message This field is mandatory. |
*ToEmail | String | To Email Address This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ForwardDialogue");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string ToEmail = "ToEmail";
string IntroMessage = "Change IntroMessage";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, IntroMessage = IntroMessage, ToEmail = ToEmail });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ForwardDialogue');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"IntroMessage":"Reply Text",
"ToEmail":" To email"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ForwardDialogue\
-H 'Content-Type: application/json' \
-d '{
"Token": "a70505ac-3406-45a3-ac2e-a56e8a3db305",
"CaseId": 4598133,
"IntroMessage": "Intro Message",
"ToEmail": "spctest1406@gmail.com"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ForwardDialogue"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"IntroMessage\": \"Intro Message\",\r\n \"ToEmail\": \"To Email \" \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ForwardDialogue"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim ToEmail As String = "ToEmail"
Dim IntroMessage As String = "Change IntroMessage"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
IntroMessage,
ToEmail
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Status": "Success"
}
{
"Status": "Success"
}
{
"Status": "Success"
}
{
"Status": "Success"
}
{
"Status": "Success"
}
This method is used to update the subject of the dialogue.
Function | TO UPDATE THE SUBJECT OF THE DIALOGUE |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ChangeSubject |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*Subject | String | Enter subject of dialogue. This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeSubject");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Subject = "Change subject name";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Subject = Subject });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ChangeSubject');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"Subject":"enter subject",
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ChangeSubject\
-H 'Content-Type: application/json' \
-d '{
"Token": "a70505ac-3406-45a3-ac2e-a56e8a3db305",
"CaseId": 4598133,
"Subject":"API VIA subject changed text"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ChangeSubject"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"Subject\": \" Dialogue Subject\" \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeSubject"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Subject As String = "Change subject name"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
Subject
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method is used to update the name of the user.
Function | TO UPDATE THE NAME OF THE USER |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ChangeRequestedUser |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*DialogueUser | String | This parameter is used to Change the customer Name who is submitting the dialogue. This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
// Used for ChangeRequestedUser
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeRequestedUser");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string DialogueUser = "Change Requested User name";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, DialogueUser = DialogueUser });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ChangeRequestedUser');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"DialogueUser":"user Name"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ChangeRequestedUser\
-H 'Content-Type: application/json' \
-d '{
"Token": "a70505ac-3406-45a3-ac2e-a56e8a3db305",
"CaseId": 4598133,
"DialogueUser": "Viaapichanged Name"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ChangeRequestedUser"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"DialogueUser\": \" Name \" \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeRequestedUser"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim DialogueUser As String = "Change Requested User name"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
DialogueUser
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method is used to update extension of the dialogue.
Function | TO UPDATE EXTENSION OF THE DIALOGUE |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ChangePhoneExt |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*Extension | String | This parameter is used to Change the customer's phone number who is submitting the dialogue. This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangePhoneExt");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Extension = "022";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Extension = Extension });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ChangePhoneExt');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"Extension":"120"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ChangePhoneExt\
-H 'Content-Type: application/json' \
-d '{
"Token": "a70505ac-3406-45a3-ac2e-a56e8a3db305",
"CaseId": 4598133,
"Extension": "022"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ChangePhoneExt"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"Extension\": \" 022 \" \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangePhoneExt"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Extension As String = "022"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
Extension
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method is used to update description of the dialogue.
Function | TO UPDATE DESCRIPTION OF THE DIALOGUE |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ChangeDescription |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*Description | String | Enter brief about the case. This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeDescription");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Description = "Dialogue description";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Description = Description });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ChangeDescription');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"Description":"Description"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ChangeDescription\
-H 'Content-Type: application/json' \
-d '{
"Token": "a70505ac-3406-45a3-ac2e-a56e8a3db305",
"CaseId": 4598133,
"Description": "Description changed via api"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ChangeDescription"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"Description\": \" Description \" \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeDescription"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim Description As String = "Dialogue description"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
Description
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method used to update customer email id.
Function | TO UPDATE CUSTOMER EMAIL ID. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ChangeCustomerEmail |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*RequestedUserEmail | String | Enter email that you want to change.This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeCustomerEmail");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string RequestedUserEmail = "email@gmail.com";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, RequestedUserEmail = RequestedUserEmail });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ChangeCustomerEmail');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"RequestedUserEmail":"RequestedUserEmail"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ChangeCustomerEmail\
-H 'Content-Type: application/json' \
-d '{
"Token": "bd8b9159-319c-4654-968e-4e7a6fda6aeb",
"CaseId": 4598133,
"RequestedUserEmail": "spctest14081@gmail.com"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ChangeCustomerEmail"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"RequestedUserEmail\": \" RequestedUserEmail \" \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeCustomerEmail"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim RequestedUserEmail As String = "email@gmail.com"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
RequestedUserEmail
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method used to update customer phone number.
Function | TO UPDATE CUSTOMER PHONE NUMBER. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ChangeCustomerPhoneNo |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*RequestedContact | String | Enter phone number that you want to change.This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return the Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangePhoneExt");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string Extension = "022";
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, Extension = Extension });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ChangeCustomerPhoneNo');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"RequestedContact":"RequestedContact"
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ChangeCustomerPhoneNo\
-H 'Content-Type: application/json' \
-d '{
"Token": "bd8b9159-319c-4654-968e-4e7a6fda6aeb",
"CaseId": 4598133,
"RequestedContact":"1234555555"
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ChangeCustomerPhoneNo"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"RequestedContact\": \" RequestedContact \" \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeCustomerPhoneNo"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim RequestedContact As String = "2587463222"
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
RequestedContact
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
This method used to change customer type.
Function | TO CHANGE CUSTOMER TYPE. |
---|---|
Url | https://api.k12insight.com/LTService1.svc/ChangeCustomerType |
Method | Post |
Input Parameter | Data Type | Description |
---|---|---|
*Token | String | The token that is generated using method GetTokenX() by entering username and password for Let's Talk!This field is mandatory. |
*CustomerType | String | There are a total of 5 user types. 1 - Student 2 - Employee 3 - Parent/Guardian 4 - Community member This field is mandatory. |
*CaseId | Int64 | The method CreateDialogue() will return an Case ID. This field is mandatory. |
Output Parameter | Data Type | Description |
---|---|---|
Reason | Success | |
Status | true |
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeCustomerType");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string CustomerType = "3"; //1 - Student 2 - Employee 3 - Parent / Guardian 4 - Community
string Token = "93493168-be6a-4624-8746-47e25f93f646";
Int64 CaseId = 1232;
var Json = new JavaScriptSerializer().Serialize(new { Token = Token, CaseId = CaseId, CustomerType = CustomerType });
streamWriter.Write(Json);
streamWriter.Flush();
streamWriter.Close();
}
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string strresult = streamReader.ReadToEnd();
var result = JsonConvert.DeserializeObject(strresult);
}
$request = new HttpRequest();
$request->setUrl('https://api.k12insight.com/LTService1.svc/ChangeCustomerType');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'Content-Type' => 'application/json'
));
$request->setBody('{
"Token": "93493168-be6a-4624-8746-47e25f93f646",
"CaseId":735454,
"CustomerType":2
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
curl -X POST \
https://api.k12insight.com/LTService1.svc/ChangeCustomerType\
-H 'Content-Type: application/json' \
-d '{
"Token": "bd8b9159-319c-4654-968e-4e7a6fda6aeb",
"CaseId": 4598133,
"CustomerType": 3
},
import requests
url = "https://api.k12insight.com/LTService1.svc/ChangeCustomerType"
payload = "{\r\n \"Token\": \"93493168-be6a-4624-8746-47e25f93f646\",\r\n \"CaseId\":123564 \r\n ,\r\n \"CustomerType\": 2 \r\n}"
headers = {
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Create a Website or Application in Visual Studio.
Use the code below to get data from the WebService.
Dim httpWebRequest = CType(WebRequest.Create("https://api.k12insight.com/LTService1.svc/ChangeCustomerType"), HttpWebRequest)
httpWebRequest.ContentType = "application/json"
httpWebRequest.Method = "POST"
Using streamWriter = New StreamWriter(httpWebRequest.GetRequestStream())
Dim CustomerType As String = "3" '1 - Student 2 - Employee 3 - Parent / Guardian 4 - Community
Dim Token As String = "93493168-be6a-4624-8746-47e25f93f646"
Dim CaseId As Long = 1232
Dim Json = New JavaScriptSerializer().Serialize(New With {
Token,
CaseId,
CustomerType
})
streamWriter.Write(Json)
streamWriter.Flush()
streamWriter.Close()
End Using
Dim httpResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim strresult As String = streamReader.ReadToEnd()
Dim result = JsonConvert.DeserializeObject(strresult)
End Using
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}
{
"Reason": "Success",
"Status": true
}