Skip to content

Resource GovernmentResource

CrucifiedPain edited this page Jun 26, 2026 · 9 revisions

GovernmentResource (client.government)

Endpoints: • government.getByCountryId

.get()

Get the government snapshot for a country.

Signature

await client.government.get(country_id: 'str') -> 'Government'

Parameters

Name Type Default
country_id str *Required*

Return Models

Government

Field Type Required Description
_id string Optional
__v integer Optional
dates GovernmentDates Optional The dates.
country string Optional The UUID of the country this user holds citizenship in.
countryId string Optional The country id.
president string Optional The UUID of the user currently holding the office of President.
vicePresident string Optional The vice president.
minOfDefense string Optional The min of defense.
minOfEconomy string Optional The min of economy.
minOfForeignAffairs string Optional The min of foreign affairs.
congressMembers array[string] Optional

GovernmentDates

Field Type Required Description
_id string Optional
__v integer Optional
announcementCreatedAts array[string] Optional The announcement created ats.

.invalidate_cache()

Clear the SWR cache for all resources.

Signature

await client.government.invalidate_cache() -> 'None'

Clone this wiki locally