Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8902f0

Browse files
committed
PUT /form/{id}/submissions added
1 parent e542864 commit e8902f0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

jotform.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,19 @@ def create_form_submission(self, formID, submission):
285285

286286
return self.fetch_url('/form/' + formID + '/submissions', sub, 'POST')
287287

288+
def create_form_submissions(self, formID, submissions):
289+
"""Submit data to this form using the API.
290+
291+
Args:
292+
formID (string): Form ID is the numbers you see on a form URL. You can get form IDs when you call /user/forms.
293+
submission (json): Submission data with question IDs.
294+
295+
Returns:
296+
Posted submission ID and URL.
297+
"""
298+
299+
return self.fetch_url('/form/' + formID + '/submissions', submissions, 'PUT')
300+
288301
def get_form_files(self, formID):
289302
"""List of files uploaded on a form.
290303

0 commit comments

Comments
 (0)