Skip to content

Commit

Permalink
add R function to set provider credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
amattioc committed May 29, 2024
1 parent b670db1 commit 20d8334
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions RJSDMX/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ export("getCodes")
export("addProvider")
export("sdmxHelp")
export("sdmxdf")
export(setProviderCredentials)
importFrom("stats", "setNames")

5 changes: 5 additions & 0 deletions RJSDMX/R/SdmxClient.R
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,8 @@ sdmxdf <- function(tslist, meta=FALSE, id=TRUE){
}
return(ddf)
}

setProviderCredentials <- function(provider, user=.jnull(), pw=.jnull()) {
J('it.bancaditalia.oss.sdmx.client.SdmxClientHandler')$setCredentials(provider, user, pw)
}

16 changes: 16 additions & 0 deletions RJSDMX/man/setProviderCredentials.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
\name{setProviderCredentials}
\alias{setProviderCredentials}
\title{set Credentials for authenticating providers}
\usage{
setProviderCredentials(provider, user=.jnull(), pw=.jnull())
}
\arguments{
\item{provider}{the name of the provider}

\item{user}{the username}

\item{pw}{the password}
}
\description{
Sets the credentials for providers that need authentication
}

0 comments on commit 20d8334

Please sign in to comment.