Skip to content

dietdoctor/go-trustpilot

Repository files navigation

go-trustpilot

Trustpilot API client library for Go.

ci GoDoc

This library does not implement full Trustpilot API.

Getting Started

The client library can be configured using ClientOption as functional options.

func ExampleNewClient() {
	authConfig := &trustpilot.PasswordGrantConfig{
		ClientID:     "1a9SsZ2XJKraw1Prl8m+gvq",
		ClientSecret: "AxLoJhlAcbWiVA8cHW2fINep",
		Username:     "apiuser@example.com",
		Password:     "6X2hQa1lPHu9dVjikUr0FbRt",
	}

	client, err := trustpilot.NewClient(
		trustpilot.AuthConfig(authConfig),
		trustpilot.Debug(true),
	)

	if err != nil {
		// TODO handle the error.
	}

	_ = client
}

Authentication

This client supports Trustpilot's oauth 2.0 password grant type. Other Trustpilot-supported grant types may be added.

About

Trustpilot API client library for Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages