List available bridges. A bridge is a chat-network connector that can connect or reconnect chat accounts. Connected accounts use the same Account schema as GET /v1/accounts.
List available bridges
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(accessToken: 'My Access Token');
$bridges = $client->bridges->list();
var_dump($bridges);{
"items": [
{
"id": "id",
"accounts": [
{
"accountID": "accountID",
"bridge": {
"id": "id",
"provider": "cloud",
"type": "type"
},
"status": "connected",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
},
"capabilities": {
"foo": "bar"
},
"loginID": "loginID",
"network": "network",
"statusText": "statusText"
}
],
"activeAccountCount": 0,
"displayName": "displayName",
"provider": "cloud",
"status": "available",
"supportsMultipleAccounts": true,
"type": "type",
"network": "network",
"statusText": "statusText"
}
]
}Returns Examples
{
"items": [
{
"id": "id",
"accounts": [
{
"accountID": "accountID",
"bridge": {
"id": "id",
"provider": "cloud",
"type": "type"
},
"status": "connected",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
},
"capabilities": {
"foo": "bar"
},
"loginID": "loginID",
"network": "network",
"statusText": "statusText"
}
],
"activeAccountCount": 0,
"displayName": "displayName",
"provider": "cloud",
"status": "available",
"supportsMultipleAccounts": true,
"type": "type",
"network": "network",
"statusText": "statusText"
}
]
}