Authentication

You authenticate to the TagScore API by providing your API Secret in the request client_secret param. You can get your API Secret from your account:

  • Login to TagScore and navigate to Client List
  • Click on 'Get API Secret' button and the key will be generated.

Create Industry

Method: /masterdata/create_industry

This API is used to create Industry data.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
industry_name Name of Industry
industry_desc Description of Industry


URL

https://www.tagscores.com/api/masterdata/create_industry

Sample Request

POST /api/masterdata/create_industry HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_name"

Test API
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_desc"

Test API DESC
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/create_industry

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/create_industry",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_name\"\r\n\r\nTest API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_desc\"\r\n\r\nTest API DESC\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/create_industry

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("industry_name", "Test API");
form.append("industry_desc", "Test API DESC");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/create_industry",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/create_industry

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_name\"\r\n\r\nTest API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_desc\"\r\n\r\nTest API DESC\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/create_industry")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/create_industry

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/create_industry"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_name\"\r\n\r\nTest API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_desc\"\r\n\r\nTest API DESC\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
  "responseCode": 200,
  "responseMessage": "Industry added successfully.",
  "industry_id": 139
}

Get All Industry

Method: /masterdata/get_industry

This API is used to get all Industry list created by you using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
page This param is used to work like pagination, as there is a limit on data per response i.e. you will get 50 records only per response. This param is optional and by default you will get first 50 records for page=1, for next 50 records you have to send page value equal to 2 and so on in the same way.


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

POST /api/masterdata/get_industry HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_industry",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_industry",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_industry")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_industry"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
  "responseCode": 200,
  "responseMessage": "Success",
  "totalIndustry": 2,
  "industry_data": [
    {
    "industry_id": "139",
    "industry_name": "Test API",
    "industry_desc": "Testing API",
    "created_on": "2019-04-17 11:49:08"
    },
    {
    "industry_id": "134",
    "industry_name": "testing_industr",
    "industry_desc": "Testing",
    "created_on": "2019-03-12 06:22:47"
    }
  ]
}

Get Specific Industry

Method: /masterdata/get_industry

This API is used to get a specific Industry detail created by you.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
industry_id Id of Industry


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

POST /api/masterdata/get_industry HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_id"

150
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_industry",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("industry_id", "150");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_industry",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_industry")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_industry

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_industry"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalIndustry": 1,
    "industry_data": [
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "industry_desc": "Test API DESC",
            "created_on": "2019-04-22 11:09:43"
        }
    ]
}

Create Course

Method: /masterdata/create_course

This API is used to create Course data.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
industry_id Id of industry
course_name Name of Course
course_desc Description of Course


URL

https://www.tagscores.com/api/masterdata/create_course

Sample Request

POST /api/masterdata/create_course HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_id"

150
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_name"

Test Course API
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_desc"

Test Course Desc
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/create_course

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/create_course",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_name\"\r\n\r\nTest Course API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_desc\"\r\n\r\nTest Course Desc\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/create_course

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("industry_id", "150");
form.append("course_name", "Test Course API");
form.append("course_desc", "Test Course Desc");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/create_course",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/create_course

Sample Request

POST /api/masterdata/create_course HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_id"

150
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_name"

Test Course API
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_desc"

Test Course Desc
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/create_course

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/create_course"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_name\"\r\n\r\nTest Course API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_desc\"\r\n\r\nTest Course Desc\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Course added successfully.",
    "course_id": 615
}

Get All Course

Method: /masterdata/get_courses

This API is used to get all Course list created by you using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
page This param is used to work like pagination, as there is a limit on data per response i.e. you will get 50 records only per response. This param is optional and by default you will get first 50 records for page=1, for next 50 records you have to send page value equal to 2 and so on in the same way.


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

POST /api/masterdata/get_courses HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_courses",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_courses",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_courses")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_courses"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalCourse": 2,
    "course_data": [
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "course_desc": "Test Course DESC API",
            "created_on": "2019-04-22 11:55:53"
        },
        {
            "industry_id": "150",
            "industry_name": "Test",
            "course_id": "141",
            "course_name": "Test Safety",
            "course_desc": "",
            "created_on": "2019-04-16 11:26:14"
        }
      ]
}

Get Specific Course

Method: /masterdata/get_courses

This API is used to get a specific Course detail created by you.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
course_id Id of Course


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

POST /api/masterdata/get_courses HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_id"

615
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_courses",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("course_id", "615");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_courses",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_courses")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_courses

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_courses"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalCourse": 1,
    "course_data": [
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "course_desc": "Test Course DESC API",
            "created_on": "2019-04-22 11:55:53"
        }
    ]
}

Create Modules

Method: /masterdata/create_module

This API is used to create Modules data.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
industry_id Id of industry
course_id Id of Course
module_name Name of Module
module_code Code of module
module_desc Description of Module


URL

https://www.tagscores.com/api/masterdata/create_module

Sample Request

POST /api/masterdata/create_module HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_id"

150
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_id"

615
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="module_name"

Test Module API
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="module_code"

TM001
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="module_desc"

