Closed astrochun closed 4 years ago
I have made some cURL attempts to retrieve an HTML/PDF of an individual response, but was not successful. A link that I received from Fernando uses cookies to cache SSO credentials. Thus, a simple API token won't retrieve the file.
I've also tried creating a temporary OAuth2 token but that did not work.
For now I'm going implement the checking of a deposit agreement, but won't be able to retrieve it. This will be part of v0.5.0 with feature/curation_workflow
Closing for now. Additional functionality will be later revisited.
It might be possible to open a browser tab with the desired Qualtrics URL to retrieve the deposit agreement form. Not the most ideal, but this is a workaround for now.
It would look something like:
import webbrowser
webbrowser.open(f'https://uarizona.co1.qualtrics.com/Q/Data/Ajax/GetSingleResponseReport?RID={RespondID}&{SurveyID}', new=2)
One issue is that the above link is dependent on being signed into the Qualtrics dashboard using SSO. If the original session times out, you will get a blank page. Thus, it would make sense to open a browser tab to login and then the deposit agreement form.
Note: for 35616de, tabulate
package is needed for the use of pandas to_markdown()
. This would need to be included in the next release
Closing issue for now.
It may be possible to download without logging in using this method https://www.qualtrics.com/community/discussion/10362/is-this-possible-to-download-pdf-summary-of-responses-by-using-qualtrics-api-in-python
I tried the URL in a private browser window and it does display the result along with an option to generate a PDF.
API documentation is available here.
This is within
feature/qualtrics_api
andfeature/qualtrics2
branches.This feature will include:
Qualtrics
class to retrieve basic information [4a4c219, 99d7920, ef80421, a2c9431, 830b18c, 2ca475e, bb99a63, bdaabf1, 75e110b, d0793cb, d29eaf1, e641a74, ec9ba7d, 35616de, 53b092f]config/default.ini
[d3b6f34, 402f632]