Discover Packages
github.com/torfjor/go-vipps
auth
package
Version:
v0.7.3
Opens a new window with list of versions in this module.
Published: Aug 18, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package auth provides a HTTP client suitable for consuming Vipps APIs.
Vipps APIs require that clients authorize with a client id, a client secret,
and an API subscription key.
func NewClient(environment vipps.Environment, credentials vipps.Credentials) *http .Client
NewClient returns a http.Client with a custom Transport that adds required
headers for authorizing Vipps API clients. JWT tokens are automatically
fetched and renewed upon expiry.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.