Test Module API
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/create_module

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/create_module",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_name\"\r\n\r\nTest Module API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_code\"\r\n\r\nTM001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_desc\"\r\n\r\nTest Module API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/create_module

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("industry_id", "150");
form.append("course_id", "615");
form.append("module_name", "Test Module API");
form.append("module_code", "TM001");
form.append("module_desc", "Test Module API");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/create_module",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/create_module

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_name\"\r\n\r\nTest Module API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_code\"\r\n\r\nTM001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_desc\"\r\n\r\nTest Module API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/create_module")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/create_module

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/create_module"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_name\"\r\n\r\nTest Module API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_code\"\r\n\r\nTM001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_desc\"\r\n\r\nTest Module API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Module added successfully.",
    "module_id": 2128
}

Get All Modules

Method: /masterdata/get_modules

This API is used to get all Modules list created by you using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
page This param is used to work like pagination, as there is a limit on data per response i.e. you will get 50 records only per response. This param is optional and by default you will get first 50 records for page=1, for next 50 records you have to send page value equal to 2 and so on in the same way.


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

POST /api/masterdata/get_modules HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_modules",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_modules",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_modules")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_modules"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
   'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalModule": 2,
    "module_data": [
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "module_id": "2128",
            "module_name": "Test Module API",
            "module_code": "TM001",
            "module_desc": "Test Module API",
            "created_on": "2019-04-22 12:06:38"
        },
        {
            "industry_id": "150",
            "industry_name": "MINING",
            "course_id": "615",
            "course_name": "Mine Safety Operator V.2",
            "module_id": "2127",
            "module_name": "Health and Safety",
            "module_code": "MIN / N 0901",
            "module_desc": "",
            "created_on": "2019-04-16 11:26:14"
        }
      ]
}

Get Specific Modules

Method: /masterdata/get_modules

This API is used to get a specific Module detail created by you.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
module_id Id of Module


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

POST /api/masterdata/get_modules HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="module_id"

2128
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_modules",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_id\"\r\n\r\n2128\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("module_id", "2128");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_modules",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_id\"\r\n\r\n2128\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_modules")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_modules

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_modules"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_id\"\r\n\r\n2128\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalModule": 1,
    "module_data": [
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "module_id": "2128",
            "module_name": "Test Module API",
            "module_code": "TM001",
            "module_desc": "Test Module API",
            "created_on": "2019-04-22 12:06:38"
        }
    ]
}

Create Topics

Method: /masterdata/create_topic

This API is used to create Topics data.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
industry_id Id of industry
course_id Id of Course
module_id Id of Module
topic_name Name of topic
topic_code Code of topic


URL

https://www.tagscores.com/api/masterdata/create_topic

Sample Request

POST /api/masterdata/create_topic HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_id"

150
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_id"

615
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="module_id"

2128
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="topic_code"

TT001
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="topic_name"

Test Topic API
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/create_topic

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/create_topic",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_id\"\r\n\r\n2128\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_code\"\r\n\r\nTT001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_name\"\r\n\r\nTest Topic API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/create_topic

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("industry_id", "150");
form.append("course_id", "615");
form.append("module_id", "2128");
form.append("topic_code", "TT001");
form.append("topic_name", "Test Topic API");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/create_topic",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/create_topic

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_id\"\r\n\r\n2128\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_code\"\r\n\r\nTT001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_name\"\r\n\r\nTest Topic API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/create_topic")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/create_topic

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/create_topic"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"module_id\"\r\n\r\n2128\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_code\"\r\n\r\nTT001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_name\"\r\n\r\nTest Topic API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Topic added successfully.",
    "topic_id": 9279
}

Get All Topics

Method: /masterdata/get_topics

This API is used to get all Topics list created by you using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
page This param is used to work like pagination, as there is a limit on data per response i.e. you will get 50 records only per response. This param is optional and by default you will get first 50 records for page=1, for next 50 records you have to send page value equal to 2 and so on in the same way.


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

POST /api/masterdata/get_topics HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_topics",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_topics",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_topics")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_topics"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalTopic": 1,
    "topic_data": [
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "module_id": "2128",
            "module_name": "Test Module API",
            "topic_id": "9279",
            "topic_name": "Test Topic API",
            "topic_code": "TT001",
            "created_on": "2019-04-22 12:15:59"
        },
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "module_id": "2128",
            "module_name": "Test Module API",
            "topic_id": "9280",
            "topic_name": "Test Topic API2",
            "topic_code": "TT002",
            "created_on": "2019-04-22 12:15:59"
        }
    ]
}

Get Specific Topics

Method: /masterdata/get_topics

This API is used to get a specific Topic detail created by you.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
topic_id Id of topic


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

POST /api/masterdata/get_topics HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="topic_id"

9279
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/masterdata/get_topics",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_id\"\r\n\r\n9279\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("topic_id", "9279");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/masterdata/get_topics",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_id\"\r\n\r\n9279\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/masterdata/get_topics")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/masterdata/get_topics

Sample Request

import requests

