Developers

8 downloads 325 Views 5MB Size Report
Jun 11, 2013 - OAuth 2.0. Operations: List, Get, Put, Delete... Per-file security model: ... Using Drive as the Storage
Developers

What's New with the Google Drive SDK: One Year Later Nicolas Garnier Developer Advocate

Why Google Drive?

Why Google Drive? The Web is a platform Google Drive is the File system

Why the Drive SDK? Convenient SDK Deep integration Better Security Moar features

Programmatic File Access

Programmatic File Access {

REST API OAuth 2.0 Operations: List, Get, Put, Delete... Per-file security model: ● ●

Files Created Files Opened through Drive

JSON

"kind": "drive#fileList", "items": [ { "kind": "drive#file", "title": "Stray_Kitten.jpg", "mimeType": "image/jpeg", "createdDate": "2013-04-26T... "fileSize": "159062", "imageMediaMetadata": { "width": 800, "height": 600 } }, { "kind": "drive#file", "title": "Vacation_Pic.jpg", "mimeType": "image/png", "createdDate": "2013-01-08T... ...

Deep UI Integration

Deep UI Integration Apps register for file types Open files from the Drive File explorer

"Open-with"

Deep UI Integration Apps can be "connected" directly from Drive

"Create-new"

Drive Apps

Deep UI Integration Lets have a look at one of them...

Hello Fax

Deep UI Integration Launched with 18 partner...

...150 today

Deep UI Integration Related Session

Getting Your App Noticed Inside Google Drive Speakers: Steven Bazyl & Josh Hudgins Time: 10:00am - Tomorrow Location: Room 11

Widgets! Moar widgets!

Widgets! Google Picker



Browse Drive Files



Javascript API

The Picker

Widgets! Embeddable Sharing Dialog



Same as Google Docs



Easy Drive file sharing

Sharing Dialog

Widgets! Save to Drive button



Only 2 lines of HTML



Download a file directly to Drive

Save-to-Drive

Widgets! Neutron Drive uses the Picker and the Sharing Widget!

https://lh4. googleusercon tent.com/01QXWhWf7v Y/AAAAAAAA AAI/AAAAAAA AAAc/OTn1fOQ7r8/photo. jpg

Neutron Drive

Widgets! O'Reilly uses the Save to Drive button!

O'Reilly

Publish Websites from Drive

Publish Websites from Drive Allows any public Drive folders to be accessible at: https://googledrive.com/host/

Resolve all resources by path

Publish Websites from Drive Neutron Drive allows to publish folders

https://lh4. googleusercon tent.com/01QXWhWf7v Y/AAAAAAAA AAI/AAAAAAA AAAc/OTn1fOQ7r8/photo. jpg

Neutron Drive

Realtime Enabled Apps

Realtime Enabled Apps Realtime collaboration made easy ●

Google Docs-style instant collaboration



All Javascript, no messy server



Conflict resolution



Undo/redo support



View collaborators

Realtime Enabled Apps Draw.io is a diagramming app with realtime collaboration

draw.io

Realtime Enabled Apps Related Session

Realtime API Deep Dive Speakers: Brian Cairns & Sheryl Simon Time: 2:35pm - Tomorrow Location: Room 1

Application Data App Data Folder & Custom Properties

Application Data App Data folder



A hidden app-only accessible folder



User can wipe

App Data Folder

Application Data Related Session

Using Drive as the Storage Solution on Android Speaker: Ali Afshar Time: 4:25pm - Today Location: Room 2

Application Data JSON

Custom File Properties



Custom metadata attached to Files



Can be private to apps

{ "kind": "drive#propertyList", "items": [ { "kind": "drive#property", "key": "property_1", "visibility": "PUBLIC", "value": "value_1" }, { "kind": "drive#property", "key": "private_property_2", "visibility": "PRIVATE", "value": "private_value_2" }, ...

What's next? a look at the year ahead

What's Next?

Push Notifications



Very Soon!



Instant change notifications

What's Next?

Google Drive SDK Early Access Program



Access to all new SDK features



Influence SDK directions with feedback

Conclusion

Links Deep UI Integration: https://developers.google.com/drive/about-sdk Widgets: ● ● ●

File Picker: https://developers.google.com/drive/integrate-open Sharing: https://developers.google.com/drive/manage-sharing Save to Drive: https://developers.google.com/drive/savetodrive

Website Publishing: https://developers.google.com/drive/publish-site Realtime API: https://developers.google.com/drive/realtime Appdata Folder: https://developers.google.com/drive/appdata Early Access Program: https://developers.google.com/drive/earlyaccess

Related Sessions Related Session

Using Drive as the Storage Solution on Android Speaker: Ali Afshar

Related Session

Getting Your App Noticed Inside Google Drive

Time: 4:25pm - Today Location: Room 2

Speakers: Steven Bazyl & Josh Hudgins

Related Session

Realtime API Deep Dive

Time: 10:00am - Tomorrow Location: Room 11

Speakers: Brian Cairns & Sheryl Simon Time: 2:35pm - Tomorrow Location: Room 1



Me: google.com/+NicolasGarnier Slides: goo.gl/yFHFT

Developers