Skip to content

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

Description

@Reza-Ardestani

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions