ProZ.com global directory of translation services
The translation workplace
Ideas

GET: /quickpolls/:id

Get data about a quick poll.

Parameters

  • id: The quick poll ID. Use the special value current to get the currently featured poll, if any.

Example request

curl -H "Authorization: Bearer {OAUTH2_ACCESS_TOKEN}" https://api.proz.com/v2/quickpolls/current

Response

A JSON object with the following properties:

  • quickpoll: The requested quick poll.
  • quickpoll_user: A quick poll user data object with information about the authenticated user's relationship to the quick poll (ex. their response if any, whether they are allowed to respond, etc).
{
  "quickpoll":   {
    "id": "12345",
    "self_link": "https://api.proz.com/v2/quickpolls/12345",
    "created_at": "2016-02-20T22:07:51+00:00",
    "is_featured": false,
    "discussion_web_url": "http://www.proz.com/topic/280642",
    "question": "Do you have liability insurance?",
    "options": [
      {
        "value": 1,
        "text": "Yes"
      },
      {
        "value": 2,
        "text": "No, but I am planning to"
      },
      {
        "value": 3,
        "text": "No"
      },
      {
        "value": 4,
        "text": "N/A"
      }
    ],
    "author": {
      "self_link": "https://api.proz.com/v2/users/32a9a4d0-cb6e-463f-a0ab-63d0a0418bc7",
      "uuid": "32a9a4d0-cb6e-463f-a0ab-63d0a0418bc7",
      "site_name": "John Snow",
      "account_type": 2,
      "freelancer_profile_link": "https://api.proz.com/v2/freelancer/32a9a4d0-cb6e-463f-a0ab-63d0a0418bc",
      "profile_url": "http://www.proz.com/profile/46745",
      "image_url": "http://www.proz.com/profile_resources/100/41429_r520ea700e7876.jpg",
      "is_proz_member": true,
      "proz_membership_type": "individual",
      "is_cpn": true,
      "cpn_language_pair": "ita_eng",
      "native_languages": [ "eng" ],
      "timezone": "America/New York",
      "country": "us",
      "skype": "johnsnow"
    }
  },
  "quickpoll_user":   {
    "quickpoll": "https://api.proz.com/v2/quickpolls/12345",
    "user": "https://api.proz.com/v2/users/32a9a4d0-cb6e-463f-a0ab-63d0a0418bc7",
    "can_respond": true,
    "cant_respond_reason": null,
    "user_response": {
      "id": 45678,
      "quickpoll": "https://api.proz.com/v2/quickpolls/12345",
      "user": "https://api.proz.com/v2/users/32a9a4d0-cb6e-463f-a0ab-63d0a0418bc7",
      "created_at": "2015-04-19T12:59:23+00:00",
      "option_value": 3
    }
  }
}