Developer API - Chat

Quick Start

This API will retrieve individual chat transcript data from the Chat 24/7 Live system to be stored in the recipient's database for display on recipient's client dashboards or other locations.

URL

Call transcript data.

https:// chatprogram.chat247live.com/api/transcript.php

Method

"POST" method is used to send require and optional parameters

URL Parameters

The URL parameters can be separated into two parts one is required and the other is optional. The required parameter is a token which authenticates a request. Make sure the token is secure within your system.

Required Parameter

"token" is required parameter.

[To obtain this parameter please contact API admin. Email ]

Optional Parameter

1. from_date

2. to_date

3. client_id
[To obtain this parameter please contact API admin. Email ]

4. lead_type

Lead Type refer to

1  Lead
2  Lead - Teleconference
3  Lead - Appointment
4  Franchise Prospect
5  Consumer Prospect
6  Positive Feedback
7  Complaint
8  Website Issue
9  Sales Issue
10  Customer Service
11  Employment Prospect
12  No Response
13  Other
14  Vendor
15  Repeat Chat
17  Special offer

Example:-

from_date: '2016-05-02'

to_date: '2016-05-04'

lead_type: '3'

Success Response

Response is in JSON format which holds 3 keys

1. Status_code

2. Data

3. Message

    Sample:
        [
        status_code: 200,
        data: 	[
            json array
        ]
        message: [count data array] transcript.
        ]
                            

Error Response

Response is in JSON format which holds 3 keys

1. Status_code

2. Data

3. Message

    Sample:
        [
        status_code: 204 No Content,
        data: [ empty array ],
        message: No company is connected for this API user.
        ]
                            

OR

        [
        status_code: 401 Unauthorized,
        data: [ empty array ],
        message: Invalid token.
        ]
                            

OR

        [
        status_code: 401 Unauthorized,
        data: [ empty array ],
        message: Token is not found in this request.
        ]
                            

OR

        [
        status_code: 401 Unauthorized,
        data: [ empty array ],
        message: Not a valid post request.
        ]