Metadata-Version: 2.1
Name: opsgenie-python-api
Version: 0.2
Summary: Python bindings for Opsgenie API
Home-page: https://github.com/stanislavulrych/opsgenie-python-api
Author: Stanislav Ulrych
Author-email: stanislav.ulrych@gmail.com
Project-URL: Bug Tracker, https://github.com/stanislavulrych/opsgenie-python-api/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10.11
Description-Content-Type: text/markdown
License-File: LICENSE

# 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 release 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](CONTRIBUTING.md) for more details.
