Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.28 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.28 KB

go-intigriti

For changes made by Radu Boian check here

Go library and commandline client for interacting with the intigriti v1 and v2 external API. Checkout the docs!

Commandline client

Usage:

% inti company list-programs
% inti company list-submissions

Library

API documentation is available on the ReadMe.

We have a v1/ for the regular external API and a v2/ for the new v2.0 external API. Check with your customer success representative what version you ought to use.

Usage

package main

import (
	inti " github.com/finn-no/go-intigriti/v2"
	"log"
)

func main() {
	intigriti, err := inti.New("my-client-token", "my-client-secret", nil) // or a logrus.Logger
	if err != nil { log.Fatal(err) }
	
	programs, err := intigriti.GetPrograms()
	if err != nil { log.Fatal(err) }

	for _, program := range programs {
		log.Println(program.Name)
	}
}

Testing

# test on production using inti.yml
go test -tags integration -v ./...

# test on staging using inti.yml
INTI_TOKEN_URL=="testing.api.com" INTI_AUTH_URL=="subs.testing.api.com" INTI_API_URL="api.testing.com" go test -tags integration -v ./...