Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Telligent Community 9.x
  • Verint Community
Telligent Community 9.x
API Documentation Create Forum Reply Vote Forum Reply Vote REST Endpoint
  • Ask the Community
  • User Documentation
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • Telligent Community 9.0 API Documentation
  • +In-Process API Documentation
  • +Plugin API Documentation
  • -REST API Documentation
    • +Abuse Appeal REST Endpoints
    • +Abuse Report REST Endpoints
    • +Abusive Content REST Endpoints
    • +Achievement REST Endpoints
    • +Activity Message REST Endpoints
    • +Activity Story REST Endpoints
    • +Activity Story Site Preference REST Endpoints
    • +Activity Story Types REST Endpoints
    • +Activity Story User Preference REST Endpoints
    • +Aggregate Tagged Content REST Endpoints
    • +Aggregate Tags REST Endpoints
    • +Application Subscriptions REST Endpoints
    • +Batching REST Endpoints
    • +Blog Comment REST Endpoints
    • +Blog Contact Request REST Endpoints
    • +Blog Favorite REST Endpoints
    • +Blog Post REST Endpoints
    • +Blog Post Subscription REST Endpoints
    • +Blog Post Summary REST Endpoints
    • +Blog REST Endpoints
    • +Bookmark REST Endpoints
    • +Calendar REST Endpoints
    • +Cfs REST Endpoints
    • +Challenge REST Endpoints
    • +Comment REST Endpoints
    • +Content Conversion REST Endpoints
    • +Content Recommendation REST Endpoints
    • +Content REST Endpoints
    • +Content Subscriptions REST Endpoints
    • +Content Tags REST Endpoints
    • +Content View REST Endpoints
    • +Conversation Message REST Endpoints
    • +Conversation REST Endpoints
    • +Conversion Target Applications REST Endpoints
    • +Conversion Target Content Types REST Endpoints
    • +Endpoint REST Endpoints
    • +Event Comments REST Endpoints
    • +Event Log REST Endpoints
    • +Events REST Endpoints
    • +Favorite REST Endpoints
    • +Feature REST Endpoints
    • +Follower REST Endpoints
    • +Following REST Endpoints
    • +Follows REST Endpoints
    • +Forum Favorite REST Endpoints
    • +Forum Reply REST Endpoints
    • -Forum Reply Vote REST Endpoints
      • Create Forum Reply Vote Forum Reply Vote REST Endpoint
      • Delete Forum Reply Vote Forum Reply Vote REST Endpoint
      • Show Forum Reply Vote Forum Reply Vote REST Endpoint
    • +Forum Reply Votes REST Endpoints
    • +Forum REST Endpoints
    • +Forum Thread REST Endpoints
    • +Forum Thread Vote REST Endpoints
    • +Forum Thread Votes REST Endpoints
    • +Friendship REST Endpoints
    • +Gallery Favorite REST Endpoints
    • +Gallery REST Endpoints
    • +Generic Content REST Endpoints
    • +Geocoding REST Endpoints
    • +Group Author Quality Score REST Endpoints
    • +Group Avatar REST Endpoints
    • +Group Contact Request REST Endpoints
    • +Group REST Endpoints
    • +Group User REST Endpoints
    • +Hash Tag REST Endpoints
    • +Html REST Endpoints
    • +Idea REST Endpoints
    • +Idea Status REST Endpoints
    • +Idea Vote REST Endpoints
    • +Ignore Content Recommendation REST Endpoints
    • +Ignore User Recommendation REST Endpoints
    • +Info Result REST Endpoints
    • +Leaderboard REST Endpoints
    • +Like REST Endpoints
    • +Liked Item REST Endpoints
    • +Media Comment REST Endpoints
    • +Media REST Endpoints
    • +Media Subscription REST Endpoints
    • +Mention REST Endpoints
    • +Mentionable REST Endpoints
    • +Node Permission REST Endpoints
    • +Notification Distribution Types REST Endpoints
    • +Notification Preference REST Endpoints
    • +Notification REST Endpoints
    • +Notification Types REST Endpoints
    • +O Auth REST Endpoints
    • +Permission REST Endpoints
    • +Point Transaction REST Endpoints
    • +Poll Item REST Endpoints
    • +Poll Item Vote REST Endpoints
    • +Poll REST Endpoints
    • +Rated Item REST Endpoints
    • +Rating REST Endpoints
    • +Remote Proxy Information REST Endpoints
    • +Remote URL Entity REST Endpoints
    • +Remote URL REST Endpoints
    • +Remote Widget API REST Endpoints
    • +Reply Message REST Endpoints
    • +Role REST Endpoints
    • +Scripting REST Endpoints
    • +Search Result REST Endpoints
    • +Status Message REST Endpoints
    • +System Notification REST Endpoints
    • +Text REST Endpoints
    • +Tour Tip REST Endpoints
    • +Ui REST Endpoints
    • +User Achievement REST Endpoints
    • +User Avatar REST Endpoints
    • +User Invitation REST Endpoints
    • +User Presence REST Endpoints
    • +User Profile Field Groups REST Endpoints
    • +User Profile Fields REST Endpoints
    • +User Recommendation REST Endpoints
    • +User REST Endpoints
    • +User Validation REST Endpoints
    • +Webhook Event REST Endpoints
    • +Webhook REST Endpoints
    • +Wiki Comment REST Endpoints
    • +Wiki Favorite REST Endpoints
    • +Wiki File REST Endpoints
    • +Wiki Page Comment Subscription REST Endpoints
    • +Wiki Page REST Endpoints
    • +Wiki Page Revision REST Endpoints
    • +Wiki Page Subscription REST Endpoints
    • +Wiki REST Endpoints
    • +Wiki Toc REST Endpoints
  • +Widget API Documentation

