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 Mediterranea, Barcelona, May 30, 2014
http://mediterranea.apidays.io/

Leah Culver

May 30, 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. Why not files? • Clearly defined structure • More efficient

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

    Python • Handles offline caching and syncing • Notifications of changes • Updates in real time
  8. Store data in user’s own Dropbox ! • User owns

    their data • Access to files/data outside your app • Free for developers
  9. 2048 • JavaScript game (now mobile too) • High score

    and game state
 saved via cookies • Very fun (and addictive!)
  10. Dropbox 2048 • Save data in user’s Dropbox • Top

    3 high scores • Current game state • Syncs between different browsers
  11. Sync and Datastore API Version 3.0 • New datastore properties

    • Named datastores • Batching file-system operations • Better error handling • And more…
  12. • Cross-platform SDKs • Both files and data • Users’

    own Dropbox • Handles offline access, sync, and conflict resolution TL;DL