Module python_odpt.api.default.train_information_operations_get_train_information

Functions

async def asyncio(*, client: Union[AuthenticatedClientClient], aclconsumer_key: str, owlsame_as: Union[Unset, str] = <python_odpt.types.Unset object>, odptoperator: Union[Unset, str] = <python_odpt.types.Unset object>, odptrailway: Union[Unset, str] = <python_odpt.types.Unset object>) ‑> Union[Any, List[TrainInformation], None]

列車運行情報を取得する

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptoperator : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptrailway : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Union[Any, List['TrainInformation']]

async def asyncio_detailed(*, client: Union[AuthenticatedClientClient], aclconsumer_key: str, owlsame_as: Union[Unset, str] = <python_odpt.types.Unset object>, odptoperator: Union[Unset, str] = <python_odpt.types.Unset object>, odptrailway: Union[Unset, str] = <python_odpt.types.Unset object>) ‑> Response[typing.Union[typing.Any, typing.List[TrainInformation]]]

列車運行情報を取得する

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptoperator : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptrailway : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Response[Union[Any, List['TrainInformation']]]

def sync(*, client: Union[AuthenticatedClientClient], aclconsumer_key: str, owlsame_as: Union[Unset, str] = <python_odpt.types.Unset object>, odptoperator: Union[Unset, str] = <python_odpt.types.Unset object>, odptrailway: Union[Unset, str] = <python_odpt.types.Unset object>) ‑> Union[Any, List[TrainInformation], None]

列車運行情報を取得する

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptoperator : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptrailway : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Union[Any, List['TrainInformation']]

def sync_detailed(*, client: Union[AuthenticatedClientClient], aclconsumer_key: str, owlsame_as: Union[Unset, str] = <python_odpt.types.Unset object>, odptoperator: Union[Unset, str] = <python_odpt.types.Unset object>, odptrailway: Union[Unset, str] = <python_odpt.types.Unset object>) ‑> Response[typing.Union[typing.Any, typing.List[TrainInformation]]]

列車運行情報を取得する

Args

aclconsumer_key : str
アクセストークン
owlsame_as : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptoperator : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式
odptrailway : Union[Unset, str]
固有識別子の別名 多くがodpt.hoge:fuga形式

Raises

errors.UnexpectedStatus
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException
If the request takes longer than Client.timeout.

Returns

Response[Union[Any, List['TrainInformation']]]