url = "http://54.213.29.253/api/masterdata/get_topics"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"topic_id\"\r\n\r\n9279\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalTopic": 1,
    "topic_data": [
        {
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "module_id": "2128",
            "module_name": "Test Module API",
            "topic_id": "9279",
            "topic_name": "Test Topic API",
            "topic_code": "TT001",
            "created_on": "2019-04-22 12:15:59"
        }
    ]
}

Create Batch

Method: /batchdata/create_batch

You can create a batch having candidate list using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
industry_id Id of industry
batch_name Name of Batch
candidate_excel Csv file(filetype: CSV) having candidate details


URL

https://www.tagscores.com/api/batchdata/create_batch

Sample Request

POST /api/batchdata/create_batch HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="batch_name"

Test Batch API
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_id"

150
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="candidate_excel"; filename="Batch_Sample_B2B_B2C.csv"
Content-Type: text/csv


------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/batchdata/create_batch

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/batchdata/create_batch",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_name\"\r\n\r\nTest Batch API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_excel\"; filename=\"Batch_Sample_B2B_B2C.csv\"\r\nContent-Type: text/csv\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/batchdata/create_batch

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("batch_name", "Test Batch API");
form.append("industry_id", "150");
form.append("candidate_excel", "Batch_Sample_B2B_B2C.csv");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/batchdata/create_batch",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/batchdata/create_batch

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_name\"\r\n\r\nTest Batch API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_excel\"; filename=\"Batch_Sample_B2B_B2C.csv\"\r\nContent-Type: text/csv\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/batchdata/create_batch")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/batchdata/create_batch

Sample Request

import requests

url = "http://54.213.29.253/api/batchdata/create_batch"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_name\"\r\n\r\nTest Batch API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_excel\"; filename=\"Batch_Sample_B2B_B2C.csv\"\r\nContent-Type: text/csv\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Batch created successfully.",
    "batch_id": 777,
    "candidates_inserted": 2,
    "candidates_not_inserted": 0,
    "candidates_not_inserted_emails": []
}

Get All Batches

Method: /batchdata/get_batch

You can get a list of all batches using this API

Attributes

Name Value Required
client_secret Your API secret for API request authentication


URL

https://www.tagscores.com/api/batchdata/get_batch

Sample Request

POST /api/batchdata/get_batch HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/batchdata/get_batch

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/batchdata/get_batch",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/batchdata/get_batch

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/batchdata/get_batch",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/batchdata/get_batch

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/batchdata/get_batch")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/batchdata/get_batch

Sample Request

import requests

url = "http://54.213.29.253/api/batchdata/get_batch"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalBatch": 546,
    "batch_data": [
        {
            "batch_id": "777",
            "batch_name": "Test Batch API",
            "industry_id": "150",
            "industry_name": "Test API",
            "total_candidates": "2",
            "created_on": "2019-04-22 12:32:41"
        },
        {
            "batch_id": "775",
            "batch_name": "SCPWD",
            "industry_id": "85",
            "industry_name": "SCPwD",
            "total_candidates": "9",
            "created_on": "2019-04-17 10:44:48"
        }
      ]
}

Get Candidate List

Method: /batchdata/get_candidates

You can get a candidate list detail of a particular batch using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
batch_id Id of batch


URL

https://www.tagscores.com/api/batchdata/get_candidates

Sample Request

POST /api/batchdata/get_candidates HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="batch_id"

777
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/batchdata/get_candidates

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/batchdata/get_candidates",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n777\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/batchdata/get_candidates

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("batch_id", "777");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/batchdata/get_candidates",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/batchdata/get_candidates

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n777\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/batchdata/get_candidates")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/batchdata/get_candidates

Sample Request

import requests

url = "http://54.213.29.253/api/batchdata/get_candidates"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n777\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalCandidates": 2,
    "candidate_data": [
        {
            "candidate_id": "11425",
            "candidate_name": "Prateek Jain",
            "candidate_email": "prateekjn12@gmail.com",
            "candidate_phone": "9874563210"
        },
        {
            "candidate_id": "11426",
            "candidate_name": "PJ Prateek Jain",
            "candidate_email": "prateekjn92@gmail.com",
            "candidate_phone": "9632147850"
        }
    ]
}

Add Candidates in Batch

Method: /batchdata/add_candidates

This API is used to add candidates in a already existing batch.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
batch_id Id of batch
candidate_excel Csv file(filetype: CSV) having candidate details


URL

https://www.tagscores.com/api/batchdata/add_candidates

Sample Request

POST /api/batchdata/add_candidates HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="batch_id"

777
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="candidate_excel"; filename="Batch_Sample_B2B_B2C.csv"
Content-Type: text/csv


------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/batchdata/add_candidates

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/batchdata/add_candidates",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n777\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_excel\"; filename=\"Batch_Sample_B2B_B2C.csv\"\r\nContent-Type: text/csv\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/batchdata/add_candidates

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("batch_id", "777");
form.append("candidate_excel", "Batch_Sample_B2B_B2C.csv");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/batchdata/add_candidates",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/batchdata/add_candidates

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n777\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_excel\"; filename=\"Batch_Sample_B2B_B2C.csv\"\r\nContent-Type: text/csv\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/batchdata/add_candidates")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/batchdata/add_candidates

