List the GitHub App installations this person can link
curl --request GET \
--url https://app.trustivan.com/api/v1/code-integrations/github/installations \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/code-integrations/github/installations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/code-integrations/github/installations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/code-integrations/github/installations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"message": "<string>",
"can_authorize": true,
"installations": [
{
"id": 123,
"account": "<string>",
"account_type": "<string>"
}
],
"install_url": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}List GitHub App installations this person can link
Requires credentials:manage and a person (not an API key). 200
whichever way it comes out, with message saying so in words:
not_configured (no GitHub App on this deployment),
authorization_required (GitHub refused the stored token: it answers
only a token from the App’s own OAuth, and those can expire; when
can_authorize is false the deployment has no OAuth client for its App
and nothing can be linked), unavailable (GitHub did not answer) or
ok. install_url is the App’s install page, absent if GitHub could
not be asked.
GET
/
code-integrations
/
github
/
installations
List the GitHub App installations this person can link
curl --request GET \
--url https://app.trustivan.com/api/v1/code-integrations/github/installations \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/code-integrations/github/installations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/code-integrations/github/installations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/code-integrations/github/installations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "ok",
"message": "<string>",
"can_authorize": true,
"installations": [
{
"id": 123,
"account": "<string>",
"account_type": "<string>"
}
],
"install_url": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}