In order to fiddle around in fiddler, postman etc, it's useful to be able to quickly generate the correct headers. I'm using the following python script for it:
#!/usr/bin/python3
from pyze.api import Gigya, Kamereon, Vehicle
import os
kamApiKey = os.environ['KAMEREON_API_KEY']
g = Gigya()
jwt = g.get_jwt_token()
k = Kamereon(gigya=g) # Gigya argument is optional - if not supplied it will create one
tok = k.get_token()
print('Content-Type: application/vnd.api+json\n' \
+ 'apikey: ' + kamApiKey + '\n' \
+ 'x-gigya-id_token: ' + jwt + '\n' \
+ 'x-kamereon-authorization: Bearer ' + tok)
I suppose it'd be useful to add this as a feature in pyze cli.
I have python set up in WSL (linux under windows), and use the following bash script to get
1) the correct API keys from the 'cloud'
1) the headers copied straight into the clipboard:
In order to fiddle around in fiddler, postman etc, it's useful to be able to quickly generate the correct headers. I'm using the following python script for it:
I suppose it'd be useful to add this as a feature in pyze cli.
I have python set up in WSL (linux under windows), and use the following bash script to get 1) the correct API keys from the 'cloud' 1) the headers copied straight into the clipboard: