vote.visit
Verifies the player’s vote on the selected voting site.
POST
/api/v1/{locale}/voteAPI scope vote.visit
Request
Send Authorization: Bearer <key> with each request.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
Request body
| Field | Type | Requirement | Description |
|---|---|---|---|
site | integer | Required | Voting site ID. |
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request POST \
-H "Authorization: Bearer $MINEXON_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"site": 1
}' \
"${MINEXON_BASE_URL}/api/v1/en/vote"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | URL of the next player page. |
notices | string[] | Conditional | Success and state codes. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field or operation error codes. |
result | string | Conditional | Vote verification result code, when present. |
{
"next": "/en/vote",
"result": "confirmed"
}When the form is shown again, the response can contain data instead of next. Check the HTTP status and the error fields together.
Form response fields
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
listings | JSON value | Conditional | Value determined by screen and configuration. |