Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 766 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 766 Bytes

go-pagerduty

PagerDuty API client in Go.

Getting started

package main

import "fmt"
import "github.com/danryan/go-pagerduty/pagerduty"

func main() {
  subdomain := "PAGERDUTY_SUBDOMAIN"
  apiKey := "PAGERDUTY_API_KEY"
  pd := pagerduty.New(subdomain, apiKey)

  incident := pd.Incidents.Get("ABCDEF")

  fmt.Printf("incident %v: status: %v\n", incident.ID, incident.Status)
}

Resources

Is it any good?

Possibly.

License

This library is distributed under the MIT License, a copy of which can be found in the LICENSE file.