api.themeparks.wiki
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0-alpha
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python >=3.6
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import openapi_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import openapi_client
Please follow the installation procedure and then run the following:
import time
import openapi_client
from pprint import pprint
from openapi_client.api import destinations_api
from openapi_client.model.destinations_response import DestinationsResponse
# Defining the host is optional and defaults to https://api.themeparks.wiki/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "https://api.themeparks.wiki/v1"
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = destinations_api.DestinationsApi(api_client)
try:
# Get a list of supported destinations available on the live API
api_response = api_instance.get_destinations()
pprint(api_response)
except openapi_client.ApiException as e:
print("Exception when calling DestinationsApi->get_destinations: %s\n" % e)
All URIs are relative to https://api.themeparks.wiki/v1
Class | Method | HTTP request | Description |
---|---|---|---|
DestinationsApi | get_destinations | GET /destinations | Get a list of supported destinations available on the live API |
EntitiesApi | get_entity | GET /entity/{entityID} | Get entity document |
EntitiesApi | get_entity_children | GET /entity/{entityID}/children | Get all children for a given entity document |
EntitiesApi | get_entity_live_data | GET /entity/{entityID}/live | Get live data for this entity and any child entities |
EntitiesApi | get_entity_schedule_upcoming | GET /entity/{entityID}/schedule | Get entity schedule |
EntitiesApi | get_entity_schedule_year_month | GET /entity/{entityID}/schedule/{year}/{month} | Get entity schedule for a specific month and year |
- BoardingGroupState
- DestinationEntry
- DestinationParkEntry
- DestinationsResponse
- EntityChild
- EntityChildrenResponse
- EntityData
- EntityDataLocation
- EntityLiveData
- EntityLiveDataResponse
- EntityScheduleResponse
- EntityType
- LiveQueue
- LiveQueueBOARDINGGROUP
- LiveQueuePAIDRETURNTIME
- LiveQueueRETURNTIME
- LiveQueueSTANDBY
- LiveShowTime
- LiveStatusType
- PriceData
- ReturnTimeState
- ScheduleEntry
- TagData
All endpoints do not require authorization.
If the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from openapi_client.api.default_api import DefaultApi
from openapi_client.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import openapi_client
from openapi_client.apis import *
from openapi_client.models import *