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

Move interactive prompt to generate access token into client #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jhunschejones
Copy link
Owner

@jhunschejones jhunschejones commented May 5, 2023

Description:

This resolves #12 by moving the interactive prompt to generate an access token inside of the client module. This should allow users to require the gem into a Rails console or IRB session and run Pcloud::Client.generate_access_token to generate the prompts.

🤔 this script is currently untested in the repo, does this PR also need to include tests? I didn't change any logic but...

@jhunschejones
Copy link
Owner Author

jhunschejones commented May 5, 2023

I tested this in a local project, configuring an access token and then using it to access my pCloud account 👍🏻

I think since I don't expect to iterate on this logic, a simple run through here is a good enough test to confirm it works for now. I can look at adding unit tests later if a regression or bug proves we need them.

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.

🔨 Move initializer script to a helper method on Pcloud::Client
1 participant