Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 11.x
  • Verint Community
Verint Community 11.x
API Documentation Get Vote Summary REST Endpoint
  • User Documentation
  • Ask the Community
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • 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 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 Contact Request 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
    • +Comment Summary REST Endpoints
    • +Comment Vote REST Endpoints
    • +Content Conversion REST Endpoints
    • +Content Presence REST Endpoints
    • +Content Presence Summary 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 Log REST Endpoints
    • +Events REST Endpoints
    • +Feature (v3) REST Endpoints
    • +Feature REST Endpoints
    • +Follower REST Endpoints
    • +Following REST Endpoints
    • +Follows REST Endpoints
    • +Forum Reply REST Endpoints
    • +Forum Reply Vote REST Endpoints
    • +Forum Reply Votes REST Endpoints
    • +Forum REST Endpoints
    • +Forum Thread REST Endpoints
    • +Forum Thread Votes REST Endpoints
    • +Friendship 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 Category REST Endpoints
    • +Idea REST Endpoints
    • +Idea Status REST Endpoints
    • +Idea Vote (v3) 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 REST Endpoints
    • +Media Subscription REST Endpoints
    • +Mention REST Endpoints
    • +Mentionable REST Endpoints
    • +Node Permission REST Endpoints
    • +Notification Category REST Endpoints
    • +Notification Distribution Types REST Endpoints
    • +Notification Preference REST Endpoints
    • +Notification REST Endpoints
    • +Notification Types REST Endpoints
    • +O Auth REST Endpoints
    • +Permission (v3) REST Endpoints
    • +Permission REST Endpoints
    • +Point Transaction REST Endpoints
    • +Poll Item REST Endpoints
    • +Poll Item Vote REST Endpoints
    • +Poll REST Endpoints
    • +Poll Vote 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
    • +Reviewable Content REST Endpoints
    • +Role REST Endpoints
    • +Scripting REST Endpoints
    • +Search Result REST Endpoints
    • +Service Presence REST Endpoints
    • +Service Presence Summary REST Endpoints
    • +Status Message REST Endpoints
    • +System Notification REST Endpoints
    • +Text REST Endpoints
    • +Threaded Comment Ancestors for a Comment REST Endpoints
    • +Threaded Comments For a Comment REST Endpoints
    • +Threaded Comments REST Endpoints
    • +Threaded Forum Replies for a Reply REST Endpoints
    • +Threaded Forum Replies REST Endpoints
    • +Threaded Forum Reply Ancestors for a Reply REST Endpoints
    • +Tour Tip REST Endpoints
    • +Ui REST Endpoints
    • +User Achievement REST Endpoints
    • +User Avatar REST Endpoints
    • +User Cover Photo REST Endpoints
    • +User Invitation REST Endpoints
    • +User Presence REST Endpoints
    • +User Profile Field REST Endpoints
    • +User Profile Field Types REST Endpoints
    • +User Recommendation REST Endpoints
    • +User REST Endpoints
    • +User Validation REST Endpoints
    • +User Vote Summary REST Endpoints
    • -Vote Summary REST Endpoints
      • Get Vote Summary REST Endpoint
    • +Webhook Event REST Endpoints
    • +Webhook 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, Theme, and Automation APIs

Get Vote Summary REST Endpoint


URLs

GET api.ashx/v2/poll/{id}/summary.xml (or .json)

Request Parameters

NameTypeDescriptionLocationRequiredDefaultOptions
IdGuidId of the ContentQuery StringRequired

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.GetToDynamic(2, "poll/{id}/summary.json", false, new RestGetOptions {
	PathParameters = new System.Collections.Specialized.NameValueCollection {
		{ "id", "49fec544-6df7-4a82-872b-f8be586d5e9e" }
	}
});

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.get({
	url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/poll/{id}/summary.json',
	data: { 
		'id': '49fec544-6df7-4a82-872b-f8be586d5e9e'
	},
	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 GET https://mysite.com/api.ashx/v2/poll/49fec544-6df7-4a82-872b-f8be586d5e9e/summary.xml

Example Responses

XML

<?xml version="1.0" encoding="utf-16"?>
<Response>
  <VoteSummary>
    <PollId>49fec544-6df7-4a82-872b-f8be586d5e9e</PollId>
    <Summary>
      <OptionSummary />
      <OptionSummary />
    </Summary>
  </VoteSummary>
  <Errors>
    <Message>string</Message>
    <Message>string</Message>
  </Errors>
</Response>

JSON

{
  "VoteSummary": {
    "PollId": "49fec544-6df7-4a82-872b-f8be586d5e9e",
    "VoteCount": [
      6,
      25
    ],
    "Summary": [
      {
        "VoteCount": null,
        "PollOption": null
      },
      {
        "VoteCount": null,
        "PollOption": null
      }
    ]
  },
  "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 2024 Verint, Inc.
Powered by Verint Community