Recipes
Recipes
Query Credit Data using R
Using the Bloom R SDK, authenticate, create consumers and order credit data in R.
In this Recipe
Install the devtools library
Load the Bloom R library
Load credentials
Fetch an Auth Token
Create a new consumer
Order Credit Data
Fetch Credit Data
Congratulations!
💳Open Recipe
R
xxxxxxxxxx
1
install.packages("devtools")
2
library(devtools)
3
4
install_github("bloomcredit/BloomR")
5
library(bloomR)
6
7
client_id <- "<client_id>"
8
client_secret <- "<client_secret>"
9
10
11
auth_token <- fetch_auth_token(
12
client_id = client_id,
13
client_secret = client_secret
14
)
15
16
consumer_info <- list(
17
ssn = "123456789",
18
city = "Scranton",
19
line1 = "1725 Slough Avenue",
20
state_code = "PA",
21
zipcode = "18503",
22
date_of_birth = "1964-03-15",
23
first_name = "Michael",
24
last_name = "Scott",
25
address_primary = TRUE
26
)
27
28
consumer_id <- register_consumer(
29
consumer_info = consumer_info,
30
auth_token = auth_token
31
)
32
33
credit_order <- order_credit_data(
34
consumer_id = consumer_id,
35
portfolio_id = "<portfolio_id>",
36
sku = "<sku>",
37
auth_token = auth_token
38
)
39
40
credit_data <- get_credit_data(
41
order_id = credit_order$data$id,
42
auth_token = auth_token
43
)
44
- 💳
Query Credit Data using R
Using the Bloom R SDK, authenticate, create consumers and order credit data in R.