Google Drive API - PHP (CRUD) -


i tried make script editing google spreadsheets. documentation it's not enough understand how work api. made registration in api manager , downloaded json file. give me examples how can edit document in google drive? thanks

you can use google realtime api, provides collaboration service files in google drive via use of operational transforms. api javascript library hosted google provides collaborative objects, events, , methods creating collaborative applications.

realtime api data model may change result of edits made other current user. realtime data models "eventually consistent." means if collaborators stop editing, see same data model.

applications multiple people need edit same data simultaneously. document editors excellent examples of kind of application. realtime api handles aspects of data transmission, storage, , conflict resolution when multiple users editing file.

for scripting, use class documentapp, document service creates , opens documents can edited. documents may opened or created using documentapp.

// open document id. var doc = documentapp.openbyid('document_id_goes_here');  // create , open document. doc = documentapp.create('document name'); 

here's documentation how update drive files: https://developers.google.com/drive/v2/reference/files/update


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -