Comments (9)
Hi,
The visibility of getAccessToken() is only public for the purpose of being accessible to the unit test setup script. You should not need to call this method directly.
What are you trying to achieve?
from dropbox.
Im trying to make a backup script that can run from a cron job where the user does not need to suply the account credits everytime, but just once doing a setup of the script where I understod i should save and use the access token for further use.
Sorry for the bad english
from dropbox.
Hi @Timpet123
This issue has been raised before. Please see #16 for my proposed solution, assuming you aren't going to use the new persistent handler, which stores tokens in a database.
Please advise if you're still having issues.
from dropbox.
Since i dont have commandline access i cant run the setup file, i do want to store the tokens in my DB. Perhaps you could create and example on how to do this not useing the commandline?
from dropbox.
Hi,
You don't have to acquire the token on your server, it could be done on your local machine and the resulting oauth.token uploaded afterwards. I'd encourage you to use this method for single user applications as it will reduce the associated overheads.
The examples do describe how to use the persistent storage handler. If it is not clear enough I will try my best to explain.
----- Reply message -----
From: "Timpet123" [email protected]
To: "BenTheDesigner/Dropbox" [email protected]
Cc: "Ben Tadiar" [email protected]
Subject: [Dropbox] GetAccessToken (#36)
Date: Tue, Aug 14, 2012 10:57
Since i dont have commandline access i cant run the setup file, i do want to store the tokens in my DB. Perhaps you could create and example on how to do this not useing the commandline?
—
Reply to this email directly or view it on GitHub.
from dropbox.
It would be great if you could explain how i could get the access token, store it in my DB (I can do this my self), and then use it further on, but not the commandline way. :)
from dropbox.
The PDO storage handler will provide this functionality. I need to provide the DB table schema, but its not too complex. You could, in fact, check the source for the fields required.
The example usage in bootstrap.php shows how to use a hard coded user ID, which is what you'll want to do to achieve single user access.
from dropbox.
Resolved
from dropbox.
Fast replys and good service!
from dropbox.
Related Issues (20)
- Request token not found After allow OAuth. HOT 2
- files starts with symbol @ not uploading. HOT 1
- The cURL OAuth consumer requires the cURL extension HOT 2
- Problem with putStream HOT 3
- Warning: Unexpected character in input: '\' (ASCII=92) state=1 HOT 2
- Can ConsumerAbstract->getRequestToken be public? HOT 1
- Forbidden error HOT 4
- Fatal Error HOT 3
- Examples not working HOT 2
- pufile.php example not working : Invalid file extension
- How to deploy this into my own server? Error:'Couldn't resolve host 'api.dropbox.com'' HOT 3
- "This app has been disabled." HOT 3
- Installation Instructions for Acquia Drupal ??
- How to set to the userID dynamically for each user? HOT 1
- Apps/TestFolder rights question HOT 1
- Need Help with Href Link
- Connect via token (upload file to one account) HOT 2
- How to use this library without Composer? HOT 2
- Migration to API v2
- Could not resolve host: api-content.dropbox.com HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropbox.