Skip to main content

Azubiheft.de custom api

Project description

azubiheft-api

Api for azubiheft.de

install with pip

later

usage example code

from azubiheftApi import azubiheftApi
from datetime import datetime

azubiheft = azubiheftApi.Session()

azubiheft.login("yourUserName", "yourPassword")

# Check login status
print(azubiheft.isLoggedIn())

# Testen Sie die getSubjects-Funktion
subjects = azubiheft.getSubjects()
print(subjects)

# Testen Sie die getReport-Funktion
report = azubiheft.getReport(datetime(2023, 10, 19))
print(report)

# Testen Sie die getReportWeekId-Funktion
week_id = azubiheft.getReportWeekId(datetime.now())
print(week_id)

# Use the new writeReport method
azubiheft.writeReport(datetime(2023, 10, 19), "Hello World", "2:00", 1)

# Get a report
report = azubiheft.getReport(datetime(2023, 10, 19))
print(report)

# Testen Sie die logout-Funktion
azubiheft.logout()
# Sollte False zurückgeben, wenn Sie erfolgreich ausgeloggt sind
print(azubiheft.isLoggedIn())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azubiheftApi-0.0.2.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

azubiheftApi-0.0.2-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page