SpreadsheetCloudAPI |
! 3 . , , . - .
SpreadsheetCloudAPI. .
, , 3 . , . . , , . Excel , , .
, , , . Excel . - , , .
, , , Spreadsheet Document Server: SpreadsheetCloudAPI. Excel , , . .
, :
UI, :
, , . .
, , . , , , - , . , , , , , .
, : , . ! , . , Excel , ! , .
, SpreadsheetcloudAPI : , . php.
:
:
class PrivateConst {
const Base_Url = 'http://spreadsheetcloudapi.azurewebsites.net/api/spreadsheet';
const API_KEY = 'API_KEY';
const File_Name = '3D.xlsx';
}
Web API. API . , ( ) JSON :
{
"id": "some_id",
"filename": "test",
"extension": "xls",
"sheetindex": 0,
"sheetname": "Sheet1",
"startrowindex": 0,
"startcolumnindex": 0,
"endrowindex": 3,
"endcolumnindex": 5,
"mode": "ShiftCellsDown",
"formatmode": "FormatAsPrevious"
}
/api/spreadsheet/insertcells PUT .
, HTML (Export to HTML). , . HTML :
function getSessionHtml($id, $sheetName, $rowLimit, $columnLimit){
$params = array(
'id' => $id,
'sheetname' => $sheetName,
);
if($rowLimit > -1){
$params['endrowindex'] = $rowLimit;
}
if($columnLimit > -1){
$params['endcolumnindex'] = $columnLimit;
}
$request = get($params, '/exporttohtml');
return $request;
}
get, , GET .
$id ID . , .
, SpreadsheetCloudAPI HTML. , . Input, Select.
, :
:
Cost , .
Materials , :
Users . Full Cost . , , . Excel-, .
. , Excel , , UI.