Sample Request

import requests

url = "http://54.213.29.253/api/batchdata/add_candidates"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n777\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_excel\"; filename=\"Batch_Sample_B2B_B2C.csv\"\r\nContent-Type: text/csv\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Batch created successfully.",
    "batch_id": "777",
    "candidates_inserted": 2,
    "candidates_not_inserted": 0,
    "candidates_not_inserted_emails": []
}

Delete Batch

Method: /batchdata/remove_batch

You can delete a particular batch using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
batch_id Id of batch


URL

https://www.tagscores.com/api/batchdata/remove_batch

Sample Request

POST /api/batchdata/remove_batch HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="batch_id"

776
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/batchdata/remove_batch

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/batchdata/remove_batch",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n777\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/batchdata/remove_batch

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("batch_id", "776");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/batchdata/remove_batch",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/batchdata/remove_batch

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n776\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/batchdata/remove_batch")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/batchdata/remove_batch

Sample Request

import requests

url = "http://54.213.29.253/api/batchdata/remove_batch"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n776\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Batch has been deleted."
}

Create Assessment

Method: /assessmentdata/create_assessment

You can create a assessment using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
industry_id Id of industry
course_id Id of course
test_id Id of test
batch_id Id of Batch
training_center Name of Training Center
assessment_name Name of the Assessment
cutt_off Cut Off marks
login_attempt Number of login attempts allowed
time_in_min Time in Minutes
from_date Date Format must be like : 2019-04-12 16:15
to_date Date Format must be like : 2019-04-12 16:15
question_appearence Appearance of questions.

Possible Values : ​ random, shuffle, default (this is default if not sent any)
random_questions Optional(Required if question_appearence is random.)
range_marking This is Pratical Question Type.

Possible Values : ​ 1(for default), 2(for range), 3(for grade)
video_recording Enable video recording or not.

Possible Values : 1 (for enable), 0 (for disable – default)
geo_tagging Enable geo tagging or not.

Possible Values : 1 (for enable), 0 (for disable – default)
random_picture Enable random pictures or not.

Possible Values : 1 (for enable), 0 (for disable – default)
rm_pic_time Time For Random Picture Taking (In mintues).

Optional(Required if random_picture is enabled)
candidate_feedback Candidate Feedback

Possible Values : 1 (requires – default), 0(not requires)
candidate_validation Candidate Validation (ID Proof)

Possible Values : 1 (requires – default), 0(not requires)
question_log Log for Every Question

Possible Values : 1 (requires – default), 0(not requires)
fixed_time Fixed Time For Every Question

Possible Values : 1 (yes), 0(no - default)
tfeq Time for Every Question.

Optional(Required if Fixed Time is 1 i.e. Yes)
mov_to_prev Can Move To Previous Question

Possible Values : 1 (yes – default), 0(no )
submit_without_all_attempt Can user submit test without attempt all Quesiton.

Possible Values : 1 (yes – default), 0(no )


URL

https://www.tagscores.com/api/assessmentdata/create_assessment

Sample Request

POST /api/assessmentdata/create_assessment HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="industry_id"

150
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="course_id"

615
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="test_id"

596
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="batch_id"

778
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="training_center"

Delhi
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_name"

Test API
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="cutt_off"

2
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="login_attempt"

10
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="time_in_min"

5
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="from_date"

2019-04-12 16:15
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="to_date"

2019-05-25 16:15
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="question_appearence"

random
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="random_questions"

2
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="range_marking"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="video_recording"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="geo_tagging"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="random_picture"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="rm_pic_time"

2
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="candidate_feedback"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="candidate_validation"

0
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="question_log"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="fixed_time"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="tfeq"

2
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="mov_to_prev"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="submit_without_all_attempt"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/create_assessment

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/create_assessment",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"test_id\"\r\n\r\n596\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n778\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"training_center\"\r\n\r\nDelhi\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_name\"\r\n\r\nTest API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cutt_off\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"login_attempt\"\r\n\r\n10\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"time_in_min\"\r\n\r\n5\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"from_date\"\r\n\r\n2019-04-12 16:15\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"to_date\"\r\n\r\n2019-05-25 16:15\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"question_appearence\"\r\n\r\nrandom\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"random_questions\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"range_marking\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"video_recording\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"geo_tagging\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"random_picture\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"rm_pic_time\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_feedback\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_validation\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"question_log\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"fixed_time\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tfeq\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mov_to_prev\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"submit_without_all_attempt\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/create_assessment

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("industry_id", "150");
form.append("course_id", "615");
form.append("test_id", "596");
form.append("batch_id", "778");
form.append("training_center", "Delhi");
form.append("assessment_name", "Test API");
form.append("cutt_off", "2");
form.append("login_attempt", "10");
form.append("time_in_min", "5");
form.append("from_date", "2019-04-12 16:15");
form.append("to_date", "2019-05-25 16:15");
form.append("question_appearence", "random");
form.append("random_questions", "2");
form.append("range_marking", "1");
form.append("video_recording", "1");
form.append("geo_tagging", "1");
form.append("random_picture", "1");
form.append("rm_pic_time", "2");
form.append("candidate_feedback", "1");
form.append("candidate_validation", "0");
form.append("question_log", "1");
form.append("fixed_time", "1");
form.append("tfeq", "2");
form.append("mov_to_prev", "1");
form.append("submit_without_all_attempt", "1");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/create_assessment",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/create_assessment

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"test_id\"\r\n\r\n596\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n778\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"training_center\"\r\n\r\nDelhi\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_name\"\r\n\r\nTest API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cutt_off\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"login_attempt\"\r\n\r\n10\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"time_in_min\"\r\n\r\n5\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"from_date\"\r\n\r\n2019-04-12 16:15\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"to_date\"\r\n\r\n2019-05-25 16:15\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"question_appearence\"\r\n\r\nrandom\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"random_questions\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"range_marking\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"video_recording\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"geo_tagging\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"random_picture\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"rm_pic_time\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_feedback\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_validation\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"question_log\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"fixed_time\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tfeq\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mov_to_prev\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"submit_without_all_attempt\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/taketest/take_test")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/create_assessment

