View source: R/authentication.R
authenticate_dhs | R Documentation |
Authenticate Users for DHS website
authenticate_dhs(config)
config |
Object of class 'rdhs_config' as produced by 'read_rdhs_config' that must contain a valid 'email', 'project' and 'password'. |
If the user has more than one project that contains the first 30 characters of the provided project they will be prompted to choose which project they want. This choice will be saved so they do not have to enter it again in this R session.
Returns list of length 3:
user_name: your email usually
user_pass: your password you provided
proj_id: your project number
Credit for some of the function to https://github.com/ajdamico/lodown/blob/master/R/dhs.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.