Jump to: navigation, search

Get Chained Record

This operation is part of the Outbound API section of the Web Services API.

Overview

Returns the chained outbound record.

Request URL /api/v2/me/outbound-records/<record-handle>
HTTP Method POST
Required Features api-voice-outbound

Parameters

Parameter Type Value Required
operationName String GetChainedRecord Yes
applicationId Integer The unique identifier of the OCS application. Yes
campaignName String The name of the outbound campaign used for this operation. Yes
devicePath String The relative path to the device used for sending the TLib request. Yes
referenceId String A unique identifier used to map the API call to the CometD response. If the request contains a referenceId, Web Services sends an acknowledgement or other event with the same reference ID via CometD. No

Samples

Request

POST /api/v2/me/outbound-records/7
{
	'devicePath': '/devices/c259da54-7c22-4a43-9440-77a92facc86b', 
	'operationName': 'GetChainedRecord', 
	'applicationId': 134, 
	'campaignName': 'Campaign1',
        'referenceId': '123456789'
}

HTTP Response

{
    "statusCode": 0
}

CometD Response

[
	{
		'data': 
		{
			'record': 
			{
				'devicePath': '/devices/c259da54-7c22-4a43-9440-77a92facc86b', 
				'callingList': 'CallingList1', 
				'applicationId': 134,
				'recordHandle': 7, 
				'campaignName': 'Campaign1'
			}, 
			'notificationType': 'ChainedRecordsDataEnd', 
			'messageType': 'OutboundRecordMessage',
                        'referenceId': '123456789' 
		}, 
		'channel': '/v2/me/outbound'
	}, 
	{
		'data': 
		{
			'metrics': 
			{
				'eventProcessing': 
				{
					'serverGenerationTimestamp': 1433915532887, 
					'nodeProcessingTimeNanos': 6518539, 
					'serverProcessingTimeTotalMs': 6
				}
			}, 
			'userData': 
			{
				'GSW_APPLICATION_ID': 134, 
				'GSW_RECORD_HANDLE': 7, 
				'GSW_USER_EVENT': 'ChainedRecordsDataEnd', 
				'GSW_CALLING_LIST': 'CallingList1', 
				'GSW_CAMPAIGN_NAME': 'Campaign1', 
				'GSW_CHAIN_ID': 1
			}, 
			'deviceId': 'c259da54-7c22-4a43-9440-77a92facc86b', 
			'messageType': 'DeviceUserEventMessage'
		}, 
		'channel': '/me/internal'
	}, 
	{
		'successful': True, 
		'advice': 
		{
			'interval': 0, 
			'timeout': 30000, 
			'reconnect': 'retry'
		}, 
		'id': '16', 
		'channel': '/meta/connect'
	}
]
This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!