API: Retrieve Poll Results for a Release

Returns poll results associated with a given release.

Note: Before using this call, you'll need to authenticate against the API as detailed in Making your first call to the Project API.

 

All of these examples have simulation mode turned on. Once you are ready to use in a production environment, you can remove the simulation parameter. Any changes will then affect your account.

The following arguments are available against this endpoint:

release_code - arg1 - The code for the release you would like to retrieve the details for.

PHP

Python

Response

 

PHP

$nonce = get_nonce('https://api.elucidat.com/v2/releases/answers', 'PUBLIC_KEY', 'PRIVATE_KEY');
$headers = auth_headers('PUBLIC_KEY', $nonce);
$fields = array(
    'release_code' => $arg1,
    'simulation_mode' => 'simulation'
);
$result = call_elucidat($headers, $fields, 'GET', 'https://api.elucidat.com/v2/releases/answers', 'PRIVATE_KEY');
echo ("HTTP status code: " . $result['status'] . "\n");
print_r($result['response']);

Python 3.9

     endpoint = '/v2/releases/answers'
     method = 'GET'
     params = {'release_code': 'arg1',
'simulation_mode': 'simulation'} data = {} api = Api(api_root, endpoint, method, params, data, private_key, public_key) api.call_elucidat()

Response

HTTP status code: 200
Array
(
    [release_code] => 6087d634515c6
    [answers] => Array
        (
            [summary] => Array
                (
                    [603ce1612f414] => Array
                        (
                            [p177ee219126-answer-1[:]Raspberry Pi 4] => 1
                            [p177ee219126-answer-2[:]Raspberry Pi 3] => 0
                        )

                )

            [release_versions] => Array
                (
                    [1] => Array
                        (
                            [603ce1612f414] => Array
                                (
                                    [p177ee219126-answer-1[:]Raspberry Pi 4] => 1
                                    [p177ee219126-answer-2[:]Raspberry Pi 3] => 0
                                )

                        )

                )

        )

)

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Request support
Access support that’s tailored to you by getting in touch with our Support Team.
Send us feedback
Do you have a new feature request, or want to tell us about something that works well (or not so well) for you? Get in touch!