Sample Request

import requests

url = "http://54.213.29.253/api/taketest/take_test"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"industry_id\"\r\n\r\n150\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"course_id\"\r\n\r\n615\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"test_id\"\r\n\r\n596\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"batch_id\"\r\n\r\n778\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"training_center\"\r\n\r\nDelhi\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_name\"\r\n\r\nTest API\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cutt_off\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"login_attempt\"\r\n\r\n10\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"time_in_min\"\r\n\r\n5\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"from_date\"\r\n\r\n2019-04-12 16:15\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"to_date\"\r\n\r\n2019-05-25 16:15\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"question_appearence\"\r\n\r\nrandom\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"random_questions\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"range_marking\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"video_recording\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"geo_tagging\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"random_picture\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"rm_pic_time\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_feedback\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_validation\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"question_log\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"fixed_time\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tfeq\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mov_to_prev\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"submit_without_all_attempt\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Assessment created successfully",
    "assessment_id": 1264
}       

Get All Assessment

Method: /assessmentdata/get_all_assessment

You can get a list of all assessments using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
page This param is used to work like pagination, as there is a limit on data per response i.e. you will get 50 records only per response. This param is optional and by default you will get first 50 records for page=1, for next 50 records you have to send page value equal to 2 and so on in the same way.


URL

https://www.tagscores.com/api/assessmentdata/get_all_assessment

Sample Request

POST /api/assessmentdata/get_all_assessment HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/get_all_assessment

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/get_all_assessment",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/get_all_assessment

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/get_all_assessment",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/get_all_assessment

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/get_all_assessment")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/get_all_assessment

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/get_all_assessment"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalSchedule": 1,
    "assessment_data": [
        {
            "schedule_id": "1264",
            "schedule_name": "Test API",
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "batch_id": "778",
            "batch_name": "Test Batch API",
            "login_attempt": "10",
            "cuttoff": "2",
            "assessment_setting": {
                "candidate_feedback": "1",
                "candidate_validation": "0",
                "question_log": "1",
                "question_Appearence": "random",
                "randomQuestions": "2",
                "range_marking": "1",
                "movtoprev": "1",
                "geo_tagging": "1",
                "random_picture": "1",
                "video_recording": "1",
                "rm_pic_time": "2",
                "fixedTime": "1",
                "tfeq": "2",
                "submit_without_all_attempt": "1"
            },
            "start_date": "2019-04-12 16:15:00",
            "end_date": "2019-05-25 16:15:00",
            "test_name": "Test API",
            "test_duration": "5 min"
        }
    ]
}               

Get Specific Assessment

Method: /assessmentdata/get_specific_assessment

You can get a specific assessment detail using this API.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
assessment_id Assessment Id


URL

https://www.tagscores.com/api/assessmentdata/get_specific_assessment

Sample Request

POST /api/assessmentdata/get_specific_assessment HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_id"

1264
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/get_specific_assessment

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/get_specific_assessment",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/get_specific_assessment

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("assessment_id", "1264");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/get_specific_assessment",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/get_specific_assessment

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/get_specific_assessment")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/get_specific_assessment

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/get_specific_assessment"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalSchedule": 1,
    "assessment_data": [
        {
            "schedule_id": "1264",
            "schedule_name": "Test API",
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "batch_id": "778",
            "batch_name": "Test Batch API",
            "login_attempt": "10",
            "cuttoff": "2",
            "assessment_setting": {
                "candidate_feedback": "1",
                "candidate_validation": "0",
                "question_log": "1",
                "question_Appearence": "random",
                "randomQuestions": "2",
                "range_marking": "1",
                "movtoprev": "1",
                "geo_tagging": "1",
                "random_picture": "1",
                "video_recording": "1",
                "rm_pic_time": "2",
                "fixedTime": "1",
                "tfeq": "2",
                "submit_without_all_attempt": "1"
            },
            "start_date": "2019-04-12 16:15:00",
            "end_date": "2019-05-25 16:15:00",
            "test_name": "Test API",
            "test_duration": "5 min"
        }
    ]
}              