Create Forum Reply Vote Forum Reply Vote REST Endpoint


URLs

POST api.ashx/v2/forums/threads/replies/{replyid}/vote.xml (or .json)

Votes for a reply for the accessing user

Request Parameters

NameTypeDescriptionLocationRequiredDefaultOptions
ReplyIdintId of the ReplyRequest BodyRequired

Example Requests

C# REST SDK

This example uses the REST SDK to access the Community REST API within a .Net C# application. In the example, USER_NAME is the user name of the effective user for the request and OAUTH_CLIENT_ID and OAUTH_SECRET are the OAuth client ID and secret, respectively, associated to this application as configured in Administration > Integration > OAuth Clients with the "Client Credentials" grant type enabled. See the documentation for the REST SDK for more details about installation, configuration, and usage options.

var host = new ClientCredentialsRestHost("USER_NAME", "https://mysite.com/", "OAUTH_CLIENT_ID", "OAUTH_SECRET");
var response = host.PostToDynamic(2, "forums/threads/replies/{replyid}/vote.json", false, new RestPostOptions {
   PathParameters = new System.Collections.Specialized.NameValueCollection {
      { "replyid", "6" }
   }
});

Widget Javascript

This example uses the rest JavaScript API to access the Community REST API within the Community web UI. When accessing the REST API through the javascript API, the effective user is the current contextual user of the web interface.

jQuery.telligent.evolution.post({
   url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums/threads/replies/{replyid}/vote.json',
   data: { 
      'replyid': '6'
   },
   success: function(response) {

   }
});

cURL

This example uses the cURL command-line HTTP utility. ENCODED_TOKEN in the example is the base64-encoded concatenation of the user's API key (created from the user's profile), a colon (:), and the user's user name. Learn more about using the REST API.

curl -H "Rest-User-Token: ENCODED_TOKEN" -X POST https://mysite.com/api.ashx/v2/forums/threads/replies/6/vote.xml

Example Responses

JSON

