zendesk / sunshine-conversations-python

Smooch API Library for Python
Apache License 2.0
23 stars 8 forks source link

Not Receiving JWT token after running step 2 #1

Closed monhustla closed 7 years ago

monhustla commented 7 years ago

I run step 2:

import jwt token = jwt.encode({scope: app}, 'my secret', algorithm=HS256, headers={kid: 'my key id'})

There is no output. Where do I obtain the JWT following running this?

Thank you

alavers commented 7 years ago

The token var should now contain your JWT string, this is what you set for the smooch.configuration.api_key['Authorization'] in the following step.

I suppose if you just wanted to see the token you could simply to print token.