Get one bridge, including the chat accounts connected through it.
Get bridge
import os
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token=os.environ.get("BEEPER_ACCESS_TOKEN"), # This is the default and can be omitted
)
bridge = client.bridges.retrieve(
"local-whatsapp",
)
print(bridge.id){
"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
{
"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"
}