List (Multiple)
1 min
Works only where multiple user connections is implemented. Returns all the virtual connections with the names of the providers and map_id which should be used for all oauth calls instead of the user id.
List Virtual Connections For a User
This API will give you access to all the virtual connections for a specific user
GET
https://labs.pathfix.com/api/connection/all/virtual
Query Parameters
- user_idstringrequiredDescription
- public_keystringrequiredDescription
- private_keystringrequiredDescription
curl
curl --request GET
--url https://labs.pathfix.com/api/connection/all/virtual
--header 'Accept: application/json'javascript
fetch("https://labs.pathfix.com/api/connection/all/virtual", {
"method": "GET",
"headers": {
"Accept": "application/json"
}
})
.then(response => {
console.log(response);
})
.catch(err => {
console.error(err);
});nodejs
const fetch = require('node-fetch');
let url = 'https://labs.pathfix.com/api/connection/all/virtual';
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/all/virtual"
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/all/virtual';
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": "9333921d-5175-4eed-ab19-3c260d23fdsfdf",
"data": {
"rows": [{
"name": "Mailchimp [email protected]",
"map_id": "[email protected]",
"provider": "mailchimp"
}, {
"name": "Acme [email protected]",
"map_id": "[email protected]",
"provider": "slackv2"
}, {
"name": "Test Account",
"map_id": "[email protected]",
"provider": "slackv2"
}]
}
}]
}401
Unauthorized