Suggestions

close search

Add agent to a campaign

URL: https://icc-api.stringee.com/v1/campagent

HTTP method: POST

Content-Type: Application/json

Custom HTTP header: Name: X-STRINGEE-AUTH Value: JSON web token (JWT), see Authentication

POST data (body):

{
        agent: ["AG2554MPQ"], 
        campaign: "CALPJTHO", 
        group: ["GR2554MPQ"]
}
Field Type Require Description
agent String YES Agent ID
campaign String YES Campaign ID
group String YES Group ID

Response:

{
        "msg": "Success",
        "r": 0
}
Field Type Require Description
r Int Yes Result code
msg String No Result message

Sample request

POST v1/campagent HTTP/1.1
Host: https://icc-api.stringee.com
X-STRINGEE-AUTH: json_web_token
Accept: Application/json

{
    "id": "1"
}

Sample response

{
    "msg": "Success"
    "r": 0,
}

Get agent information

URL: https://icc-api.stringee.com/v1/campagent

HTTP method: GET

Content-Type: Application/json

Custom HTTP header: Name: X-STRINGEE-AUTH Value: JSON web token (JWT), see Authentication

GET data (body):

{
        campaign: "",
        agent: "",
        page: 1,
        limit: 10
}
Field Type Require Description
campaign String YES Campaign ID
agent String YES Agent ID
page String YES
limit String YES

Response:

{
        "msg": "Success",
        "r": 0,
        "data":
            "rows": [
                0: {
                    account: 16                                                  
                    agent_id: "AGAH2Q4Q" 
                    agent_name: "Hoang"                       
                    campaign_id: "CAQRRFTK"                            
                    campaignname: "Testing"       
                    group_id: null
                    id: 70                                             
                    project: 25                                        
                    type: 1
                },
                1: {
                    account: 16
                    agent_id: "AGAH2Q4Q"
                    agent_name: "Hai"
                    campaign_id: "CALPJTHO"
                    campaignname: "test"
                    group_id: null
                    id: 71
                    project: 25
                    type: 1
                }
            ]
            "totalCount": "2"
            "totalPages": 1

}
Field Type Require Description
r Int Yes Result code
msg String No Result message

Sample request

GET v1/camagentHTTP/1.1
Host: https://icc-api.stringee.com
X-STRINGEE-AUTH: json_web_token
Accept: Application/json

{
    "id": "1"
}

Sample response

{
    "msg": "Success"
    "r": 0,
}

Delete agent from campaign

URL: https://icc-api.stringee.com/v1/campagent/ + {AgentInCampaignId}

HTTP method: DELETE

Content-Type: Application/json

Custom HTTP header: Name: X-STRINGEE-AUTH Value: JSON web token (JWT), see Authentication

DELETE data (body):

{
        "id": 110,
}
Field Type Require Description
id INT YES ID AGENT IN CAMPAIGN

Response:

{
        "msg": "Success",
        "r": 0
}
Field Type Require Description
r Int Yes Result code
msg String No Result message

Sample request

DELETE v1/campagent HTTP/1.1
Host: https://icc-api.stringee.com
X-STRINGEE-AUTH: json_web_token
Accept: Application/json

{
    "id": "1"
}

Sample response

{
    "msg": "Success"
    "r": 0,
}