Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.19 KB

Actions Status GoDoc Go Report Card

go-sigsci

Go client library for the Signal Sciences API.

Installation

go get github.com/signalsciences/go-sigsci

Usage

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

Full example

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)
}