The official Invopop API Go Client Library.
Start using the Invopop Client in your project by importing the library and initializing the client:
import (
"context"
"os"
"github.com/invopop/client.go/invopop"
)
func main() {
ctx := context.Background()
token, _ := os.Getenv("INVOPOP_TOKEN")
ic := invopop.New()
ic.SetAuthToken(token)
p := new(invopop.Ping)
if err := ic.Utils().Ping(ctx, p); err != nil {
panic(err.Error())
}
fmt.Printf("%v\n", p)
}The Invopop API is split into individual namespaces, these are:
Utils- for ensuring you can connect correctly with the Invopop servers and your credentials are correct.Sequence- used for generating sequential numbers or codes calledSeries.Transform- used to configureIntegrations andWorkflows that will be requested to be used when processingJobs.Silo- for storing GOBL envelopes ready to send to integrations via jobs whose output may be stored as attachments.Access- mostly used by apps to get access tokens and manage enrollment data.