Whenever WordPress post is created I just wanted to send the information to a different service, which is totally in a different server. I tried several things and came up with this simple solution. Try and play around with it, if you find any issues please do let me know.