Public Client Connections
Exchange Client Connection Token
POST
Exchange Client Connection Token
Respuesta
Successful Response
Exchange Client Connection Token
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import requests
url = "https://api.diga.io/v1/public/client-connection-requests/exchange"
payload = { "token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://api.diga.io/v1/public/client-connection-requests/exchange', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.diga.io/v1/public/client-connection-requests/exchange \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/public/client-connection-requests/exchange"
payload := strings.NewReader("{\n \"token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "<string>",
"service_logo_url": "<string>",
"connection_name": "<string>",
"requester_name": "<string>",
"requester_company_name": "<string>",
"purpose": "<string>",
"connection_type": "OAUTH2",
"oauth_grant_type": "AUTHORIZATION_CODE",
"auth_schema": {},
"status": "AWAITING_CLIENT",
"expires_at": "2023-11-07T05:31:56Z",
"safe_identity": {},
"last_error_code": "<string>",
"last_error_message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Successful Response
import requests
url = "https://api.diga.io/v1/public/client-connection-requests/exchange"
payload = { "token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://api.diga.io/v1/public/client-connection-requests/exchange', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.diga.io/v1/public/client-connection-requests/exchange \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/public/client-connection-requests/exchange"
payload := strings.NewReader("{\n \"token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"service_name": "<string>",
"service_logo_url": "<string>",
"connection_name": "<string>",
"requester_name": "<string>",
"requester_company_name": "<string>",
"purpose": "<string>",
"connection_type": "OAUTH2",
"oauth_grant_type": "AUTHORIZATION_CODE",
"auth_schema": {},
"status": "AWAITING_CLIENT",
"expires_at": "2023-11-07T05:31:56Z",
"safe_identity": {},
"last_error_code": "<string>",
"last_error_message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}