You can customize this chrome extension
[login to view URL]
This chrome extension will capture [login to view URL] data (incoming messages) and passes to URL (server) in a JSON format. It also looks for new messages on the server every 3 mins and sends those messages to a URL via json format
Post Messages
In the chrome extension will then automatically POST data to ( [login to view URL] this will be provided ) - along with message source phone details and actual message contents.
Pull messages from your server:
Now, extension automatically pings your server for new messages and if there is any data needs to be sent it will red the json data and send it.