Delete Assessment

Method: /assessmentdata/remove_assessment

"You can delete a specific assessment using this API only if no candidate has attempted assessment.".

Attributes

Name Value Required
client_secret Your API secret for API request authentication
assessment_id Assessment Id


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment

Sample Request

POST /api/assessmentdata/remove_assessment HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_id"

1264
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/remove_assessment",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("assessment_id", "1264");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/remove_assessment",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/remove_assessment")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/remove_assessment"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Assessment has been deleted."
}            

Get All Tests

Method: /assessmentdata/get_all_tests

You can get all tests(that is mapped with assessment) detail susing this API

Attributes

Name Value Required
client_secret Your API secret for API request authentication


URL

https://www.tagscores.com/api/assessmentdata/get_all_tests

Sample Request

POST /api/assessmentdata/get_all_tests HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/get_all_tests

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/get_all_tests",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/get_all_tests

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/get_all_tests",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/get_all_tests

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/get_all_tests")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/get_all_tests

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/get_all_tests"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "totalTests": 2,
    "tests_data": [
        {
            "test_id": "596",
            "test_name": "Test API",
            "test_details": "",
            "test_descriptions": "",
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "total_marks": "4",
            "number_of_questions": "2",
            "test_duration": ""
        },
        {
            "test_id": "597",
            "test_name": "Test API2",
            "test_details": "",
            "test_descriptions": "",
            "industry_id": "150",
            "industry_name": "Test API",
            "course_id": "615",
            "course_name": "Test Course API",
            "total_marks": "4",
            "number_of_questions": "2",
            "test_duration": ""
        },
    ]
}          

Take Test API

Method: /taketest/take_test

This API is used to get test url.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
assessment_id Assessment Id
candidate_email Email of candidate
candidate_name Name of candidate
candidate_phone Value


URL

https://www.tagscores.com/api/taketest/take_test

Sample Request

POST /api/taketest/take_test HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_id"

1265
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="candidate_email"

prateekjn12@gmail.com
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="candidate_name"

prateek
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="candidate_phone"

9874563210
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/taketest/take_test

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/taketest/take_test",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1265\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_email\"\r\n\r\nprateekjn12@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_name\"\r\n\r\nprateek\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_phone\"\r\n\r\n9874563210\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/taketest/take_test

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("assessment_id", "1265");
form.append("candidate_email", "prateekjn12@gmail.com");
form.append("candidate_name", "prateek");
form.append("candidate_phone", "9874563210");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/taketest/take_test",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/taketest/take_test

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_email\"\r\n\r\nprateekjn12@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_name\"\r\n\r\nprateek\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_phone\"\r\n\r\n9874563210\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/taketest/take_test")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/taketest/take_test

Sample Request

import requests

url = "http://54.213.29.253/api/taketest/take_test"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_email\"\r\n\r\nprateekjn12@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_name\"\r\n\r\nprateek\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"candidate_phone\"\r\n\r\n9874563210\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "test_url": "http://54.213.29.253/process/test/processtest/hcmb1vbC1-Tglx5QeB5k6kWzf6mdenW1uya7Q3aHw9K66PgnI7IveALQfbx1SSks"
}      


* Test URL received in response of Take Test API must be open in a full screen mode for attempting a test successfully.

Include below code at the bottom of your page to implement the same and then make a call to the javascript function ​ modalShow() and pass test_url param value received in response json to function ​ modalShow(test_url) else handle the error message given in responseMessage parameter. :

HTML
<div id="myModal" style="display: none;position: fixed;z-index: 1;padding-top: 100px;left: 0;top:
0;width: 100%;height: 100%;overflow: auto;background-color: rgb(0,0,0);background-color:
rgba(0,0,0,0.4);"><div style="background-color: #fefefe;margin: auto;padding: 20px;border: 1px
solid #888;width: 30%;"> <span style="color: #aaaaaa;float: right;font-size: 28px;font-weight:
bold;" onMouseOver="this.style.color= '#000';this.style.cursor= 'pointer';"
onMouseOut="this.style.color= '#aaaaaa';this.style.cursor= 'normal';"
onclick="modalClose();">&times;</span><p>Press ok to start the test</p> <button
onclick="openFullscreen();" id="modaltagbtn" style="padding: 10px;width: 25%;border:
0;background: green;font-size: 20px;color: #fff;">Ok</button></div></div> <iframe id="iframeurl"
style="width:0.001px;height:0.001px;opacity:0;"></iframe>


Javascript
<script>function
modalShow(e){document.getElementById("modaltagbtn").setAttribute("tagTestURL",e),document
.getElementById("myModal").style.display="block"}function
modalClose(){document.getElementById("modaltagbtn").setAttribute("tagTestURL",""),document.
getElementById("myModal").style.display="none"}function openFullscreen(){var
e=document.getElementById("modaltagbtn").getAttribute("tagTestURL"),t=document.getElement
ById("iframeurl");document.getElementById("iframeurl").setAttribute("src",e),t.style.opacity=1,t.r
equestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webki
tRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen(
),modalClose()}document.addEventListener("fullscreenchange",function(e){var
t=document.getElementById("iframeurl");document.fullscreenElement||(document.getElementB
yId("iframeurl").setAttribute("src",""),t.style.opacity=0)});</script>

