Skip to content

stanislavulrych/opsgenie-python-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opsgenie-python-api

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/

Installation

Install current reelase by pip

pip install opsgenie-python-api

Getting Started

You need an API token for communicating with Opsgenie REST APIs.

Schedules API

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)

Contributing

Contribution is welcome. See CONTRIBUTING.md for more details.