Skip to content

Commit 2b0362b

Browse files
committed
update docs
1 parent 753e539 commit 2b0362b

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ print(auth_token)
5555
Just a reference function for pulling the list of portfolios for the current organization.
5656
```
5757
portfolio_id, response = bloom.get_portfolios(
58-
audience=<audience>,
5958
auth_token=auth_token
6059
)
6160
```
@@ -75,7 +74,6 @@ consumer_info = {
7574
}
7675
7776
consumer_id, response = bloom.register_consumer(
78-
audience="<audience>",
7977
consumer_info=consumer_info,
8078
auth_token=auth_token
8179
)
@@ -84,7 +82,6 @@ consumer_id, response = bloom.register_consumer(
8482
### Order Credit Data
8583
```
8684
credit_order, response = bloom.order_credit_data(
87-
audience='<audience>',
8885
consumer_id=consumer_id,
8986
portfolio_id=portfolio_id,
9087
sku="equifax-gold-soft-fico-internet",
@@ -96,9 +93,8 @@ credit_order, response = bloom.order_credit_data(
9693
If you use the outfile parameter, it will save the response from Bloom Credit into the given filepath.
9794
```
9895
credit_data, response = bloom.get_credit_data(
99-
audience="<audience>",
10096
order_id=credit_order,
10197
auth_token=auth_token,
102-
outfile="/path/to/file.json"
98+
outfile="credit_data.json"
10399
)
104100
```

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
HERE = pathlib.Path(__file__).parent
55

6-
VERSION = '0.1.7'
6+
VERSION = '0.1.9'
77
PACKAGE_NAME = 'bloomcredit-python'
88
AUTHOR = 'Glenn'
99
AUTHOR_EMAIL = '[email protected]'

src/bloom/bloom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def get_portfolios(auth_token, audience=None):
125125
# register_consumer
126126
# -----------------------------------------------------------------------------
127127

128-
def register_consumer(audience, consumer_info, auth_token):
128+
def register_consumer(consumer_info, auth_token, audience=None):
129129
""" Consumers are representations of persons within the Bloom API.
130130
To order a credit report for a consumer, you first need to submit their information to Bloom.
131131
https://developers.bloomcredit.io/docs/onboarding-to-first-credit-report#creating-a-consumer
@@ -168,7 +168,7 @@ def register_consumer(audience, consumer_info, auth_token):
168168
# -----------------------------------------------------------------------------
169169
# order_credit_data
170170
# -----------------------------------------------------------------------------
171-
def order_credit_data(audience, consumer_id, portfolio_id, sku, auth_token):
171+
def order_credit_data(consumer_id, portfolio_id, sku, auth_token, audience=None):
172172
""" Once your consumer is created, you can order a credit report via the
173173
Bloom API. This order will be made for Bloom to fetch the credit report
174174
for your order.
@@ -218,7 +218,7 @@ def order_credit_data(audience, consumer_id, portfolio_id, sku, auth_token):
218218
# get_credit_data
219219
# -----------------------------------------------------------------------------
220220

221-
def get_credit_data(audience, order_id, auth_token, outfile=None):
221+
def get_credit_data(order_id, auth_token, audience=None, outfile=None):
222222

223223
if coalesce(audience, os.getenv('BLOOM_AUDIENCE')) == 'dev-api':
224224
url = os.getenv('BLOOM_SANDBOX_ORDERS_URL')

0 commit comments

Comments
 (0)