Low-level Python bindings for Opsgenie API.
This is a Opsgenie API client library to simplify the interaction with Opsgenie.
Opsgenie API documentation can be found at https://docs.opsgenie.com/docs/
Install current reelase by pip
pip install opsgenie-python-api
You need an API token for communicating with Opsgenie REST APIs.
from opsgenie.api.v2 import Schedules
schedules = Schedules(token='<your_api_auth_token>)
users = schedules.get_users()
print(users)
schedules = schedules.get_schedules()
print(schedules)
rotations = schedules.get_schedule_rotations("<scheduleid>")
print(rotations)
overrides = schedulesApi.get_schedule_overrides("<scheduleid>")
print(overrides)
timeline = schedulesApi.get_schedule_timeline("<scheduleid>")
print(timeline)
Contribution is welcome. See CONTRIBUTING.md for more details.