Skip to content

Commit bd166bf

Browse files
add /item/remove (#110)
* make /item/remove primary item removal endpoint * update docs
1 parent 494244b commit bd166bf

14 files changed

Lines changed: 67 additions & 29 deletions

docs/.nojekyll

Whitespace-only changes.

docs/genindex.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
<head>
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99

10-
<title>Index &#8212; Plaid Python 2.0.2 documentation</title>
10+
<title>Index &#8212; Plaid Python 2.0.3 documentation</title>
1111

1212
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1313
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1414

1515
<script type="text/javascript">
1616
var DOCUMENTATION_OPTIONS = {
1717
URL_ROOT: './',
18-
VERSION: '2.0.2',
18+
VERSION: '2.0.3',
1919
COLLAPSE_INDEX: false,
2020
FILE_SUFFIX: '.html',
2121
HAS_SOURCE: false,
@@ -224,6 +224,8 @@ <h2 id="R">R</h2>
224224
</li>
225225
</ul></td>
226226
<td style="width: 33%; vertical-align: top;"><ul>
227+
<li><a href="index.html#plaid.api.Item.remove">remove() (plaid.api.Item method)</a>
228+
</li>
227229
<li><a href="index.html#plaid.api.sandbox.Sandbox.Item.Item.reset_login">reset_login() (plaid.api.sandbox.Sandbox.Item.Item method)</a>
228230
</li>
229231
</ul></td>

docs/index.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88

9-
<title>Plaid Python Documentation! &#8212; Plaid Python 2.0.2 documentation</title>
9+
<title>Plaid Python Documentation! &#8212; Plaid Python 2.0.3 documentation</title>
1010

1111
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313

1414
<script type="text/javascript">
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT: './',
17-
VERSION: '2.0.2',
17+
VERSION: '2.0.3',
1818
COLLAPSE_INDEX: false,
1919
FILE_SUFFIX: '.html',
2020
HAS_SOURCE: false,
@@ -535,6 +535,22 @@ <h2>API Endpoints<a class="headerlink" href="#api-endpoints" title="Permalink to
535535
</table>
536536
</dd></dl>
537537

538+
<dl class="method">
539+
<dt id="plaid.api.Item.remove">
540+
<code class="descclassname">Item.</code><code class="descname">remove</code><span class="sig-paren">(</span><em>access_token</em><span class="sig-paren">)</span><a class="headerlink" href="#plaid.api.Item.remove" title="Permalink to this definition"></a></dt>
541+
<dd><p>Remove an item.
542+
(<a class="reference external" href="https://plaid.com/docs/api/#remove-an-item">HTTP docs</a>)</p>
543+
<p>This also deactivates the access_token.</p>
544+
<table class="docutils field-list" frame="void" rules="none">
545+
<col class="field-name" />
546+
<col class="field-body" />
547+
<tbody valign="top">
548+
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>access_token</strong> (<em>str</em>) &#8211; </td>
549+
</tr>
550+
</tbody>
551+
</table>
552+
</dd></dl>
553+
538554
</dd></dl>
539555

540556
<dl class="class">

docs/py-modindex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88

9-
<title>Python Module Index &#8212; Plaid Python 2.0.2 documentation</title>
9+
<title>Python Module Index &#8212; Plaid Python 2.0.3 documentation</title>
1010

1111
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313

1414
<script type="text/javascript">
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT: './',
17-
VERSION: '2.0.2',
17+
VERSION: '2.0.3',
1818
COLLAPSE_INDEX: false,
1919
FILE_SUFFIX: '.html',
2020
HAS_SOURCE: false,

docs/search.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88

9-
<title>Search &#8212; Plaid Python 2.0.2 documentation</title>
9+
<title>Search &#8212; Plaid Python 2.0.3 documentation</title>
1010

1111
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313

1414
<script type="text/javascript">
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT: './',
17-
VERSION: '2.0.2',
17+
VERSION: '2.0.3',
1818
COLLAPSE_INDEX: false,
1919
FILE_SUFFIX: '.html',
2020
HAS_SOURCE: false,

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plaid/api/item.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,16 @@ def delete(self, access_token):
216216
return self.client.post('/item/delete', {
217217
'access_token': access_token,
218218
})
219+
220+
def remove(self, access_token):
221+
'''
222+
Remove an item.
223+
(`HTTP docs <https://plaid.com/docs/api/#remove-an-item>`__)
224+
225+
This also deactivates the access_token.
226+
227+
:param str access_token:
228+
'''
229+
return self.client.post('/item/remove', {
230+
'access_token': access_token,
231+
})

tests/integration/test_accounts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setup_module(module):
1717

1818
def teardown_module(module):
1919
client = create_client()
20-
client.Item.delete(access_token)
20+
client.Item.remove(access_token)
2121

2222

2323
def test_get():

tests/integration/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setup_module(module):
1717

1818
def teardown_module(module):
1919
client = create_client()
20-
client.Item.delete(access_token)
20+
client.Item.remove(access_token)
2121

2222

2323
def test_get():

tests/integration/test_credit_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setup_module(module):
1717

1818
def teardown_module(module):
1919
client = create_client()
20-
client.Item.delete(access_token)
20+
client.Item.remove(access_token)
2121

2222

2323
def test_get():

0 commit comments

Comments
 (0)