Registry /
auth / bradleyfalzon-ghinstallation-v2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ghinstallation
✓ github.com/bradleyfalzon/ghinstallation/v2
Create an authenticated GitHub API client using an installation token.
package main
import (
"github.com/bradleyfalzon/ghinstallation/v2"
"net/http"
)
func main() {
tr := http.DefaultTransport
itr, err := ghinstallation.New(tr, 12345, 67890, []byte("private-key"))
if err != nil {
panic(err)
}
client := &http.Client{Transport: itr}
resp, err := client.Get("https://api.github.com/installation/repositories")
if err != nil {
panic(err)
}
defer resp.Body.Close()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.19.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.