- Login Test API
- Login Prod API
- Login Request Sample Response
- Whatsapp Test API
- Whatsapp Prod API
- CRM Test API
- CRM Prod API
- SignalR Hubs
- Global Function Examples
- Logos and Icons
For login operations VPN REQUIRED: (http://testauth.prospot.online/swagger/index.html
For login operations: http://auth.prospot.online/swagger/index.html
{
"Token": "eyJhb...",
"UserProfile": {
"UserID": 290,
"Username": "oguzhan.inal",
"Name": "Oğuzhan",
"Surname": "İnal",
"Email": "[email protected]",
"RoleID": 0,
"RoleList": [18],
"UserCompanyList": [
{
"ID": "9c8e1151-2256-4c93-b874-1466d6c7afd9", // GlobalCompanyID variable for request header
"Name": "Catamaran Resort Hotel" // The 0th element of UserCompanyList should always be taken as the default value.
}
],
"UserToken": null,
"LanguageID": 1,
"LanguageIsoCode": "TR",
"DefaultPage": "crm/whatsappmenu/chat",
"UserAvatar": null, // User's saved avatar selection
"DarkMode": false, // User's saved theme selection
"SellerID": 0,
"UsingChat": true
}
}
For Whatsapp Test operations VPN REQUIRED: http://testwhatsappapi.prospot.online/swagger/index.html
For Whatsapp Prod operations: http://whatsappapi.prospot.online/swagger/index.html
/Whatsapp/SendWhatsappMediaMessage (Media Mesajlarının gönderimi için kullanılır base64 formatta)
/WhatsappChat/SendChatMessage (text message gönderimi için kullanılır)
For CRM Test operations VPN REQUIRED: http://testcrm.prospot.online/swagger/index.html
For CRM Prod operations: http://crm.prospot.online/swagger/index.html
/CRM/MakeMessageRead (Used to send message reading info)
/CRM/GetFireBaseToken (To send Firebase Push Notification Token (FCM) to the service)
//access_token is created by concatenating the UserID and GlobalCompanyID in the response of the login request
const access_token = `${UserID}_${GlobalCompanyID}`; // Token'ı başka bir kaynaktan da alabilirsiniz.
const connection_url = `https://chatserviceapi.prospot.online/chatHub?access_token=${accessToken}`;
unfortunately there is no swagger documentation :(
Click to see Create CallHub Example
- startListeningToHubChatDetailList is the updated inbox data
- startListeningToHubChatDetail is the updated chat data
To view the messages of the selected person, the PhoneNumber information parameter in the user information must be added.
You can check the luwi.chat.mobile repository for examples.