Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cloud sync APIs for mobile developers

Cloud sync APIs for mobile developers

APIDays Berlin, May 6, 2014
http://berlin.apidays.io/

Leah Culver

May 06, 2014
Tweet

More Decks by Leah Culver

Other Decks in Programming

Transcript

  1. Core API • REST-ish, OAuth 2.0, JSON • SDKs for

    Android, iOS, OS X, Python, Ruby, Java, PHP • Community-supported libraries for C#, JavaScript, Perl, etc. HTTP API for files
  2. • List files
 /metadata/<root>/<path> • Upload file
 /files_put/<root>/<path> • Get

    a thumbnail
 /thumbnails/<root>/<path> • Share via a link
 /shares/<root>/<path> Core API
  3. Sync API • Just like Core API • Filesystem for

    mobile apps • Store and sync photos, videos, etc.
  4. • iOS, Android, OSX • Handle offline caching and syncing

    • Notifications of changes • Updates in real time Sync SDKs
  5. Datastore API • Storage for structured data • Like a

    NoSQL database • Stored in the user’s Dropbox • Not files!
  6. Store data in user’s own Dropbox ! • User owns

    their data • Access to files/data outside your app • Free for developers
  7. Why not files? • Clearly defined structure • More efficient

    syncing • Advanced conflict resolution
  8. Similar to Sync SDKs … • iOS, Android, OSX, JavaScript,

    Python • Handles offline caching and syncing • Notifications of changes • Updates in real time
  9. • Local changes cached when offline • Syncs changes with

    server when online • Automatically merge changes Offline / online syncing
  10. • Cross-platform SDKs • Both files and data • Users’

    own Dropbox • Handles offline access, sync, and conflict resolution TL;DL
  11. Photos http://www.flickr.com/photos/kky/704056791/ http://www.flickr.com/photos/eulothg/5906431611/ http://www.flickr.com/photos/tambako/2844515466/ http://www.flickr.com/photos/yourdon/10018150113/ http://www.flickr.com/photos/mager/2659619029/ http://www.flickr.com/photos/ben_grey/4582294721/ http://www.flickr.com/photos/adactio/12674602864/ http://www.flickr.com/photos/coofdy/11492948263/ http://www.flickr.com/photos/arts/42217172/

    http://www.flickr.com/photos/drachmann/327122302/ http://www.flickr.com/photos/evergreenkamal/395448039/ http://www.flickr.com/photos/aliaholle/5888906660/ http://www.flickr.com/photos/vinothchandar/5148046888/ http://www.flickr.com/photos/shandilee/5062466679/ http://www.flickr.com/photos/swisscan/2514879116/ http://www.flickr.com/photos/yourdon/10018150113/