Class AsyncCallsClient
- java.lang.Object
-
- com.intercom.api.resources.unstable.calls.AsyncCallsClient
-
public class AsyncCallsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncCallsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<AiCallResponse>collectFinVoiceCallByExternalId(CollectFinVoiceCallByExternalIdRequest request)Retrieve information about a Fin Voice call using the external call identifier.java.util.concurrent.CompletableFuture<AiCallResponse>collectFinVoiceCallByExternalId(CollectFinVoiceCallByExternalIdRequest request, RequestOptions requestOptions)Retrieve information about a Fin Voice call using the external call identifier.java.util.concurrent.CompletableFuture<AiCallResponse>collectFinVoiceCallById(CollectFinVoiceCallByIdRequest request)Retrieve information about a Fin Voice call using the external reference ID.java.util.concurrent.CompletableFuture<AiCallResponse>collectFinVoiceCallById(CollectFinVoiceCallByIdRequest request, RequestOptions requestOptions)Retrieve information about a Fin Voice call using the external reference ID.java.util.concurrent.CompletableFuture<Error>collectFinVoiceCallByPhoneNumber(CollectFinVoiceCallByPhoneNumberRequest request)Retrieve information about a Fin Voice call using the phone number.java.util.concurrent.CompletableFuture<Error>collectFinVoiceCallByPhoneNumber(CollectFinVoiceCallByPhoneNumberRequest request, RequestOptions requestOptions)Retrieve information about a Fin Voice call using the phone number.java.util.concurrent.CompletableFuture<CallList>listCalls()Retrieve a paginated list of calls.java.util.concurrent.CompletableFuture<CallList>listCalls(ListCallsRequest request)Retrieve a paginated list of calls.java.util.concurrent.CompletableFuture<CallList>listCalls(ListCallsRequest request, RequestOptions requestOptions)Retrieve a paginated list of calls.java.util.concurrent.CompletableFuture<ListCallsWithTranscriptsResponse>listCallsWithTranscripts(ListCallsWithTranscriptsRequest request)Retrieve calls by a list of conversation ids and include transcripts when available.java.util.concurrent.CompletableFuture<ListCallsWithTranscriptsResponse>listCallsWithTranscripts(ListCallsWithTranscriptsRequest request, RequestOptions requestOptions)Retrieve calls by a list of conversation ids and include transcripts when available.java.util.concurrent.CompletableFuture<AiCallResponse>registerFinVoiceCall()Register a Fin Voice call with Intercom.java.util.concurrent.CompletableFuture<AiCallResponse>registerFinVoiceCall(java.util.Optional<RegisterFinVoiceCallRequest> request)Register a Fin Voice call with Intercom.java.util.concurrent.CompletableFuture<AiCallResponse>registerFinVoiceCall(java.util.Optional<RegisterFinVoiceCallRequest> request, RequestOptions requestOptions)Register a Fin Voice call with Intercom.java.util.concurrent.CompletableFuture<Call>showCall(ShowCallRequest request)Retrieve a single call by id.java.util.concurrent.CompletableFuture<Call>showCall(ShowCallRequest request, RequestOptions requestOptions)Retrieve a single call by id.java.util.concurrent.CompletableFuture<java.lang.Void>showCallRecording(ShowCallRecordingRequest request)Redirects to a signed URL for the call's recording if it exists.java.util.concurrent.CompletableFuture<java.lang.Void>showCallRecording(ShowCallRecordingRequest request, RequestOptions requestOptions)Redirects to a signed URL for the call's recording if it exists.java.util.concurrent.CompletableFuture<java.lang.String>showCallTranscript(ShowCallTranscriptRequest request)Returns the transcript for the specified call as a downloadable text file.java.util.concurrent.CompletableFuture<java.lang.String>showCallTranscript(ShowCallTranscriptRequest request, RequestOptions requestOptions)Returns the transcript for the specified call as a downloadable text file.AsyncRawCallsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncCallsClient
public AsyncCallsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawCallsClient withRawResponse()
Get responses with HTTP metadata like headers
-
listCalls
public java.util.concurrent.CompletableFuture<CallList> listCalls()
Retrieve a paginated list of calls.
-
listCalls
public java.util.concurrent.CompletableFuture<CallList> listCalls(ListCallsRequest request)
Retrieve a paginated list of calls.
-
listCalls
public java.util.concurrent.CompletableFuture<CallList> listCalls(ListCallsRequest request, RequestOptions requestOptions)
Retrieve a paginated list of calls.
-
showCall
public java.util.concurrent.CompletableFuture<Call> showCall(ShowCallRequest request)
Retrieve a single call by id.
-
showCall
public java.util.concurrent.CompletableFuture<Call> showCall(ShowCallRequest request, RequestOptions requestOptions)
Retrieve a single call by id.
-
showCallRecording
public java.util.concurrent.CompletableFuture<java.lang.Void> showCallRecording(ShowCallRecordingRequest request)
Redirects to a signed URL for the call's recording if it exists.
-
showCallRecording
public java.util.concurrent.CompletableFuture<java.lang.Void> showCallRecording(ShowCallRecordingRequest request, RequestOptions requestOptions)
Redirects to a signed URL for the call's recording if it exists.
-
showCallTranscript
public java.util.concurrent.CompletableFuture<java.lang.String> showCallTranscript(ShowCallTranscriptRequest request)
Returns the transcript for the specified call as a downloadable text file.
-
showCallTranscript
public java.util.concurrent.CompletableFuture<java.lang.String> showCallTranscript(ShowCallTranscriptRequest request, RequestOptions requestOptions)
Returns the transcript for the specified call as a downloadable text file.
-
listCallsWithTranscripts
public java.util.concurrent.CompletableFuture<ListCallsWithTranscriptsResponse> listCallsWithTranscripts(ListCallsWithTranscriptsRequest request)
Retrieve calls by a list of conversation ids and include transcripts when available. A maximum of 20conversation_idscan be provided. If none are provided or more than 20 are provided, a 400 error is returned.
-
listCallsWithTranscripts
public java.util.concurrent.CompletableFuture<ListCallsWithTranscriptsResponse> listCallsWithTranscripts(ListCallsWithTranscriptsRequest request, RequestOptions requestOptions)
Retrieve calls by a list of conversation ids and include transcripts when available. A maximum of 20conversation_idscan be provided. If none are provided or more than 20 are provided, a 400 error is returned.
-
registerFinVoiceCall
public java.util.concurrent.CompletableFuture<AiCallResponse> registerFinVoiceCall()
Register a Fin Voice call with Intercom. This endpoint creates an external reference that links an external call identifier to an Intercom call and conversation.The call can be from different sources:
- AWS Connect (default)
- Five9
- Zoom Phone
-
registerFinVoiceCall
public java.util.concurrent.CompletableFuture<AiCallResponse> registerFinVoiceCall(java.util.Optional<RegisterFinVoiceCallRequest> request)
Register a Fin Voice call with Intercom. This endpoint creates an external reference that links an external call identifier to an Intercom call and conversation.The call can be from different sources:
- AWS Connect (default)
- Five9
- Zoom Phone
-
registerFinVoiceCall
public java.util.concurrent.CompletableFuture<AiCallResponse> registerFinVoiceCall(java.util.Optional<RegisterFinVoiceCallRequest> request, RequestOptions requestOptions)
Register a Fin Voice call with Intercom. This endpoint creates an external reference that links an external call identifier to an Intercom call and conversation.The call can be from different sources:
- AWS Connect (default)
- Five9
- Zoom Phone
-
collectFinVoiceCallById
public java.util.concurrent.CompletableFuture<AiCallResponse> collectFinVoiceCallById(CollectFinVoiceCallByIdRequest request)
Retrieve information about a Fin Voice call using the external reference ID.
-
collectFinVoiceCallById
public java.util.concurrent.CompletableFuture<AiCallResponse> collectFinVoiceCallById(CollectFinVoiceCallByIdRequest request, RequestOptions requestOptions)
Retrieve information about a Fin Voice call using the external reference ID.
-
collectFinVoiceCallByExternalId
public java.util.concurrent.CompletableFuture<AiCallResponse> collectFinVoiceCallByExternalId(CollectFinVoiceCallByExternalIdRequest request)
Retrieve information about a Fin Voice call using the external call identifier.
-
collectFinVoiceCallByExternalId
public java.util.concurrent.CompletableFuture<AiCallResponse> collectFinVoiceCallByExternalId(CollectFinVoiceCallByExternalIdRequest request, RequestOptions requestOptions)
Retrieve information about a Fin Voice call using the external call identifier.
-
collectFinVoiceCallByPhoneNumber
public java.util.concurrent.CompletableFuture<Error> collectFinVoiceCallByPhoneNumber(CollectFinVoiceCallByPhoneNumberRequest request)
Retrieve information about a Fin Voice call using the phone number.Returns the most recent matched call for the given phone number, ordered by creation date.
-
collectFinVoiceCallByPhoneNumber
public java.util.concurrent.CompletableFuture<Error> collectFinVoiceCallByPhoneNumber(CollectFinVoiceCallByPhoneNumberRequest request, RequestOptions requestOptions)
Retrieve information about a Fin Voice call using the phone number.Returns the most recent matched call for the given phone number, ordered by creation date.
-
-