Aug-09-2022, 04:11 PM
(Aug-09-2022, 03:12 PM)snippsat Wrote: Line 12 is wrong,here you dump to string then can iterate over to get key in line 24.
UseaddressData
(it's a dictionary) as Requests has build in json decoder(don't needimport json
).
Try change line 24 to:
for cliente in addressData['items']:
Hello, I changed as requested, but it gave the following error.
Traceback (most recent call last):
File "c:\Projetos\api\getCliente.py", line 33, in <module>
cursor.executemany(comandoSQL, valoresInserir)
pyodbc.ProgrammingError: ('The SQL contains 0 parameter markers, but 3 parameters were supplied', 'HY000')