Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use this with a hardcoded token #89

Open
pketh opened this issue Sep 11, 2015 · 3 comments
Open

Is it possible to use this with a hardcoded token #89

pketh opened this issue Sep 11, 2015 · 3 comments

Comments

@pketh
Copy link

pketh commented Sep 11, 2015

So I'm writing an app that only uses my specific dropbox account, so I don't need any of the oauth stuff. Can I initiate a 'client' that's just based on my token?

thanks

@sintaxi
Copy link
Owner

sintaxi commented Sep 12, 2015

Yip!
On Sep 11, 2015 16:36, "Pirijan Ketheswaran" [email protected]
wrote:

So I'm writing an app that only uses my specific dropbox account, so I
don't need any of the oauth stuff. Can I initiate a 'client' that's just
based on my token?

thanks


Reply to this email directly or view it on GitHub
#89.

@pketh
Copy link
Author

pketh commented Sep 12, 2015

Thx!

@hariawan
Copy link

how do we do that?

like this?

var dbox = require('dbox');

var client = dbox.client(config.dropbox.accessToken);

client.put(blablablabla

or with appkey?

var dbox = require('dbox');

var Dropbox = dbox.app({
  app_key: config.dropbox.appKey,
  app_secret: config.dropbox.appSecret
});

var client = Dropbox.client(config.dropbox.accessToken);

client.put(blablablabla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants