I'm writing a swift app for the Pushbullet API for SMS notifications and replies on MacOS.
To get new SMS messages, I'm monitoring the WebSocket wss://stream.pushbullet.com/websocket/ for sms_changed events, which works nicely. I get the contact name, message body, and contact picture from that.
The issue I have is, when it comes to replying, you supply amongst other data, a "conversation_iden" to https://api.pushbullet.com/v2/ephemerals, which is documented as being the phone number. However, I do not receive the contact's phone number in the event stream, only the thread ID.
How can I get a contact's number from an sms_changed event instead of the thread_id?
Thanks!