I’m not the best with Python, but I cannot get this to work with my connection
def run(params={}):
import requests
import json
# Authentication
client_id = params.get('credentials').get('username')
I keep getting this not matter what I try and I got this from the documentation
Traceback (most recent call last):
File "/python/src/.py", line 48, in <module>
sys.stdout.write("" + str(run({})))
File "/python/src/.py", line 21, in run
client_id = params.get('credentials').get('username')
AttributeError: 'NoneType' object has no attribute 'get'