-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


SpreadsheetCloudAPI

, 16 2017 . 11:31 +

! 3 . , , . - .


image


SpreadsheetCloudAPI. .


, , 3 . , . . , , . Excel , , .


, , , . Excel . - , , .


, , , Spreadsheet Document Server: SpreadsheetCloudAPI. Excel , , . .


, :


  • ,
  • ,
  • ( ),
  • , , .

UI, :


image


, , . .



, , . , , , - , . , , , , , .


, : , . ! , . , Excel , ! , .



Backend


, 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 . , .


Frontend


, SpreadsheetCloudAPI HTML. , . Input, Select.


, :


image


:


image


Cost , .


Materials , :


image


image


Users . Full Cost . , , . Excel-, .


image


. , Excel , , UI.

Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/331032/

:  

: [1] []
 

:
: 

: ( )

:

  URL