code: public ApiResponse<TaskEnvelope> getTaskByIDWithHttpInfo(String tid) throws ApiException {
          com.squareup.okhttp.Call call = getTaskByIDValidateBeforeCall(tid, null, null);
          Type localVarReturnType = new TypeToken<TaskEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
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 ApiResponse&lt;TaskEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body