-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding ability to get survey URL #293
Comments
@Stephonomon I'm about to push an untested version called Will you give it a shot and tell me if it does what you want? # Install the dev branch
remotes::install_github(repo="OuhscBbmc/REDCapR", ref="dev") Here's an example from the documentation uri <- "https://bbmc.ouhsc.edu/redcap/api/"
token <- "8FA9A6BDAE2C0B5DD3CB472DD8E8918C" #pid=817
record <- 1
instrument <- "participant_morale_questionnaire"
result <- REDCapR::redcap_survey_link_export_oneshot(
record = record,
instrument = instrument,
redcap_uri = uri,
token = token
)
## Preparing to export the survey link for the instrument `participant_morale_questionnaire`.
## exported the survey link in 0.6 seconds, for instrument `participant_morale_questionnaire`, record `1`.
result$survey_link
## "https://bbmc.ouhsc.edu/redcap/surveys/?s=8KuzSLMHf6" |
This secondary issue about the 'remotes' package has been moved to #295 (edited by @wibeasley)
-------
I tried installing but received an error message.
remotes::install_github(repo="OuhscBbmc/REDCapR", ref="dev")Error: Failed to install 'REDCapR' from GitHub:
HTTP error 401.
Bad credentials
Rate limit remaining: 59/60
Rate limit reset at: 2020-02-02 05:16:23 UTC
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the behavior
Is it possible to write a function that allows the requester to return the survey url for the record?
The text was updated successfully, but these errors were encountered: