Client for using Keboola Connection Provisioning API. This API client provides credentials to transformation and sanbox databases.
Package is available only on Github, so you need to use devtools
to install the package
library('devtools')
install_github('keboola/provisioning-r-client', ref = 'master')
# create client
client <- ProvisioningClient$new(
backend = 'redshift',
token = 'your-KBC-token'
)
credentials <- client$getCredentials()$credentials
# verify that the credentials actually work
db <- RedshiftDriver$new()
db$connect(
credentials$host,
credentials$db,
credentials$user,
credentials$password,
credentials$schema
)
First argument to ProvisioningClient constructor is database backend, which may be either mysql or redshift. Second argument is Storage API token.
MIT licensed, see LICENSE file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.