code: public TaskEnvelope getTaskByID(String tid) throws ApiException {
          ApiResponse<TaskEnvelope> resp = getTaskByIDWithHttpInfo(tid);
          return resp.getData();
      }
docs: Returns the details and global status of a specific task id.
  Returns the details and global status of a specific task id.
  @param tid Task ID. (required)
  @return TaskEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body