A Python client library made for Oda's implementation of the various Workday APIs.
Released publicly for inspiration and ease of implementation on our end, but is not maintained based on community needs.
Import the relevant client services from .api, and type definitions from .types.$SERVICE. Importing business
logic directly from inside .service should not be required.
Example:
# Get all workers with currently active data
from datetime import date
from oda_wd_client.api import HumanResources
hr = HumanResources(
base_url="https://wd3-impl-services1.workday.com/",
tenant_name="mycompany",
username="admin",
password="hunter2"
)
all_workers = list(hr.get_workers(as_of_date=date.today()))
# If the result is not cast to a list, you get a generator that can be iterated over and will only get new data (new
# page in paginated data) when requiredAll API services are exposed under oda_wd_client.api. Each WWS service has a separate directory structure under
oda_wd_client.service, where specific logic for each service is collected. The common definitions and bases are
collected under oda_wd_client.base.
The import hierarchy is as following,
.apiimports from.service.$SERVICE.api, which import from.base.api.service.$SERVICE.apiimports from. service.$SERVICE.typesand.service.$SERVICE.utils.service.$SERVICE.utilsimports from.base.utilsand.service.$SERVICE.types.service.$SERVICE.typesimports from.base.types.base.toolsshould not import anything from this package, so importing from.base.toolsshould be safe anywhere