GET /votes

Fetches the list of votes associated to the account. The account is determined by the API key.

Resource URL

GET https://api.prodpad.com/v1/votes

Parameters

apikey required If the apikey parameter is missing or incorrect a 401 error will be returned

Response

Status: 200 OK
{
   
"total_votes": "5",
   
"yea": [
       
{
           
"id": "1",
           
"idea": {
               
"id": "1439"
           
},
           
"voter": {
               
"id": "1",
               
"username": "john-doe",
               
"display_name": "John Doe"
           
},
           
"created_at": "2014-04-13 12:37:05",
           
"comment": {
               
"id": "1507",
               
"comment": "Yes, let's do this - it'll work really well for our clients!"
           
}
       
},
       
{
           
"id": "2",
           
"idea": {
               
"id": "1440"
           
},
           
"voter": {
               
"id": "2",
               
"username": "charlotte",
               
"display_name": "Charlotte Poole"
           
},
           
"created_at": "2014-04-13 12:37:17",
           
"comment": {
               
"id": "1508",
               
"comment": "Yep, a lot of people have asked for this feature."
           
}
       
},
       
{
           
"id": "6",
           
"idea": {
               
"id": "2801"
           
},
           
"voter": {
               
"id": "6",
               
"username": "kjameson",
               
"display_name": "Kara Jameson"
           
},
           
"created_at": "2014-05-19 20:31:55",
           
"comment": {
               
"id": "1517",
               
"comment": "Sure, I can see the value in this..."
           
}
       
}
   
],
   
"nay": [
       
{
           
"id": "3",
           
"idea": {
               
"id": "1441"
           
},
           
"voter": {
               
"id": "5",
               
"username": "duncano",
               
"display_name": "Duncan O'Goddard"
           
},
           
"created_at": "2014-04-13 12:37:45",
           
"comment": {
               
"id": "1509",
               
"comment": "No, don't think this matches our vision!
"

           
}
       
}
   
],
   
"maybe": [
       
{
           
"id": "4",
           
"idea": {
               
"id": "1442"
           
},
           
"voter": {
               
"id": "3",
               
"username": "rhonda-allen",
               
"display_name": "Rhonda Allen"
           
},
           
"created_at": "2014-04-13 12:38:07",
           
"comment": {
               
"id": "1510",
               
"comment": "Perhaps but we'll need to see how the others do"
           
}
       
}
   
]
}

Notes:

  • All dates are in UTC
  • The text fields can include HTML markup

 


Returns a specific vote.

Resource URL

GET https://api.prodpad.com/v1/votes/:id

Parameters

apikey required If the apikey parameter is missing or incorrect a 401 error will be returned

Response

Status: 200 OK
{
   
"id": "1",
   
"vote": "Yea",
   
"idea": {
       
"id": "1439"
   
},
   
"comment": {
       
"id": "1507",
       
"comment": "Yes, let's do this - it'll work really well for our clients!"
   
},
   
"user": {
       
"id": "1",
       
"username": "john-doe",
       
"display_name": "John Doe"
   
},
   
"created_at": "2014-04-13 12:37:05",
   
"update_at": "2014-04-13 12:37:05"
}

Notes:

  • All dates are in UTC
  • The text fields can include HTML markup
Have more questions? Submit a request

Comments

Powered by Zendesk