Get Interaction Photo

Purpose

This method retrieves the content of an image that was uploaded in a specified Interaction. The method is relevant only to Interactions that include the Photo Upload feature.

This method is always used in combination with the Get Full Interaction Flow method. Once the Interaction flow is returned, the path to the required images (img_path) can be identified and used to retrieve photos.

URL Syntax and Example

http://[host:port/internalPath]Application Name/agent/version/[version]/account/[accountID]/photo/[interactionuniqueid/[img_path]_?maxSize=[requiredsize]

http:/interact.jacada.com/interact/agent/version/1/account/12345678/photo/040100709/%252Fmnt%252Fsdcard%252Fhome%252Fdownloads%252Fi1152998579@@@@@png?maxSize=60

url decoded: /interact/version/1/account/12345678/photo/040100713//mnt/sdcard/home/downloads/i1152998579@@@@@png?maxSize=60

Specific URI Fields

URI Field

Data Type

Description/Notes

img_path

string

The complete path to an image used in an Interaction. The period in the image name (e.g., Image.png) needs to be replaced by @@@@@ in the request (e.g., Image@@@@png).

requiredsize

integer

The size (in pixels) of the image that is returned.

HTTP Method

GET

HTTP Headers

Tenant-Id: <account>

Application-Key: <agent app application key>

Sample Response

HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Content-Type: image/jpg;charset=UTF-8

Transfer-Encoding: chunked

Date: Mon, 01 Apr 2013 11:52:28 GMT