Skip to content

Commit

Permalink
adjust readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yacut committed Oct 19, 2020
1 parent 4afa192 commit 9f37336
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**The official iLert Go api bindings.**

## In action
## Create manual incident

```go
package main
Expand Down Expand Up @@ -32,6 +32,32 @@ func main() {
}
```

## Ping heartbeat

```go
package main

import (
"log"

"github.com/iLert/ilert-go"
)

func main() {
var apiKey = "heartbeat API Key"
client := ilert.NewClient()
result, err := client.PingHeartbeat(&ilert.PingHeartbeatInput{
APIKey: ilert.String(apiKey),
Method: ilert.String(ilert.HeartbeatMethods.HEAD),
})
if err != nil {
log.Println(result)
log.Fatalln("ERROR:", err)
}
log.Println("Heartbeat is ok!")
}
```

## Getting help

We are happy to respond to [GitHub issues][issues] as well.
Expand Down

0 comments on commit 9f37336

Please sign in to comment.