Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.1 KB

VotingApi.md

File metadata and controls

61 lines (44 loc) · 2.1 KB

Membercare\Client\VotingApi

All URIs are relative to /

Method HTTP request Description
getVotingMembers POST /api/v1/voting/members Find members who are eligable to vote, based on submitted criteria

getVotingMembers

\Membercare\Client\Model\VotingMemberPagedResult getVotingMembers($token, $body, $page, $page_size)

Find members who are eligable to vote, based on submitted criteria

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Membercare\Client\Api\VotingApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$token = "token_example"; // string | access token
$body = new \Membercare\Client\Model\VotingMemberCriteria(); // \Membercare\Client\Model\VotingMemberCriteria | 
$page = 1; // int | 
$page_size = 50; // int | 

try {
    $result = $apiInstance->getVotingMembers($token, $body, $page, $page_size);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VotingApi->getVotingMembers: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
body \Membercare\Client\Model\VotingMemberCriteria [optional]
page int [optional] [default to 1]
page_size int [optional] [default to 50]

Return type

\Membercare\Client\Model\VotingMemberPagedResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/_*+json
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]