scala client for calling the prism api