-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,16 @@ To be able to access the API, you require an API key. If you are not registered | |
|
||
Once you are registered, we encourage you to authenticate your credentials by using the `acled_access()` function. This function allows you to test that your credentials are working as intended and save your credentials in your R environment, thus allowing you to avoid the need to manually input your credentials during each data request. | ||
|
||
```{r} | ||
```{r, eval=FALSE} | ||
acled_access(email = "[email protected]", key = "M3PWwg3DIdhHMuDiilp5") # This is an example, you will need to input your credentials. | ||
``` | ||
|
||
```{r} | ||
acled_access(email = Sys.getenv("EMAIL_ADDRESS_EXAMPLES"), key = ys.getenv("EXAMPLES_KEY")) | ||
``` | ||
|
||
|
||
|
||
If the authentication was successful, you will find a message in the console stating "Authorization accepted". | ||
|
||
## Requesting data from ACLED’s API - `acled_api()` | ||
|