# Pagex
[](https://hex.pm/packages/pagex) [](http://hexdocs.pm/pagex/) [](https://travis-ci.org/connorjacobsen/pagex)
Elixir client for V2 of the Pagerduty REST API.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `pagex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:pagex, "~> 0.1.0"}
]
end
```
## Usage
Configure pagex for your application. By using the `{:system, "ENV_VAR_NAME"}` pattern, pagex will lookup the key at run time.
```elixir
config :pagex,
api_key: {:system, "PAGERDUTY_API_KEY"},
uri: {:system, "PAGERDUTY_URI"}
```
Creating an incident is simple:
```elixir
iex> Pagex.Incidents.create("Test Incident!", "MyServiceID", "me@example.org)
```