/RawPoll

Raw poll makes it easy to create new polls in seconds and free and open source!

Primary LanguageHTML

Raw Poll

Raw poll makes it easy to create new polls in seconds and free and open source!

Api

Poll

  1. Create

    POST /api/poll
    

    Format: application/json

    Params:

    Name Type Notes
    question String Required.
    description String Required.
    options Array Required.

    Response ( If the poll was successfully created ):

    {
        "id": "poll_id",
        "status": "success"
    }
  2. Read

    GET /api/poll/<poll_id>
    

    If the poll was found:

    {
        "question": "poll_question",
        "description": "poll_description",
        "options": {
            "poll_option": 1,
            "poll_option-2": 1,
            ...
        },
    }

    If the poll was not found:

    {
        "error": "Cannot find the poll specified!",
        "status": "failure"
    }