Constructor
new Api(authToken, region)
Creates a new Api instance
Parameters:
Name | Type | Description |
---|---|---|
authToken |
string | |
region |
string |
Methods
getCallDetails(callId) → {Promise.<CallDetails>}
Get call details after a call has taken place
Parameters:
Name | Type | Description |
---|---|---|
callId |
number |
Returns:
- Type
- Promise.<CallDetails>
getCallDictionaries() → {Promise.<CallDictionaries>}
Get the call dictionaries
Returns:
- Type
- Promise.<CallDictionaries>
getInterlocutorInfo(callId) → {Promise.<InterlocutorInfo>}
Get the interlocutor info for the call
Parameters:
Name | Type | Description |
---|---|---|
callId |
number |
Returns:
- Type
- Promise.<InterlocutorInfo>
hangupCall(callId) → {Promise.<boolean>}
Hangup call in boostlingo
Parameters:
Name | Type | Description |
---|---|---|
callId |
number |
Returns:
- Type
- Promise.<boolean>
makeCall(req) → {Promise.<Object>}
Initiates call in boostlingo
Parameters:
Name | Type | Description |
---|---|---|
req |
CallRequest |
Returns:
- Type
- Promise.<Object>