Get Connection Status
1 min
Gets the Connection status for a given user_id
Get Connection Status
Get a platform user's connection, and authorization url to a provider
GET
https://labs.pathfix.com/api/connection/{{provider}}
Path Parameters
- providerstringrequiredDescription
Query Parameters
- user_idstringrequiredDescription
- public_keystringrequiredDescription
- private_keystringrequiredDescription
curl
curl --request GET
--url https://labs.pathfix.com/api/connection/{{provider}}
--header 'Accept: application/json'nodejs
const fetch = require('node-fetch');
let url = 'https://labs.pathfix.com/api/connection/{{provider}}';
let options = {
method: 'GET',
headers: {
Accept: 'application/json',
}
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));python
import requests
url = "https://labs.pathfix.com/api/connection/{{provider}}"
headers = {"Accept": "application/json"}
response = requests.request("GET", url, headers=headers)
print(response.text)ruby
const fetch = require('node-fetch');
let url = 'https://labs.pathfix.com/api/connection/{{provider}}';
let options = {method: 'GET', headers: {Accept: 'application/json'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));200
{
"rows": [
{
"pincStatus": "success",
"callId": "9a90bcf9-1e06-4564-87c1-76352fe5a0fc",
"data": {
"connected": "yes/no"
}
}
]
}404
{
"message": "Ain't no cake like that."
}