Skip to content

Instantly share code, notes, and snippets.

@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,
--# Main
-- Particle Effect
-- Use this function to perform your initial setup
function setup()
displayMode(FULLSCREEN)
--to get ghost trails
backingMode(RETAINED)
--b=Backup("Particle Fireworks Ver 002")