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

Skip to content

Commit f2fc9ef

Browse files
committed
POST /form/{formID}/reports added
1 parent 62cd6a8 commit f2fc9ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

jotform.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,18 @@ def get_form_reports(self, formID):
438438

439439
return self.fetch_url('/form/' + formID + '/reports', method='GET')
440440

441+
def create_report(self, formID, report):
442+
"""Create new report of a form
443+
444+
Args:
445+
formID (string): Form ID is the numbers you see on a form URL. You can get form IDs when you call /user/forms.
446+
report (array): Report details. List type, title etc.
447+
448+
Returns:
449+
Report details and URL
450+
"""
451+
return self.fetch_url('/form/' + formID + '/reports', report, 'POST')
452+
441453
def delete_submission(self, sid):
442454
"""Delete a single submission.
443455

0 commit comments

Comments
 (0)