Options
All
  • Public
  • Public/Protected
  • All
Menu

Module entities/entity.candidacy-mandate

Candicay mandate related methods

Abgeordnetenwatch API Documentation

Index

Type aliases

CandidacyMandateListResult

CandidacyMandateListResult: { data: EntityCandidacyMandate[]; meta: ResponseMeta }

List result

Type declaration

CandidacyMandateRelatedDataParameter

CandidacyMandateRelatedDataParameter: "show_information" | "politician" | "votes"

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

CandidacyMandateResult

CandidacyMandateResult: { data: EntityCandidacyMandate; meta: ResponseEntityMeta }

Single item result

Type declaration

Variables

Const url

url: "https://www.abgeordnetenwatch.de/api/v2/candidacies-mandates" = 'https://www.abgeordnetenwatch.de/api/v2/candidacies-mandates'

Functions

Const candidacyMandate

  • candidacyMandate(id: number, relatedData?: null | "show_information" | "politician" | "votes"): Promise<CandidacyMandateResult>
  • Get a single CandidacyMandate

    response = await candidacyMandate(5);
    

    Parameters

    • id: number

      Id of the CandidacyMandate.

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

      Possible related Data you can include in the result

    Returns Promise<CandidacyMandateResult>

    CandidacyMandateResult as JSON

Const candidacyMandateList

Generated using TypeDoc