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

pyTraffMonetizer.exceptions.NotLoggedInError #1

Open
DoaneND opened this issue Dec 7, 2023 · 4 comments
Open

pyTraffMonetizer.exceptions.NotLoggedInError #1

DoaneND opened this issue Dec 7, 2023 · 4 comments

Comments

@DoaneND
Copy link

DoaneND commented Dec 7, 2023

Hello,

Could you please help me to have balance of traffmonetizer with python script ?

When I launch the script, I receive this error : pyTraffMonetizer.exceptions.NotLoggedInError

I know that you said this on readme, but you don't say anithing else about resolution.

Thank you for your return.

Doane

@coder-amogh
Copy link
Owner

Hello Doane,
You need to use set_jwt_token(token) prior to using any of the dashboard functions.

@DoaneND
Copy link
Author

DoaneND commented Dec 7, 2023 via email

@coder-amogh
Copy link
Owner

coder-amogh commented Dec 7, 2023

This seems to have been left undocumented, I'll try to add it soon.

The JWT token is stored in the localStorage, so you can login to the TraffMonetizer dashboard, open the Console Tab of the browser and then paste this line: localStorage.getItem("token") to get back the JWT token. Do note that the token will expire in 7 days after login.

@DoaneND
Copy link
Author

DoaneND commented Dec 14, 2023 via email

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

No branches or pull requests

2 participants