code: def get_task(taskid)
        params = {
          'method' => :get,
          'command' => "/task/#{taskid}"
        }
  
        response, headers = send_request(params)
  
        task = response.css('Task').first
        status = task['status']
        start_time = task['startTime']
        end_time = task['endTime']
  
        { :status => status, :start_time => start_time, :end_time => end_time, :response => response }
      end
docs: Fetch information for a given task