Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/signalsciences/go-sigsci

Go client library for the Signal Sciences API.
https://github.com/signalsciences/go-sigsci

go golang signal-sciences signal-sciences-api sigsci

Last synced: 26 days ago
JSON representation

Go client library for the Signal Sciences API.

Awesome Lists containing this project

README

        

[![Actions Status](https://github.com/signalsciences/go-sigsci/workflows/build/badge.svg)](https://github.com/signalsciences/go-sigsci/actions) [![GoDoc](https://godoc.org/github.com/signalsciences/go-sigsci?status.svg)](https://godoc.org/github.com/signalsciences/go-sigsci) [![Go Report Card](https://goreportcard.com/badge/github.com/signalsciences/go-sigsci)](https://goreportcard.com/report/github.com/signalsciences/go-sigsci)

# go-sigsci
Go client library for the Signal Sciences API.

## Installation

```
go get github.com/signalsciences/go-sigsci
```

## Usage

```go
email := "[sigsci email]"
password := "[sigsci password]"
sc, err := sigsci.NewClient(email, password)
if err != nil {
log.Fatal(err)
}
```

## Full example

```go
package main

import (
"log"

sigsci "github.com/signalsciences/go-sigsci"
)

func main() {
email := "[sigsci email]"
password := "[sigsci password]"
sc, err := sigsci.NewClient(email, password)
if err != nil {
log.Fatal(err)
}

agents, err := sc.ListAgents("testcorp", "www.mysite.com")
if err != nil {
log.Fatal(err)
}

log.Println(agents)
}
```