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

unable to locate schwab-generate-token.py #40

Closed
nkaliape opened this issue May 5, 2024 · 1 comment · Fixed by #142
Closed

unable to locate schwab-generate-token.py #40

nkaliape opened this issue May 5, 2024 · 1 comment · Fixed by #142
Labels
authentication Authentication and token management enhancement New feature or request

Comments

@nkaliape
Copy link

nkaliape commented May 5, 2024

Unable to locate the schwab-generate-token.py
Can we please have sample code and also a video walk through? that can help big way.

@TamirP
Copy link

TamirP commented May 7, 2024

had same issue, but finally succeeded in the schwab.auth.client_from_manual_flow() , had to correct line #332 in auth.py replacing prompt to input to allow the input prompt to work (i am running on 3.10 and maybe old python code). and then just go through the login process on a browser approving all the required text and copying the resulting redirect URL.

client_from_manual_flow(api_key, app_secret, callback_url, token_path,
asyncio=False, token_write_func=None,
enforce_enums=True):
'''
Walks the user through performing an OAuth login flow by manually
copy-pasting URLs, and returns a client wrapped around the resulting token.
The client will be configured to refresh the token as necessary, writing
each updated version to token_path.

@alexgolec alexgolec added enhancement New feature or request authentication Authentication and token management labels May 17, 2024
@alexgolec alexgolec linked a pull request Jun 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication Authentication and token management enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants