Get bridge login session
bridges.login_sessions.retrieve(strlogin_session_id, LoginSessionRetrieveParams**kwargs) -> LoginSession
GET/v1/bridges/{bridgeID}/login-sessions/{loginSessionID}
Get the current state of a temporary bridge login session.
Get bridge login session
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
)
login_session = client.bridges.login_sessions.retrieve(
login_session_id="123",
bridge_id="local-whatsapp",
)
print(login_session.bridge_id){
"bridgeID": "bridgeID",
"loginSessionID": "loginSessionID",
"status": "waiting_for_input",
"account": {
"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"
},
"accountID": "accountID",
"currentStep": {
"fields": [
{
"id": "id",
"initialValue": "initialValue",
"label": "label",
"optional": true,
"placeholder": "placeholder",
"type": "type"
}
],
"stepID": "stepID",
"type": "user_input",
"attachments": [
{}
],
"instructions": "instructions"
},
"error": {
"code": "code",
"message": "message",
"details": {
"foo": "bar"
}
},
"login": {
"bridgeID": "bridgeID",
"loginID": "loginID",
"removeScopes": [
"current-device"
],
"status": "connected",
"accountIDs": [
"string"
],
"statusText": "statusText",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
},
"loginID": "loginID"
}Returns Examples
{
"bridgeID": "bridgeID",
"loginSessionID": "loginSessionID",
"status": "waiting_for_input",
"account": {
"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"
},
"accountID": "accountID",
"currentStep": {
"fields": [
{
"id": "id",
"initialValue": "initialValue",
"label": "label",
"optional": true,
"placeholder": "placeholder",
"type": "type"
}
],
"stepID": "stepID",
"type": "user_input",
"attachments": [
{}
],
"instructions": "instructions"
},
"error": {
"code": "code",
"message": "message",
"details": {
"foo": "bar"
}
},
"login": {
"bridgeID": "bridgeID",
"loginID": "loginID",
"removeScopes": [
"current-device"
],
"status": "connected",
"accountIDs": [
"string"
],
"statusText": "statusText",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
},
"loginID": "loginID"
}