Added API sample for getting submissions

Added API sample for getting submissions