Get Assessment Responses

Method: /assessmentdata/get_assessment_responses

This API call is used to retrieve assessment responses for a assessment.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
assessment_id Assessment Id


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

POST /api/assessmentdata/get_assessment_responses HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_id"

1265
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/get_assessment_responses",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1265\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("assessment_id", "1265");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/get_assessment_responses",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1265\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/get_assessment_responses")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/get_assessment_responses"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1265\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "schedule_id": "1265",
    "schedule_name": "Test API",
    "test_id": "596",
    "test_name": "Test API",
    "assessment_responses": [
        {
            "assessment_response_id": "11434",
            "user_id": "11425",
            "user_name": "Prateek Jain",
            "user_email": "prateekjn12@gmail.com",
            "user_phone": "9874563210",
            "submitted_at": "2019-04-23 06:02:00",
            "assessment_response_details": [
                {
                    "question": "<p>Follow co-worker instructions for care and safe operation of the equipment?</p>",
                    "user_answer": "FALSE",
                    "question_type": "Theory",
                    "marks_gain": "0",
                    "attempt_count": "1"
                },
                {
                    "question": "<p>Give a demonstration that how would you plan and organize refresher training courses on Safety equipment for existing workers</p>",
                    "user_answer": "TRUE",
                    "question_type": "Theory",
                    "marks_gain": "2",
                    "attempt_count": "1"
                }
            ]
        },
        {
            "assessment_response_id": "11435",
            "user_id": "11426",
            "user_name": "PJ Prateek Jain",
            "user_email": "prateekjn92@gmail.com",
            "user_phone": "9632147850",
            "submitted_at": "2019-04-23 06:12:33",
            "assessment_response_details": [
                {
                    "question": "<p>Follow co-worker instructions for care and safe operation of the equipment?</p>",
                    "user_answer": "TRUE",
                    "question_type": "Theory",
                    "marks_gain": "2",
                    "attempt_count": "1"
                },
                {
                    "question": "<p>Give a demonstration that how would you plan and organize refresher training courses on Safety equipment for existing workers</p>",
                    "user_answer": "False",
                    "question_type": "Theory",
                    "marks_gain": "0",
                    "attempt_count": "1"
                }
            ]
        }
    ]
}   

Get Specific Response

Method: /assessmentdata/get_assessment_responses

This API call can be used to get a specific assessment response for a given assessment.

Attributes

Name Value Required
client_secret Your API secret for API request authentication
assessment_id Assessment Id
assessment_response_id Assessment Response Id


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

POST /api/assessmentdata/get_assessment_responses HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_id"

1265
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_response_id"

11434
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/get_assessment_responses",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1265\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_response_id\"\r\n\r\n11432\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("assessment_id", "1265");
form.append("assessment_response_id", "11434");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/get_assessment_responses",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_response_id\"\r\n\r\n11434\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/get_assessment_responses")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/get_assessment_responses

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/get_assessment_responses"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_response_id\"\r\n\r\n11434\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "schedule_id": "1265",
    "schedule_name": "Test API",
    "test_id": "596",
    "test_name": "Test API",
    "assessment_responses": [
        {
            "assessment_response_id": "11432",
            "user_id": "11425",
            "user_name": "PJ Prateek Jain",
            "user_email": "prateek9878@gmail.com",
            "user_phone": "9874563210",
            "submitted_at": "2019-04-23 05:26:25",
            "assessment_response_details": [
                {
                    "question": "<p>Follow co-worker instructions for care and safe operation of the equipment?</p>",
                    "user_answer": "TRUE",
                    "question_type": "Theory",
                    "marks_gain": "2",
                    "attempt_count": "1"
                },
                {
                    "question": "<p>Give a demonstration that how would you plan and organize refresher training courses on Safety equipment for existing workers</p>",
                    "user_answer": "TRUE",
                    "question_type": "Theory",
                    "marks_gain": "2",
                    "attempt_count": "1"
                }
            ]
        }
    ]
}     

Delete Assessment Response

Method: /assessmentdata/remove_assessment_response

This API call can be used to delete a specific assessment response for a given assessment.

Name Value Required
client_secret Your API secret for API request authentication
assessment_id Assessment Id
assessment_response_id Assessment Response Id


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment_response

Sample Request

POST /api/assessmentdata/remove_assessment_response HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_id"

1265
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_response_id"

11433
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment_response

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/remove_assessment_response",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1265\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_response_id\"\r\n\r\n11432\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment_response

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("assessment_id", "1265");
form.append("assessment_response_id", "11433");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/remove_assessment_response",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment_response

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_response_id\"\r\n\r\n11433\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/remove_assessment_response")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/remove_assessment_response

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/remove_assessment_response"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_response_id\"\r\n\r\n11433\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Response deleted successfully."
}

Send Assessment

Method: /assessmentdata/send_assessment

This API is used to send assessment invitations to individual respondents as well as email lists

