This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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, |