Skip to content

finn-no/go-intigriti

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ./...

Packages

No packages published

Languages

  • Go 100.0%