@@ -91,7 +91,7 @@ response = client.connect('bofa', {
91
91
})
92
92
93
93
if response.ok:
94
- content = json.loads( response.content )
94
+ user = response.json( )
95
95
else :
96
96
# handle non-20x status codes
97
97
```
@@ -107,8 +107,8 @@ from plaid.utils import json
107
107
108
108
109
109
client = Client()
110
- institutions = json.loads( client.institutions().content )
111
- categories = json.loads( client.categories().content )
110
+ institutions = client.institutions().json( )
111
+ categories = client.categories().json( )
112
112
```
113
113
114
114
### Authenticated Endpoints
134
134
except plaid_errors.PlaidError:
135
135
pass
136
136
else :
137
- connect_data = json.loads( response.content )
137
+ connect_data = response.json( )
138
138
```
139
139
140
140
### MFA add Connect User
@@ -158,11 +158,11 @@ except plaid_errors.PlaidError, e:
158
158
else :
159
159
if response.status_code == 200 :
160
160
# User connected
161
- data = json.loads( response.content )
161
+ data = response.json( )
162
162
elif response.stat_code == 201 :
163
163
# MFA required
164
164
try :
165
- mfa_response = answer_mfa(json.loads( response.content ))
165
+ mfa_response = answer_mfa(response.json( ))
166
166
except plaid_errors.PlaidError, e:
167
167
pass
168
168
else :
@@ -281,7 +281,7 @@ User previously Auth-ed
281
281
282
282
``` python
283
283
client = Client(client_id = ' ***' , secret = ' ***' , access_token = ' usertoken' )
284
- accounts = json.loads( client.auth_get().content )
284
+ accounts = client.auth_get().json( )
285
285
```
286
286
287
287
### Get Account Balances
@@ -295,14 +295,42 @@ response = client.balance()
295
295
296
296
### Get Transactions
297
297
298
- User previously Connected -ed
298
+ User previously Connect -ed
299
299
300
300
``` python
301
301
client = Client(client_id = ' ***' , secret = ' ***' , access_token = ' usertoken' )
302
302
response = client.connect_get()
303
- json.loads( response.content )
303
+ transactions = response.json( )
304
304
```
305
305
306
+ ### Get Info
307
+
308
+ User previously Info-ed
309
+
310
+ ``` python
311
+ client = Client(client_id = ' ***' , secret = ' ***' , access_token = ' usertoken' )
312
+ response = client.info_get()
313
+ info = response.json()
314
+ ```
315
+
316
+ ### Get Income
317
+
318
+ User previously Income-ed
319
+
320
+ ``` python
321
+ client = Client(client_id = ' ***' , secret = ' ***' , access_token = ' usertoken' )
322
+ response = client.income_get()
323
+ income = response.json()
324
+ ```
325
+ ### Get Risk
326
+
327
+ User previously Risk-ed
328
+
329
+ ``` python
330
+ client = Client(client_id = ' ***' , secret = ' ***' , access_token = ' usertoken' )
331
+ response = client.risk_get()
332
+ risk = response.json()
333
+ ```
306
334
## Attribution & Maintenance
307
335
308
336
This repository was originally authored by [ Chris Forrette] ( https://github.com/chrisforrette ) .
@@ -327,8 +355,8 @@ $ make test
327
355
[ MIT] [ 6 ]
328
356
329
357
[ 1 ] : https://plaid.com
330
- [ 2 ] : https://plaid.com/docs
331
- [ 3 ] : https://plaid.com/docs/#response-codes
358
+ [ 2 ] : https://plaid.com/docs/api
359
+ [ 3 ] : https://plaid.com/docs/api/ #response-codes
332
360
[ 4 ] : https://github.com/plaid/link
333
361
[ 5 ] : https://github.com/plaid/plaid-python/issues/new
334
362
[ 6 ] : https://github.com/plaid/plaid-python/blob/master/LICENSE
0 commit comments