Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

PollListResult

PollListResult: { data: EntityPoll[]; meta: ResponseMeta }

List result

Type declaration

PollRelatedDataParameter

PollRelatedDataParameter: "show_information" | "votes"

Possible extra data that you can include on the response for a single item

PollResult

PollResult: { data: EntityPoll; meta: ResponseEntityMeta }

Single item result

Type declaration

Variables

Const url

url: "https://www.abgeordnetenwatch.de/api/v2/polls" = 'https://www.abgeordnetenwatch.de/api/v2/polls'

Functions

Const poll

  • poll(id: number, relatedData?: null | "show_information" | "votes"): Promise<PollResult>
  • Get a single Poll

    response = await poll(5);
    

    Parameters

    • id: number

      Id of the Poll.

    • relatedData: null | "show_information" | "votes" = null

      Possible related Data you can include in the result

    Returns Promise<PollResult>

    PollResult as JSON

Const pollList

Generated using TypeDoc