cornellGrading 2.22.0__tar.gz → 2.23.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cornellgrading-2.22.0/cornellGrading.egg-info → cornellgrading-2.23.0}/PKG-INFO +1 -1
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/__init__.py +1 -1
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/cornellQualtrics.py +27 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0/cornellGrading.egg-info}/PKG-INFO +1 -1
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/LICENSE +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/MANIFEST.in +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/README.md +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/cornellGrading.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/cornellInterface.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/dueDatesFromCSV.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/pandocHTMLParser.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/upload_MC_questions.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading/utils.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading.egg-info/SOURCES.txt +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading.egg-info/dependency_links.txt +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading.egg-info/entry_points.txt +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading.egg-info/requires.txt +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading.egg-info/top_level.txt +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/pyproject.toml +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/scripts/canvastex.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/scripts/matlabgrader.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/scripts/setupSelfGrading.py +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/setup.cfg +0 -0
- {cornellgrading-2.22.0 → cornellgrading-2.23.0}/setup.py +0 -0
|
@@ -1159,6 +1159,33 @@ class cornellQualtrics:
|
|
|
1159
1159
|
response = requests.put(baseUrl, json=questionDef, headers=self.headers_post)
|
|
1160
1160
|
assert response.status_code == 200, "Couldn't update question."
|
|
1161
1161
|
|
|
1162
|
+
def addSurveyBlock(self, surveyId, blockDef):
|
|
1163
|
+
"""Add block to existing Survey
|
|
1164
|
+
|
|
1165
|
+
Args:
|
|
1166
|
+
surveyId (str):
|
|
1167
|
+
Survey ID string as returned by getSurveyId
|
|
1168
|
+
blockDef (dict):
|
|
1169
|
+
Full block definition dictionary
|
|
1170
|
+
|
|
1171
|
+
Returns:
|
|
1172
|
+
str:
|
|
1173
|
+
Block ID
|
|
1174
|
+
|
|
1175
|
+
..notes::
|
|
1176
|
+
See https://api.qualtrics.com/2d5286cc34ed6-create-block
|
|
1177
|
+
|
|
1178
|
+
"""
|
|
1179
|
+
baseUrl = "https://{0}{2}survey-definitions/{1}/blocks".format(
|
|
1180
|
+
self.dataCenter, surveyId, self.qualtricsapi
|
|
1181
|
+
)
|
|
1182
|
+
|
|
1183
|
+
response = requests.post(baseUrl, json=blockDef, headers=self.headers_post)
|
|
1184
|
+
assert response.status_code == 200, "Couldn't add block."
|
|
1185
|
+
|
|
1186
|
+
return response.json()["result"]["BlockID"]
|
|
1187
|
+
|
|
1188
|
+
|
|
1162
1189
|
def getSurveyQuotas(self, surveyId):
|
|
1163
1190
|
"""Get all quotas for a survey
|
|
1164
1191
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cornellgrading-2.22.0 → cornellgrading-2.23.0}/cornellGrading.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|