Comments (2)
The store in db method is pseudocode to demonstrate what you might want to do with the token data. It is purely for example purposes and was not meant to be implemented. Sorry for the confusion.
In your case you will want to record the token data in a config file and recall it that way. You only need to store the token data in a database if you are authenticating with multiple users and those users have database entries.
I am closing this ticket as it's not an issue.
from codeigniter-dropbox-api-library.
OK, I understand. As it happens, I just found that the CMS I am using, PyroCMS, actually has a built-in encrypted field type in its ORM, so in fact it's as easy as (something along the lines of)
$entry_data = array( 'oauth_token' => $oauth['oauth_token'], 'oauth_token_secret' => $oauth['oauth_token_secret'] ); $this->streams->entries->update_entry(1, $entry_data, 'tokens', 'streams');
and retrieve with
$token = $this->streams->entries->get_entry(1, 'tokens', 'streams');
as I found about 5 minutes before you posted here. Working well now, great library, thanks again.
from codeigniter-dropbox-api-library.
Related Issues (15)
- dropbox -> Dropbox HOT 4
- i am not able to upload file HOT 2
- Upload Issue HOT 4
- Outdated version HOT 2
- undefined index : oauth_token HOT 19
- Expecting A file Upload Error HOT 2
- http 400 file: expecting a file upload HOT 2
- Upload File Issue HOT 1
- Url Encode Special Chars in path HOT 1
- add parameters at /shares HOT 1
- logging HOT 3
- return value of _content_request is missing HOT 7
- No support for chunked_upload HOT 3
- Unable to upload HOT 7
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 codeigniter-dropbox-api-library.