README.md

tinkr

Overview

tinkr is an R wrapper for the Tink REST API. Only functions for reading data are implemented at this stage.

Tink is a platform for open banking. Read more at their website Tink.

Prerequisites

Sign up at Tink to create an app. You will get a TINK_CLIENT_ID and a TINK_CLIENT_SECRET. These needs to be set in you R environment.

# Package usethis from CRAN makes it easy to set environment variables
# install.packages("usethis")
usethis::edit_r_environ()

Installation

# Development version from GitHub:
# install.packages("devtools")
devtools::install_github("jacobferlin/tinkr")

Usage

Create a token to authenticate yourself. A web page opens for you login to your bank. The scope argument sets what is downloaded to your app on Tink. The same page then redirects to an empty page, but the url contains a code which needs to be copied to the R console. Supported markets.

library(tinkr)
token <- token(scope = c("transactions", "accounts"), market = "SE")

This token is used to download data from your Tink app.

transactions(token)
accounts(token)


jacobferlin/tinkr documentation built on Dec. 29, 2019, 4:01 p.m.