-
kerussoactivewearAsked on February 9, 2018 at 2:13 PM
Hello, we are trying to create a new Jotform submission using Python and the Jotform API. I used pip to install the Jotform module and then created an API Key for our account.
Here is my python code so far:
from jotform import *
jotformAPIClient = JotformAPIClient(JOTFORM_API_KEY)
forms = jotformAPIClient.get_forms()
for form in forms:
if form["title"] == "TEST-FORM":
done = jotformAPIClient.create_form_submissions(form['id'],{"1":"Jim", "2":"Fay"})
I keep getting a TypeError: unhashable type error. Can you confirm that first argument should indeed be the form['id'] field? And how do you format the second argument which according to the jotform.py file should be an array?
I am using Python 2.7.
Thanks,
Kevin
-
David JotForm Support ManagerReplied on February 9, 2018 at 3:03 PM
For API related questions, please contact our API team at api@jotform.com.