Skip to content

Commit

Permalink
Updating some missing request params in API endpoints, and renaming f…
Browse files Browse the repository at this point in the history
…unctions from test
  • Loading branch information
nathan-moore-97 committed Nov 9, 2023
1 parent 7715b81 commit 4e840d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qualtrix/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ class SessionModel(SurveyModel):


@router.post("/bulk-responses")
async def test():
return client.result_export()
async def get_bulk_responses(request: SurveyModel):
return client.result_export(request.surveyId)


@router.post("/response")
async def test(request: ResponseModel):
async def get_response(request: ResponseModel):
try:
return client.get_response(request.surveyId, request.responseId)
except error.QualtricsError as e:
raise HTTPException(status_code=400, detail=e.args)


@router.post("/survey-schema")
async def test():
return client.get_survey_schema()
async def get_schema(request: SurveyModel):
return client.get_survey_schema(request.surveyId)


@router.post("/delete-session")
Expand Down

0 comments on commit 4e840d8

Please sign in to comment.