Guest User

Untitled

a guest
Jan 20th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  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. });
Add Comment
Please, Sign In to add comment