This repository contains a Go client library for accessing the Statuspage REST API v1.
Install statuspage-go
via go-get
:
go get github.com/nagelflorian/statuspage-go
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")
}
The official Statuspage API documentation can be found here: developer.statuspage.io.
This library is distributed under the MIT-style license found in the LICENSE file.