SHARE
TWEET

Untitled

a guest Jan 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var dropbox = require('com.0x82.dropbox');
  2. Ti.API.info("module is => " + dropbox);
  3.  
  4. var session = dropbox.createSession({
  5.   key: '6z71c1y2iblq5ej',
  6.   secret: 'iihdo2klm8h4q4l'
  7. });
  8. Ti.API.info("session is => " + session);
  9.  
  10. var client;
  11.  
  12. Ti.API.info("works till here on iPod Device");
  13.  
  14. session.showAuthenticationWindow({
  15.   success: function(e) {
  16.      Ti.API.info("This is only shown in the Simulator");
  17.      client = e.client;
  18.     //setTimeout(uploadFile, 500);
  19.   },
  20.   cancel: function(e) {
  21.     Ti.API.info("CANCEL....");
  22.   }
  23. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top