0

Im using the following python code to read pushbullet pushes sent through the mirroring option.

async with session.ws_connect("wss://stream.pushbullet.com/websocket/" + PB_API_key) as ws:
    while True:
        output = await ws.receive()
        #other stuff...

The problem is that sometimes my pc gets offline/restarts/... and it cannot read incoming pushes in streaming. Is there a way to retrieve such messages? Or the pushes sent in streaming are not saved anywhere?

I tried to download the app for windows, look in the android app, on the online page www.pushbullet.com but I cannot find a list of pushes sent through the mirroring option.

I also tried this code:

response = requests.get('https://api.pushbullet.com/v2/pushes', headers={'Access-Token': api_key})
pushes = response.json()['pushes']

but it seems to only read direct pushes. The ones done manually, not the automated ones through mirroring.

Ken
  • 1

0 Answers0