Comments
-
Thank you. I think I have it now. I was thinking that you needed to already have the authenticated token before creating the new Dropbox object. I didn't realize you could create an un-authenticated dbx object, and the call a method on it to authenticate. I appreciate your patience and help. 🙂
-
The example you linked to above has this setup: const fetch = require('node-fetch');const app = require('express')();const hostname = 'localhost';const port = 3000;const config = { fetch, clientId: 'jg8wc1hfkvel6ql', clientSecret: 'f0i5w4e6mlbbme5',};const { Dropbox } = require('dropbox'); // eslint-disable-line…
-
Thank you. I tried just replacing the access token with the refresh token in the dbx - new Dropbox() line, but that did not work. The example you pointed to uses the key and secret in this command, along with "fetch". I am not familiar with fetch, but I get the following error: TypeError: Failed to execute 'fetch' on…
-
So this shows how to refresh a token manually in terminal. My app is Vue.js. Current code is: import { Dropbox } from 'dropbox' import { Dropbox } from 'dropbox'import axios from 'axios'async function get_thumbnail() { const dropbox_token = 'sl.**CODE**' const options = { format: 'jpeg', mode: 'strict', path:…
-
I have spent hours trying to get the API working. It worked great before the tokens started expiring every 4 hours. I have read everything I can find about this, but I can't piece it together. I have an app that need to access a dedicated Dropbox folder. I don't care who is using the app, and I don't want the users to need…
-
Greetings... Another user here who would really like to be able to access PDF comments from the API. This would greatly improve the usefulness to my team.