Checkout existing API code from SpoutDev/Spout.