Jump to: navigation, search
(Created Fix blank page For Version: HTCC:8.5.2)
 
(Update with the copy of version: 8.5.2DRAFT)
Line 1: Line 1:
<!-- Creation of the fix page -->
+
= AddComment=
 +
__NOTOC__
 +
This operation is part of the [[FacebookPM|Facebook Private Messaging API]] section of the [[Welcome|Genesys Web Services REST API]].
 +
 
 +
<h2> Overview </h2>
 +
 
 +
Sets a comment on the specified FacebookSession interaction.
 +
 
 +
{| class="wikitable"
 +
|-
 +
! scope="row"| Request URL
 +
| /api/v2/me/facebooksession/{id}
 +
|-
 +
! scope="row"| HTTP Method
 +
| POST
 +
|-
 +
! scope="row" | Required Features
 +
| api-multimedia
 +
|}
 +
<h2>Parameters</h2>
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Parameter
 +
! Value
 +
|-
 +
|operationName
 +
|AddComment
 +
|-
 +
|comment
 +
|A string value used for the FacebookSession comment.
 +
|}
 +
 
 +
<h2>Sample</h2>
 +
 
 +
<h3>Request</h3>
 +
<source lang="text">
 +
POST api/v2/me/facebooksession/0000Na9B26EF003M
 +
 
 +
{
 +
"operationName": "AddComment",
 +
"comment": "Some facebook session comment text"
 +
}
 +
</source>
 +
<h3>Response</h3>
 +
 
 +
<source lang="text">
 +
{
 +
  "statusCode": 0
 +
}
 +
</source>
 +
 
 +
<h3>Notification</h3>
 +
 
 +
<source lang="text">
 +
{
 +
    "referenceId": 34,
 +
    "facebooksession": {
 +
        "participants": [
 +
            {
 +
                "nickname": "TestName",
 +
                "type": "Agent",
 +
                "participantId": "009052C73228006D"
 +
            },
 +
            {
 +
                "nickname": "FirstL",
 +
                "type": "Customer",
 +
                "participantId": "009052C73223006B"
 +
            }
 +
        ],
 +
        "state": "Chatting",
 +
        "id": "0000Na9B26EF003M",
 +
        "capabilities": [
 +
            "Transfer",
 +
            "Complete",
 +
            "Leave",
 +
            "InFocus",
 +
            "SendMessage",
 +
            "SendStartTypingNotification",
 +
            "SendStopTypingNotification"
 +
        ],
 +
        "comment": "Some chat comment text",
 +
        "uri": "http: //localhost:8080/api/v2/facebooksession/0000Na9B26EF003M"
 +
    },
 +
    "notificationType": "PropertiesUpdated",
 +
    "messageType": "FacebooksessionStateChangeMessage"
 +
}
 +
</source>
 +
 
 +
 
 +
[[Category:V:HTCC:8.5.2]]

Revision as of 19:44, October 23, 2015

AddComment

This operation is part of the Facebook Private Messaging API section of the Genesys Web Services REST API.

Overview

Sets a comment on the specified FacebookSession interaction.

Request URL /api/v2/me/facebooksession/{id}
HTTP Method POST
Required Features api-multimedia

Parameters

Parameter Value
operationName AddComment
comment A string value used for the FacebookSession comment.

Sample

Request

POST api/v2/me/facebooksession/0000Na9B26EF003M 

{
 "operationName": "AddComment", 
 "comment": "Some facebook session comment text"
}

Response

{
  "statusCode": 0
}

Notification

{
    "referenceId": 34,
    "facebooksession": {
        "participants": [
            {
                "nickname": "TestName",
                "type": "Agent",
                "participantId": "009052C73228006D"
            },
            {
                "nickname": "FirstL",
                "type": "Customer",
                "participantId": "009052C73223006B"
            }
        ],
        "state": "Chatting",
        "id": "0000Na9B26EF003M",
        "capabilities": [
            "Transfer",
            "Complete",
            "Leave",
            "InFocus",
            "SendMessage",
            "SendStartTypingNotification",
            "SendStopTypingNotification"
        ],
        "comment": "Some chat comment text",
        "uri": "http: //localhost:8080/api/v2/facebooksession/0000Na9B26EF003M"
    },
    "notificationType": "PropertiesUpdated",
    "messageType": "FacebooksessionStateChangeMessage"
}
Comments or questions about this documentation? Contact us for support!