Skip to content

Instantly share code, notes, and snippets.

-- Project: Dropbox Module
-- Description: A module for accessing Dropbox from Lua/CoronaSDK using the Dropbox REST API. Module written
-- by F. E. Torkel, based off code by Michael Weingarden.
local lfs = require( "lfs" )
local json = require( "json" )
local M = {}
@AntonioCiolino
AntonioCiolino / DropBox.lua
Created November 16, 2012 23:22
Codea - Dropbox integration
--DropBox features
--This code allows an application to register with DropBox and perform file functions.
--There are 3 steps to getting a NEW app registed to a DropBox folder:
--1: get a request token. this says, "I'm going to request access"
--2. have the USER authorize. This proves that a human is choosing to do the request
--3. get a "real" token and secret (password) to access DropBox. This is what we want
-- to save, so we can access DropBox in the future without re-registering.
DropBox = class()
--We allow the developer to set these. These are the app Key and app Secret,