{
  "ForumReplyVote": {
    "ReplyId": 8,
    "UserId": 32,
    "CreatedDate": "2012-01-04T00:00:00-05:00",
    "Reply": {
      "Id": 8,
      "ParentId": 4,
      "Date": "2012-05-02T00:00:00",
      "Url": "url",
      "AvatarUrl": null,
      "Excerpt": "excerpt",
      "Author": {
        "Id": 7,
        "BanReason": "banreason",
        "BannedUntil": "2012-06-04T00:00:00",
        "DisplayName": "displayname",
        "JoinDate": "2011-05-28T00:00:00",
        "LastLoginDate": "2011-12-09T00:00:00",
        "Password": "password",
        "Points": 27,
        "QualityPercentile": 32,
        "PrivateEmail": "privateemail",
        "Username": "username",
        "AllowSiteToContact": true,
        "AllowSitePartnersToContact": true,
        "EnableEmail": true,
        "EnableHtmlEmail": true,
        "EnableTracking": true,
        "EnableConversationNotifications": true,
        "EnableCommentNotifications": true,
        "AccountStatus": "accountstatus",
        "EnableFavoriteSharing": true,
        "ConversationContactType": "conversationcontacttype",
        "PostSortOrder": "postsortorder",
        "EditorType": "editortype",
        "EnableDisplayInMemberList": true,
        "EnableCollapsingPanels": true,
        "EnableDisplayName": true,
        "EnableUserSignatures": true,
        "HasPassword": true,
        "ModerationLevel": "moderationlevel",
        "RssFeeds": [
          "string",
          "string"
        ],
        "IsSystemAccount": true,
        "TotalPosts": 52,
        "Presence": "presence",
        "AvatarUrl": "http://trunk.community.local.telligent.com/cfs-file/__key/communityserver-components-selectableavatars/7b834616-5c11-4aeb-ace3-d322badd0afe/avatar.png",
        "DateFormat": "dateformat",
        "Birthday": "2012-03-29T00:00:00",
        "Language": "language",
        "Location": "location",
        "PublicEmail": "publicemail",
        "Gender": "NotSet",
        "WebUrl": "weburl",
        "ProfileFields": [
          {
            "Label": "core_Birthday",
            "Value": "3/29/2012 12:00:00 AM",
            "Warnings": [],
            "Errors": []
          },
          {
            "Label": "core_Language",
            "Value": "language",
            "Warnings": [],
            "Errors": []
          },
          {
            "Label": "core_Location",
            "Value": "location",
            "Warnings": [],
            "Errors": []
          },
          {
            "Label": "core_Public Email",
            "Value": "publicemail",
            "Warnings": [],
            "Errors": []
          },
          {
            "Label": "core_Website",
            "Value": "weburl",
            "Warnings": [],
            "Errors": []
          },
          {
            "Label": "label",
            "Value": "value",
            "Warnings": [],
            "Errors": []
          }
        ],
        "ProfileUrl": "profileurl",
        "TimeZone": 0.33,
        "TimeZoneInfo": "",
        "TimeZoneId": "timezoneid",
        "Signature": "signature",
        "SignatureFormatted": "signatureformatted",
        "EnablePostPreviewPopup": true,
        "EnableEmoticons": true,
        "EnabledActivityMessageTypes": [
          "NewUser",
          "NewBlog",
          "NewBlogPost",
          "NewForum",
          "NewForumThread",
          "NewMediaGallery",
          "NewMediaGalleryPost",
          "NewGroup",
          "NewGroupMember",
          "NewFriendship",
          "NewUserAvatar",
          "NewWikiPage",
          "UpdatedWikiPage",
          "ThirdPartyMessageType",
          "Status",
          "NewWiki"
        ],
        "ExtendedAttributes": [
          {
            "Key": "key",
            "Value": "value",
            "Warnings": [],
            "Errors": []
          },
          {
            "Key": "key",
            "Value": "value",
            "Warnings": [],
            "Errors": []
          }
        ],
        "ContentId": "49fec544-6df7-4a82-872b-f8be586d5e9e",
        "Url": "profileurl",
        "Warnings": [],
        "Errors": []
      },
      "ThreadId": 19,
      "ForumId": 112,
      "PostLevel": 61,
      "SortOrder": 18,
      "ContentTypeId": 76,
      "EmoticonId": 6,
      "SpamStatus": "spamstatus",
      "SpamScore": 25,
      "Approved": true,
      "Points": 8,
      "PostStatus": "poststatus",
      "PostType": "posttype",
      "PostMedia": "postmedia",
      "IsAnswer": true,
      "IsSuggestedAnswer": true,
      "AnswerVerifiedByUserId": 4,
      "ReplyCount": 7,
      "UserHostAddress": "",
      "IsAnonymous": true,
      "File": {
        "Date": "2012-04-19T00:00:00",
        "ContentType": "contenttype",
        "FileName": "filename",
        "FileSize": 27,
        "FileUrl": "fileurl",
        "IsRemoteAttachment": true,
        "Warnings": [],
        "Errors": []
      },
      "EmailFiles": [
        {
          "FileName": "filename",
          "ViewUrl": "viewurl",
          "DownloadUrl": "downloadurl",
          "DirectDownloadUrl": "directdownloadurl",
          "Warnings": [],
          "Errors": []
        },
        {
          "FileName": "filename",
          "ViewUrl": "viewurl",
          "DownloadUrl": "downloadurl",
          "DirectDownloadUrl": "directdownloadurl",
          "Warnings": [],
          "Errors": []
        }
      ],
      "GlobalContentTypeId": "f586769b-0822-468a-b7f3-a94d480ed9b0",
      "Subject": "subject",
      "EditNotes": "editnotes",
      "IsLocked": true,
      "Tags": [
        "string",
        "string"
      ],
      "SubscribeToThread": true,
      "SearchUniqueId": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46",
      "Application": {
        "ApplicationId": "5e3e4d5b-6678-4d98-9f59-094d5c6fe1f4",
        "ApplicationTypeId": "48f9bad6-9756-4845-ab98-382808c7bced",
        "Url": "http://trunk.community.local.telligent.com/test_forums/f/112",
        "AvatarUrl": null,
        "Container": {
          "ContainerId": "4b347f6a-82cd-4021-9ccc-c949c5e410a3",
          "ContainerTypeId": "23b05a61-c3e5-4451-90d9-bfa00453bce4",
          "Url": "http://trunk.community.local.telligent.com/test_forums/",
          "AvatarUrl": "http://trunk.community.local.telligent.com/cfs-file/__key/system/images/defaulthub.gif",
          "IsEnabled": true,
          "ParentContainer": {
            "ContainerId": "61207a60-9831-4cff-a50a-56ae3688aeb0",
            "ContainerTypeId": "23b05a61-c3e5-4451-90d9-bfa00453bce4",
            "Url": "http://trunk.community.local.telligent.com/",
            "AvatarUrl": "http://trunk.community.local.telligent.com/cfs-file/__key/system/images/defaulthub.gif",
            "IsEnabled": true,
            "ParentContainer": null,
            "Warnings": [],
            "Errors": []
          },
          "Warnings": [],
          "Errors": []
        },
        "IsEnabled": false,
        "Warnings": [],
        "Errors": []
      },
      "ContentId": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46",
      "ExtendedAttributes": [
        {
          "Key": "key",
          "Value": "value",
          "Warnings": [],
          "Errors": []
        },
        {
          "Key": "key",
          "Value": "value",
          "Warnings": [],
          "Errors": []
        }
      ],
      "Warnings": [],
      "Errors": []
    },
    "User": {
      "Id": 32,
      "BanReason": "banreason",
      "BannedUntil": "2012-01-16T00:00:00",
      "DisplayName": "displayname",
      "JoinDate": "2012-01-04T00:00:00",
      "LastLoginDate": "2012-05-02T00:00:00",
      "Password": "password",
      "Points": 52,
      "QualityPercentile": 19,
      "PrivateEmail": "privateemail",
      "Username": "username",
      "AllowSiteToContact": true,
      "AllowSitePartnersToContact": true,
      "EnableEmail": true,
      "EnableHtmlEmail": true,
      "EnableTracking": true,
      "EnableConversationNotifications": true,
      "EnableCommentNotifications": true,
      "AccountStatus": "accountstatus",
      "EnableFavoriteSharing": true,
      "ConversationContactType": "conversationcontacttype",
      "PostSortOrder": "postsortorder",
      "EditorType": "editortype",
      "EnableDisplayInMemberList": true,
      "EnableCollapsingPanels": true,
      "EnableDisplayName": true,
      "EnableUserSignatures": true,
      "HasPassword": true,
      "ModerationLevel": "moderationlevel",
      "RssFeeds": [
        "string",
        "string"
      ],
      "IsSystemAccount": true,
      "TotalPosts": 112,
      "Presence": "presence",
      "AvatarUrl": "http://trunk.community.local.telligent.com/cfs-file/__key/communityserver-components-selectableavatars/7b834616-5c11-4aeb-ace3-d322badd0afe/avatar.png",
      "DateFormat": "dateformat",
      "Birthday": "2012-06-04T00:00:00",
      "Language": "language",
      "Location": "location",
      "PublicEmail": "publicemail",
      "Gender": "NotSet",
      "WebUrl": "weburl",
      "ProfileFields": [
        {
          "Label": "core_Birthday",
          "Value": "6/4/2012 12:00:00 AM",
          "Warnings": [],
          "Errors": []
        },
        {
          "Label": "core_Language",
          "Value": "language",
          "Warnings": [],
          "Errors": []
        },
        {
          "Label": "core_Location",
          "Value": "location",
          "Warnings": [],
          "Errors": []
        },
        {
          "Label": "core_Public Email",
          "Value": "publicemail",
          "Warnings": [],
          "Errors": []
        },
        {
          "Label": "core_Website",
          "Value": "weburl",
          "Warnings": [],
          "Errors": []
        },
        {
          "Label": "label",
          "Value": "value",
          "Warnings": [],
          "Errors": []
        }
      ],
      "ProfileUrl": "profileurl",
      "TimeZone": 0.25,
      "TimeZoneInfo": "",
      "TimeZoneId": "timezoneid",
      "Signature": "signature",
      "SignatureFormatted": "signatureformatted",
      "EnablePostPreviewPopup": true,
      "EnableEmoticons": true,
      "EnabledActivityMessageTypes": [
        "NewUser",
        "NewBlog",
        "NewBlogPost",
        "NewForum",
        "NewForumThread",
        "NewMediaGallery",
        "NewMediaGalleryPost",
        "NewGroup",
        "NewGroupMember",
        "NewFriendship",
        "NewUserAvatar",
        "NewWikiPage",
        "UpdatedWikiPage",
        "ThirdPartyMessageType",
        "Status",
        "NewWiki"
      ],
      "ExtendedAttributes": [
        {
          "Key": "key",
          "Value": "value",
          "Warnings": [],
          "Errors": []
        },
        {
          "Key": "key",
          "Value": "value",
          "Warnings": [],
          "Errors": []
        }
      ],
      "ContentId": "fe65240b-044c-4292-9946-f10e0361ecff",
      "Url": "profileurl",
      "Warnings": [],
      "Errors": []
    },
    "Warnings": [],
    "Errors": []
  },
  "Errors": [
    "string",
    "string"
  ]
}

  • Share
  • History
  • More
  • Cancel
Related
Recommended
  • Telligent
  • Professional Services
  • Submit a Support Ticket
  • Become a Partner
  • Request a Demo
  • Contact Us

About
Privacy Policy
Terms of use
Copyright 2022 Verint, Inc.
Powered by Verint Community