Name Value Required
client_secret Your API secret for API request authentication
assessment_id Assessment Id
registered_users This param is used to Number send assessments to either all users of a batch(linked with assessment) or to the selected users (details send in user_detail param).

0(for registered batch users), 1(for unregistered users send in user detail params.
Default: 0
user_detail Users detail to whome assessment is needed to send. Example value: [{"email":"prateekjn12@gmail.com","name":"Prateek Jain","phone":"9874563210"},{"email":"prateekjn92@gmail.com","name":"Prateek Jain92","phone":"9874563210"}]

Optional(Required if registered_users param value is 1)


URL

https://www.tagscores.com/api/assessmentdata/send_assessment

Sample Request

POST /api/assessmentdata/send_assessment HTTP/1.1
Host: 54.213.29.253
Authorization: Basic dGFndbhjfRT0iFgZyRj
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="client_secret"

{{YOUR-CLIENT-SECRET}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="assessment_id"

1265
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="registered_users"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="user_detail"

[{"email":"prateekjn12@gmail.com","name":"Prateek Jain","phone":"9874563210"},{"email":"prateekjn92@gmail.com","name":"Prateek Jain 92","phone":"9874563210"}]
------WebKitFormBoundary7MA4YWxkTrZu0gW--


URL

https://www.tagscores.com/api/assessmentdata/send_assessment

Sample Request

<?php
  $curl 
curl_init();

  
curl_setopt_array($curl, array(
    
CURLOPT_URL => "http://54.213.29.253/api/assessmentdata/send_assessment",
    
CURLOPT_RETURNTRANSFER => true,
    
CURLOPT_ENCODING => "",
    
CURLOPT_MAXREDIRS => 10,
    
CURLOPT_TIMEOUT => 30,
    
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    
CURLOPT_CUSTOMREQUEST => "POST",
    
CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1265\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"registered_users\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_detail\"\r\n\r\n[{\"email\":\"prateekjn4321@gmail.com\",\"name\":\"Prateek Jain\",\"phone\":\"9874563210\"},{\"email\":\"prateekjn1234@gmail.com\",\"name\":\"Prateek Jain 92\",\"phone\":\"9874563210\"}]\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
    
CURLOPT_HTTPHEADER => array(
      
"authorization: Basic dGFndbhjfRT0iFgZyRj",
      
"cache-control: no-cache",
      
"content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
    
),
  ));

  
$response curl_exec($curl);
  
$err curl_error($curl);

  
curl_close($curl);

  if (
$err) {
    echo 
"cURL Error #:" $err;
  } else {
    echo 
$response;
  };
?>


URL

https://www.tagscores.com/api/assessmentdata/send_assessment

Sample Request

var form = new FormData();
form.append("client_secret", "{{YOUR-CLIENT-SECRET}}");
form.append("assessment_id", "1265");
form.append("registered_users", "1");
form.append("user_detail", "[{\"email\":\"prateekjn12@gmail.com\",\"name\":\"Prateek Jain\",\"phone\":\"9874563210\"},{\"email\":\"prateekjn92@gmail.com\",\"name\":\"Prateek Jain 92\",\"phone\":\"9874563210\"}]");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://54.213.29.253/api/assessmentdata/send_assessment",
  "method": "POST",
  "headers": {
    "authorization": "Basic dGFndbhjfRT0iFgZyRj",
    "cache-control": "no-cache"
  },
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});


URL

https://www.tagscores.com/api/assessmentdata/send_assessment

Sample Request

OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
RequestBody body = RequestBody.create(mediaType, "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"registered_users\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_detail\"\r\n\r\n[{\"email\":\"prateekjn12@gmail.com\",\"name\":\"Prateek Jain\",\"phone\":\"9874563210\"},{\"email\":\"prateekjn92@gmail.com\",\"name\":\"Prateek Jain 92\",\"phone\":\"9874563210\"}]\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--");
Request request = new Request.Builder()
  .url("http://54.213.29.253/api/assessmentdata/send_assessment")
  .post(body)
  .addHeader("content-type", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW")
  .addHeader("authorization", "Basic dGFndbhjfRT0iFgZyRj")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();


URL

https://www.tagscores.com/api/assessmentdata/send_assessment

Sample Request

import requests

url = "http://54.213.29.253/api/assessmentdata/send_assessment"

payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_secret\"\r\n\r\n{{YOUR-CLIENT-SECRET}}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"assessment_id\"\r\n\r\n1264\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"registered_users\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_detail\"\r\n\r\n[{\"email\":\"prateekjn12@gmail.com\",\"name\":\"Prateek Jain\",\"phone\":\"9874563210\"},{\"email\":\"prateekjn92@gmail.com\",\"name\":\"Prateek Jain 92\",\"phone\":\"9874563210\"}]\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
    'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
    'authorization': "Basic dGFndbhjfRT0iFgZyRj",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Sample Response

                                         
{
    "responseCode": 200,
    "responseMessage": "Success",
    "success_emails": [
        "prateekjn4321@gmail.com",
        "prateekjn1234@gmail.com"
    ],
    "fail_emails": []
}