Jump to: navigation, search

AttachUserData

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

Overview

Adds the specified data to the interaction's UserData.

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

Parameters

Parameter Value
operationName AttachUserData
userData The key value data to attach.

Samples

Request

POST api/v2/me/tweets/01QQQG2MU214P05N
{
  "operationName": "AttachUserData",
  "userData": {
      "UserData1":"DATA1",
      "UserData2":123456789  
   }
}

HTTP Response

{
  "statusCode": 0,
  "referenceId": 27
}

CometD Response

Message for Processing a Twitter Interaction

{  
   "twitter":{  
      "userData":{  
         "_twitterUserImageURL":"http: //abs.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
         "FirstName":"Oleg",
         "LastName":"Witcher",
         "RTargetObjectSelected":"SocialMediaAgentGroup",
         "RVQDBID":"",
         "_twitterUserStatusesCount":"2",
         "CBR-actual_volume":"",
         "RVQID":"",
         "_twitterMsgType":"Status",
         "Screen_Sentiment_ScreenRuleName":"",
         "_twitterMsgPlainText":"On12: 58: 911/5/2013, 
           Pcreatedapostsayinghelloworld!.",
         "_umsRequestId":"14",
         "_umsChannel":"channel-twitter",
         "_twitterUserId":"2175525290",
         "_twitterIsRetweet":"false",
         "Screen_Actionability_CtgName":"",
         "desktop_expand":"1",
         "RTargetObjSelDBID":"117",
         "CBR-Interaction_cost":"",
         "_umsInboundIxnSubmittedBy":"Cloud_localhost",
         "Screen_Sentiment_CtgRelevancy":"",
         "Screen_Actionability_CtgRelevancy":"",
         "desktop_sentiment":"Neutral",
         "_twitterUserCreatedAt":"2013-11-05T06: 56: 43Z",
         "_umsMediaType":"twitter",
         "desktop_actionable":"1",
         "_twitterFromAddr":"vitaliy_onv",
         "RRequestedSkills":None,
         "CBR-contract_DBIDs":"",
         "ContactId":"0000Ka96XNNU4488",
         "RTargetAgentSelected":"a1",
         "_twitterUserName":"OlegWitcher",
         "Classify_Sentiment_CtgRelevancy":"",
         "CBR-IT-path_DBIDs":"",
         "Classify_Actionability_CtgRelevancy":"",
         "Classify_Actionability_CtgName":"",
         "Classify_Sentiment_CtgId":"",
         "RTargetRuleSelected":"",
         "_twitterFromUserId":"2175525290",
         "_umsMediaAccount":"2175525290",
         "PegAGSocialMediaAgentGroup":1,
         "UserData2":123456789,
         "RTargetPlaceSelected":"a1",
         "ContactCreated":"false",
         "UserData1":"DATA1",
         "ContactIdList":"0000Ka96XNNU4488",
         "RTenant":"Environment",
         "_twitterToAddr":"vitaliy_onv",
         "_umsFromAddr":"vitaliy_onv",
         "Classify_Sentiment_CtgName":"",
         "IxnAlreadyCreatedInUCS":"1",
         "RouterData70":"("         t"="1383649092 0")",
         "_twitterUserScreenName":"vitaliy_onv",
         "_twitterUserFriendsCount":"0",
         "_twitterUserIsFriend":"false",
         "Screen_Actionability_ScreenRuleName":"",
         "_twitterSource":"<ahref="         http://www.kaermorhen.ru"rel="nofollow">Witcher_APP</a>",
         "KloutId":"",
         "RRequestedSkillCombination":"",
         "_umsChannelInfo":{  
            "_twitterUserId":"2175525290",
            "_twitterUserImageURL":"http: //abs.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
            "_twitterUserName":"OlegWitcher",
            "_twitterSourceNickName":"TwitterApplicationSmServer-1",
            "_twitterUserScreenName":"vitaliy_onv"
         },
         "_twitterMsgId":"58765591",
         "RStrategyName":"TwitterAgentDeliveryStrategy",
         "RStrategyDBID":"985",
         "_twitterIsFavorited":"false",
         "CustomerSegment":"default",
         "_twitterUserIsFollower":"false",
         "Classify_Actionability_CtgId":"",
         "ServiceType":"default",
         "_umsChatPossible":"false",
         "Screen_Sentiment_CtgName":"",
         "_twitterUserUtcOffset":"-1",
         "_twitterQueryName":"stream-user",
         "ServiceObjective":0,
         "NumberOfContactsFound":"1",
         "_twitterUserLanguage":"r",
         "FromAddress":"vitaliy_onv(OlegWitcher)",
         "RTargetRequested":"SocialMediaAgentGroup",
         "RTargetAgentGroup":"SocialMediaAgentGroup",
         "ClassifiedAndScreened":"1",
         "_twitterRetweetCount":"0",
         "_umsMsgPlainText":"On12: 58: 911/5/2013, 
           Pcreatedapostsayinghelloworld!.",
         "_twitterUserFollowersCount":"0",
         "RTargetTypeSelected":"2",
         "_twitterCreatedAt":"2013-11-05T10: 58: 12Z",
         "Subject":"On12: 58: 911/5/2013, 
           Pcreatedapos..."
      },
      "from":"vitaliy_onv(OlegWitcher)",
      "receivedDate":"2015-03-0214: 23: 11.000+0200",
      "suggestedQueueUris":[  

      ],
      "capabilities":[  
         "Reply",
         "Transfer",
         "AddComment",
         "AttachUserData",
         "UpdateUserData",
         "DeleteUserData",
         "SetDisposition",
         "SetInFocus",
         "Complete"
      ],
      "uri":"http: //192.168.83.25: 8080/api/v2/tweet/01QQQG2MU214P05N",
      "state":"Processing",
      "contactId":"0000Ka96XNNU4488",
      "revelantResponseTemplateGroups":[  

      ],
      "message":"On12: 58: 911/5/2013, 
       Pcreatedapostsayinghelloworld!.",
      "id":"01QQQG2MU214P05N",
      "twitterType":"Inbound",
      "subject":"On12: 58: 911/5/2013, 
       Pcreatedapos..."
   },
   "referenceId":27,
   "notificationType":"PropertiesUpdated",
   "messageType":"TwitterStateChangeMessage"
}

Message for Composing a Twitter Interaction

{  
   "twitter":{  
      "userData":{  
         "UserData2":123456789,
         "UserData1":"DATA1"
      },
      "uri":"http: //192.168.83.25: 8080/api/v2/tweet/01QQQG2MU214P05M",
      "capabilities":[  
         "Cancel",
         "Send",
         "AddComment",
         "AttachUserData",
         "UpdateUserData",
         "DeleteUserData",
         "SetDisposition",
         "SetInFocus",
         "Transfer"
      ],
      "state":"Composing",
      "id":"01QQQG2MU214P05M",
      "twitterType":"Outbound"
   },
   "referenceId":11,
   "notificationType":"PropertiesUpdated",
   "messageType":"TwitterStateChangeMessage"
}
This page was last edited on June 24, 2020, at 09:47.
Comments or questions about this documentation? Contact us for support!