Thank you all for your responses. I have managed to figure out a solution using XML RPC which fits my needs perfectly.