Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dropbox = require('com.0x82.dropbox');
- Ti.API.info("module is => " + dropbox);
- var session = dropbox.createSession({
- key: '6z71c1y2iblq5ej',
- secret: 'iihdo2klm8h4q4l'
- });
- Ti.API.info("session is => " + session);
- var client;
- Ti.API.info("works till here on iPod Device");
- session.showAuthenticationWindow({
- success: function(e) {
- Ti.API.info("This is only shown in the Simulator");
- client = e.client;
- //setTimeout(uploadFile, 500);
- },
- cancel: function(e) {
- Ti.API.info("CANCEL....");
- }
- });
Add Comment
Please, Sign In to add comment