Class: AWS.ConnectParticipant
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.ConnectParticipant
- Identifier:
- connectparticipant
- API Version:
- 2018-09-07
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Connect is a cloud-based contact center solution that makes it easy to set up and manage a customer contact center and provide reliable customer engagement at any scale.
Amazon Connect enables customer contacts through voice or chat.
The APIs described here are used by chat participants, such as agents and customers.
Sending a Request Using ConnectParticipant
var connectparticipant = new AWS.ConnectParticipant();
connectparticipant.completeAttachmentUpload(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the ConnectParticipant object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var connectparticipant = new AWS.ConnectParticipant({apiVersion: '2018-09-07'});
You can also set the API version globally in AWS.config.apiVersions
using
the connectparticipant service identifier:
AWS.config.apiVersions = {
connectparticipant: '2018-09-07',
// other service API versions
};
var connectparticipant = new AWS.ConnectParticipant();
Constructor Summary collapse
-
new AWS.ConnectParticipant(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
completeAttachmentUpload(params = {}, callback) ⇒ AWS.Request
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API.
-
createParticipantConnection(params = {}, callback) ⇒ AWS.Request
Creates the participant's connection.
-
disconnectParticipant(params = {}, callback) ⇒ AWS.Request
Disconnects a participant.
-
getAttachment(params = {}, callback) ⇒ AWS.Request
Provides a pre-signed URL for download of a completed attachment.
-
getTranscript(params = {}, callback) ⇒ AWS.Request
Retrieves a transcript of the session, including details about any attachments.
-
sendEvent(params = {}, callback) ⇒ AWS.Request
Sends an event.
-
sendMessage(params = {}, callback) ⇒ AWS.Request
Sends a message.
-
startAttachmentUpload(params = {}, callback) ⇒ AWS.Request
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.ConnectParticipant(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
completeAttachmentUpload(params = {}, callback) ⇒ AWS.Request
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API.
createParticipantConnection(params = {}, callback) ⇒ AWS.Request
Creates the participant's connection. Note that ParticipantToken is used for invoking this API instead of ConnectionToken.
The participant token is valid for the lifetime of the participant – until they are part of a contact.
The response URL for WEBSOCKET
Type has a connect expiry timeout of 100s. Clients must manually connect to the returned websocket URL and subscribe to the desired topic.
For chat, you need to publish the following on the established websocket connection:
{"topic":"aws/subscribe","content":{"topics":["aws/chat"]}}
Upon websocket URL expiry, as specified in the response ConnectionExpiry parameter, clients need to call this API again to obtain a new websocket URL and perform the same steps as before.
disconnectParticipant(params = {}, callback) ⇒ AWS.Request
Disconnects a participant. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
getAttachment(params = {}, callback) ⇒ AWS.Request
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.
getTranscript(params = {}, callback) ⇒ AWS.Request
Retrieves a transcript of the session, including details about any attachments. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
sendEvent(params = {}, callback) ⇒ AWS.Request
Sends an event. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
sendMessage(params = {}, callback) ⇒ AWS.Request
Sends a message. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.