Searching for programs¶
It is possible to search through programs, by:
Initalizing a client with user credentials, see Initializing the client for more information;
Iterating over programs using
Programs.search()
.
For example:
from __future__ import annotations
import asyncio
from planetcasio.client import Client
from planetcasio.programs import ProgramType
async def main() -> None:
async with Client() as client:
async for program in client.programs.search(
type_=ProgramType.UTILITIES_ADDINS,
):
print(program)
break
asyncio.run(main())