Got allscripts API working