You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Please install the package with Julia's package manager:
19
19
## Basic usage
20
20
`CDSAPI.jl` will attempt to use CDS credentials using three different methods with the following priority:
21
21
22
-
1. direct credentials provided via a specific file
22
+
1. direct credentials provided through the scoped values `KEY` and `URL`
23
23
2. environmental variables `CDSAPI_URL` and `CDSAPI_KEY`
24
24
3. default credential file in home directory `~/.cdsapirc`
25
25
@@ -94,28 +94,31 @@ Dict{String,Any} with 6 entries:
94
94
```
95
95
# Multiple credentials
96
96
In case you want to use multiple api-tokens for different requests, you can specify the token to use with each different request.
97
-
To do so you can have multiple versions of a `.cdsapirc` file stored somewhere. These files must be in the same format as the classic `.cdsapirc` file.
98
97
99
-
To use them, parse them and pass the result to the scoped value `CDSAPI.auth`:
98
+
Pass the desired values to the corresponding scoped values `CDSAPI.URL` and `CDSAPI.KEY`:
99
+
If the `URL` or the `KEY` are not specified, the default values obtained from the default methods are used.
0 commit comments