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

'authorization' : "Token %s" % token , NameError: name 'token' is not defined #1

Open
Reza-Ardestani opened this issue May 11, 2021 · 0 comments

Comments

@Reza-Ardestani
Copy link

Reza-Ardestani commented May 11, 2021

I got the following error while I was trying to "get the list of Najva's account clients":
'authorization' : "Token %s" % token,
NameError: name 'token' is not defined

I called the following lines of code for "get the list of Najva's account clients" with my apiKey and token.
client = Najva()
client.apikey = "166a59c9-ab5e-4835-9637-fa1277436406"
client.token = "b32aefa32fd46b2b413990792be0bbc0391e45c3"
accounts_str = client.get_onesignal_accounts()
print(accounts_str)

Even I got a new token from my panel, but still I encounter the same error.
Thanks

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

1 participant