Request method | POST |
Response object | Vote |
Access scope | initiative_get |
Response format | JSON, XML |
https://api.induct.no/v1/12345/initiatives/ideas/342/votes/
/* Voting mode "Thumbs" or "Like" */ { alternative: 3 } /* Voting mode "Stars" */ { value: 4 }JSON result:
/* Voting mode "Thumbs" or "Like" */ { "id": 24, "uri": "https://api.induct.no/v1/12345/initiatives/ideas/342/votes/24", "createdAt": "2013-01-15T13:51:02Z", "user": { "id": 1, "uri": "http://api.induct.no/v1/12345/users/1", "firstName": "Jane", "lastName": "Doe", "firstNameLastName": "Jane Doe" }, "value": 0, "alternative": 3 } /* Voting mode "Stars" */ { "id": 24, "uri": "https://api.induct.no/v1/12345/initiatives/ideas/342/votes/24", "createdAt": "2013-01-15T13:51:02Z", "user": { "id": 1, "uri": "http://api.induct.no/v1/12345/users/1", "firstName": "Jane", "lastName": "Doe", "firstNameLastName": "Jane Doe" }, "value": 4, "alternative": 0 }
Induct API 1.0
Last API system update:
11/23/2020 8:43:56 AM