Skip to content

DataSources

Michael edited this page Jan 30, 2021 · 1 revision

There are 3 data sources, Qualtrics Remote, Qualtrics Local, and User Local.

Qualtrics Remote holds functions that are reponsible for communicating with the Qualtrics API directly. This includes starting a session, fetching lists of surveys, submitting a survey, etc. Make sure that you include a secrets.json file in your project for the api to work as expected.

Qualtrics Local holds functions that are responsible for storing survey and session data locally on the device. Currently the app manages a survey session locally and the Qualtrics Local datasource is responsible for updating that local session with submitted answers, fetching previous answers and questions, etc. It also is responsible for storing lists of surveys that the user needs to complete.

User Local holds functions responsible for fetching and setting the deviceId (as the UID), and also storing language preferences. If you decide to implement an authentication process that involves a micro service, I recommend creating a User Remote datasource to handle any api calls.

Clone this wiki locally