// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-android/
try {
    CellsApi api = new CellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret(),CellsApiUtil.GetAPIVersion(),CellsApiUtil.GetBaseUrl());
    String name =PivTestFile;;
    String sheetName = SHEET4;
    Integer pivottableIndex = 0;
    String folder = TEMPFOLDER;
    CellsApiUtil.Upload(api, folder , name);
    PivotTableResponse response = api.cellsPivotTablesGetWorksheetPivotTable(name, sheetName, pivottableIndex, folder,null);
}
catch (Exception e) {
    e.printStackTrace();
}