My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

Introduction

ActionScript3 Dropbox API, currently only support AIR platform because the crossdomain issue will happen in web flash.

Dropbox API use OAuth to authorize and JSON as result. So another two libraries is necessary: Crypto.swc and as3corelib.swc. Both two files can be found either in source code or google code projects.

Why only AIR? Because there are no crossdomain.xml file in dropbox API site so all POST requests are inaccessible because of security policy of Flash Player.

Account API Implementation

createAccount() create a new account of Dropbox

Authorization API Implementation

1. OAuth:

requestToken() get request token key/secret from Dropbox server
authorizationUrl() get a string of authorization URL and ask user to go and authorize
accessToken() get access token key/secret from Dropbox server after user has authorized your application

2. email/ Password:

requestToken() get request token key/secret from Dropbox server
token() get access token key/secret from Dropbox Server by email / password

Dropbox API Implementation

accountInfo() get user's account information
fileCopy() copy a file
fileCreateFolder() create a folder
fileDelete() delete a file
fileMove() move a file
metadata() get the metadata of a file or folder
thumbnails() get thumbnails of a photo
getFile() get a file
putFile() put a file to server

Examples

AIR Examles

Powered by Google Project Hosting