1) GET ACCESS TOKEN
POST /auths/gcalls-verify-login/
- Headers
Content-Type: application/json;charset=UTF-8;
X-Sogo-Access-Token: 8bb36621fab8f0ff68660ee5db9758a2
{
"username": "[email protected]",
"password": "testgcalls@1234@2022"
}
Request
- Response{
"status": 200,
"message": "SUCCESS!",
"access_token": "YWRtaW5Ac29nby52bnwxMjM0NTY="
}
Response
2) SEARCH PHONE
GET /lead/search-phone/?phone=
- Headers
Content-Type: application/json;charset=UTF-8;
X-Sogo-Access-Token: 8bb36621fab8f0ff68660ee5db9758a2
Authorization: Bearer <access_token value>
Request
{
"status": 200,
"message": "success",
"data": [
{
"Name": "KIM DUNG",
"StudentName": "VO MINH KHANG",
"StudentCode": "K21307",
"StudentRelation": null,
"Product": "Younger",
"ActivityResult": "Renewal Sign",
"ContractValue": 9900000,
"CSO": "Nguyễn Thị Ngọc Trâm",
"Center": "AN PHÚ "
},
{
"Name": "KIM DUNG",
"StudentName": "Nguyễn Văn Tài",
"StudentCode": "K21488",
"StudentRelation": null,
"Product": "I Can Read Plus 1",
"ActivityResult": "Untouched",
"ContractValue": 0,
"CSO": null,
"Center": "AN PHÚ "
}
]
}