CallLogRequestBuilder
, This builder allows you to customize the call logs fetching process according to your needs.
CallLogRequestBuilder
has the following settings available.
Setting | Description |
---|---|
setLimit(limit: number) | Specifies the number of call logs to fetch. |
setCallType(callType: 'video' or 'audio') | Sets the type of calls to fetch (call or meet). |
setCallStatus(callStatus: 'ongoing' or 'busy' or 'rejected' or 'cancelled' or 'ended' or 'missed') | Sets the status of calls to fetch (initiated, ongoing, etc.) |
setHasRecording(hasRecording: boolean) | Sets whether to fetch calls that have recordings. |
setCallCategory(callCategory: 'call' or 'meet') | Sets the category of calls to fetch (call or meet). |
setCallDirection(callDirection: 'incoming' or 'outgoing') | Sets the direction of calls to fetch (incoming or outgoing) |
setUid(uid: string) | Sets the UID of the user whose call logs to fetch. |
setGuid(guid: string) | Sets the GUID of the user whose call logs to fetch. |
setAuthToken(authToken: string) | Sets the Auth token of the logged-in user. |
fetchNext()
**method retrieves the next set of call logs.
fetchPrevious()
**method retrieves the previous set of call logs.
getCallDetails()
**method. This method requires the Auth token of the logged-in user and the session ID along with a callback listener.
"SESSION_ID"
**with the ID of the session you are interested in.