Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To generate basic access token from with username and password:

Code Block
$ python
>>> string = 'username:password'
>>> data = base64.b64encode(string.encode())
>>> print(data)
b'ZGF0YSB0byBiZSBlbmNvZGVk'
>>>
//your basic access token is: ZGF0YSB0byBiZSBlbmNvZGVk

...