after finally setting up and running our server, we are able to connect to it through the dashboard and mobile apps. There is just small problem, the access to the sensory data.
Dashboard shows that the server should be collecting data.
Problem is that we are not able to connect to our server. For example this line:
LAMP.connect(âapi.lamp.digitalâ, âmy_email@address.comâ, âmy_passwordâ)
when filled in with our server and auth info, gives out error with connecting to host=âmy_passwordâ which leads me to think either this function has parameters in different order than shown.
I tried to look to other documentations but always found just this version. Offcourse there might be some other issue, but we were not able to get data even through the R script.
Does anyone know where might be the problem and how to fix it?
I was also thinking about the credentials being wrong, do you need to log in as an admin or can you use credentials for researchers?
It was in the wrong order before. The correct documentation is always available at docs.lamp.digital/api â please let me know if you have any requests or find anything amiss there!
script, we are getting 404.api-endpoint-unimplemented, did we deploy our platform wrong or is that some non existing method? Or do we have to create our REST api methods instead?
Please use LAMP.Participant.all_by_study(STUDY_ID_HERE) and LAMP.Study.all_by_researcher(RESEARCHER_ID_HERE) instead. Also if you are admin, you can use LAMP.Researcher.all() to get the list of Researchers on your server.
@sakac Glad your issue was resolved! The me is actually a special variable substitution that only works if you are using credentials tied to a researcher/participant object. (But it is likely to be removed or modified someday since itâs confusing.)