Skip to content

Commit

Permalink
Merge pull request #20 from elimity-com/feature/18-setup-versioning
Browse files Browse the repository at this point in the history
Add readme with compatibility table
  • Loading branch information
jdeflander authored Jun 4, 2020
2 parents bdac9e1 + 1d13cad commit 5319017
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Elimity Insights Go client

This Go module provides a client for connector interactions with an Elimity
Insights server.

## Usage

```go
package main

import (
"github.com/elimity-com/insights-client-go"
"time"
)

func main() {
client, err := insights.NewClient("https://local.elimity.com:8081/api", "token")
if err != nil {
panic(err)
}

now := time.Now()
log := insights.ConnectorLog{
Level: insights.Info,
Message: "Hello world!",
Timestamp: now,
}
logs := []insights.ConnectorLog{log}
if err := client.CreateConnectorLogs(logs); err != nil {
panic(err)
}
}
```

## Installation

```sh
$ go get github.com/elimity-com/insights-client-go
```

## Compatibility

| Client version | Insights version |
| -------------- | ---------------- |
| 1 | ^2.7 |

0 comments on commit 5319017

Please sign in to comment.