Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/signalsciences/go-sigsci
- Owner: signalsciences
- License: mit
- Created: 2018-07-27T04:43:01.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T19:45:54.000Z (4 months ago)
- Last Synced: 2024-08-15T21:38:30.222Z (4 months ago)
- Topics: go, golang, signal-sciences, signal-sciences-api, sigsci
- Language: Go
- Homepage: https://docs.signalsciences.net/api/
- Size: 129 KB
- Stars: 20
- Watchers: 19
- Forks: 15
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport (
"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)
}
```