• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

JAVA: accessToken (DropboxAPI) How To Save?

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Has anyone has experience with the DropBox API? I have finally got my App up and going and it's running like a dream.. only one problem ; I can't find sufficient documentation on how to store and access the accessToken so when a user closes their session they have to re-autheticate by going and typing their access code into my JOptionPane and only than are they allowed to upload/download have access to my methods.


What I would like to do is store the accessToken in a String and then call it when the user chooses the method such as "UPLOAD" so he/she doesn't re-autheticate the app instead the String is called and the user requires no authentication. Now I have found documentation online but it doesn't address my question specifically and the documentation around dropbox how-to's is quite poor to be frank...

What I have tried is using a FileInputStream and saving the file locally but can't call upon it in a method to work and its just starting to look like java-mumbo is there an efficient and clean way to accomplish this specified task? thank you for your contribution in advance.
 
travis Haycock
Ranch Hand
Posts: 67
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

SOLVED! if anyone want to use this in the future to avoid hunting for right for it, took me a while to find the documentation... code is not perfect and is my rough copy(working code) for now but will be perfected in the near future







 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic