All URIs are relative to https://oas.mieuxvoter.fr
Method | HTTP request | Description |
---|---|---|
getForPollResultItem | GET /polls/{id}/result | Gets the result of a poll |
ResultjsonldRead getForPollResultItem()
This endpoint computes a fresh result from the ballots currently received. For now, you may read a poll's result at any time.
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ResultApi(configuration);
let body:.ResultApiGetForPollResultItemRequest = {
// string | Universally Unique IDentifier (UUID)
id: "d434a72c-20cb-480f-9955-1fa2ce2e91b1",
};
apiInstance.getForPollResultItem(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
id | [string] | Universally Unique IDentifier (UUID) | defaults to undefined |
ResultjsonldRead
- Content-Type: Not defined
- Accept: application/ld+json, application/json, text/html
Status code | Description | Response headers |
---|---|---|
200 | Result resource response | - |
404 | Resource not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]