/statuspage-go

📡 statuspage.io client for Go.

Primary LanguageGoMIT LicenseMIT

statuspage-go GitHub Actions

This repository contains a Go client library for accessing the Statuspage REST API v1.

Install the package

Install statuspage-go via go-get:

go get github.com/nagelflorian/statuspage-go

Getting Started

Before you can initialize an instance you'll have to obtain an API key from the Statuspage account view.

package main

import "github.com/nagelflorian/statuspage-go"

func main() {
  client := statuspage.New("YOUR_API_KEY", nil)

  // Use the client.

  // Get the page profile for a given page id
  page, err := client.Page.GetPage(context.TODO(), "YOUR_PAGE_ID")
}

API Documentation

The official Statuspage API documentation can be found here: developer.statuspage.io.

License

This library is distributed under the MIT-style license found in the LICENSE file.