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

add setOAuthCredentials function to supply the client with existing oAuth token and secret #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morriswchris
Copy link

Rather than needing to supply the client a username/password each time, allow the client to be build with an existing oAuth token and secret. This allows for token caching vs needing the user to supply a username and password to the application each time.

Sample:

const client = new Instapaper(CONSUMER_KEY, CONSUMER_SECRET);
client.setOAuthCredentials(TOKEN, SECRET);

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

Successfully merging this pull request may close these issues.

1 participant