Skip to content

Commit 581795a

Browse files
committed
- Update documentation
1 parent b6dc21a commit 581795a

File tree

1 file changed

+37
-7
lines changed

1 file changed

+37
-7
lines changed

docs/rfcx/client.html

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ <h2 id="returns">Returns</h2>
6464
<dd>&nbsp;</dd>
6565
</dl></div>
6666
</dd>
67-
<dt id="rfcx.client.Client.authentication"><code class="name flex">
68-
<span>def <span class="ident">authentication</span></span>(<span>self, persist=True, persisted_credentials_path='.rfcx_credentials')</span>
67+
<dt id="rfcx.client.Client.authenticate"><code class="name flex">
68+
<span>def <span class="ident">authenticate</span></span>(<span>self, persist=True, persisted_credentials_path='.rfcx_credentials')</span>
6969
</code></dt>
7070
<dd>
7171
<div class="desc"><p>Authenticate an RFCx user to obtain a token</p>
@@ -180,6 +180,33 @@ <h2 id="args">Args</h2>
180180
<h2 id="returns">Returns</h2>
181181
<p>None.</p></div>
182182
</dd>
183+
<dt id="rfcx.client.Client.projects"><code class="name flex">
184+
<span>def <span class="ident">projects</span></span>(<span>self, keyword=None, created_by=None, only_public=None, only_deleted=None, limit=1000, offset=0)</span>
185+
</code></dt>
186+
<dd>
187+
<div class="desc"><p>Retrieve a list of projects</p>
188+
<h2 id="args">Args</h2>
189+
<dl>
190+
<dt><strong><code>keyword</code></strong></dt>
191+
<dd>(optional, default= None) Match project name with keyword</dd>
192+
<dt><strong><code>created_by</code></strong></dt>
193+
<dd>(optional, default= None) The project owner. Have 3 options: None, me, or collaborator id</dd>
194+
<dt><strong><code>only_public</code></strong></dt>
195+
<dd>(optional, default= None) Return only public projects</dd>
196+
<dt><strong><code>only_deleted</code></strong></dt>
197+
<dd>(optional, default= None) Return only deleted projects</dd>
198+
<dt><strong><code>limit</code></strong></dt>
199+
<dd>(optional, default= 1000) Maximum number of
200+
results to return</dd>
201+
<dt><strong><code>offset</code></strong></dt>
202+
<dd>(optional, default= 0) Number of results to skip</dd>
203+
</dl>
204+
<h2 id="returns">Returns</h2>
205+
<dl>
206+
<dt><code>List</code> of <code>projects</code></dt>
207+
<dd>&nbsp;</dd>
208+
</dl></div>
209+
</dd>
183210
<dt id="rfcx.client.Client.stream_segments"><code class="name flex">
184211
<span>def <span class="ident">stream_segments</span></span>(<span>self, stream, start=None, end=None, limit=50, offset=0)</span>
185212
</code></dt>
@@ -205,7 +232,7 @@ <h2 id="returns">Returns</h2>
205232
</dl></div>
206233
</dd>
207234
<dt id="rfcx.client.Client.streams"><code class="name flex">
208-
<span>def <span class="ident">streams</span></span>(<span>self, organizations=None, projects=None, created_by=None, keyword=None, is_public=True, is_deleted=False, limit=1000, offset=0)</span>
235+
<span>def <span class="ident">streams</span></span>(<span>self, organizations=None, projects=None, created_by=None, name=None, keyword=None, is_public=True, is_deleted=False, limit=1000, offset=0)</span>
209236
</code></dt>
210237
<dd>
211238
<div class="desc"><p>Retrieve a list of streams</p>
@@ -217,17 +244,19 @@ <h2 id="args">Args</h2>
217244
<dd>(optional, default= None) List of project ids</dd>
218245
<dt><strong><code>created_by</code></strong></dt>
219246
<dd>(optional, default= None) The stream owner. Have 3 options: None, me, or collaborators</dd>
247+
<dt><strong><code>name</code></strong></dt>
248+
<dd>(optional, default= None) Match exact streams with name (support *)</dd>
220249
<dt><strong><code>keyword</code></strong></dt>
221-
<dd>(optional, default= None) Match streams name with keyword</dd>
250+
<dd>(optional, default= None) Match stream name with keyword</dd>
222251
<dt><strong><code>is_public</code></strong></dt>
223252
<dd>(optional, default=True) Match public or private streams</dd>
224253
<dt><strong><code>is_deleted</code></strong></dt>
225254
<dd>(optional, default=False) Match deleted streams</dd>
226255
<dt><strong><code>limit</code></strong></dt>
227-
<dd>(optional, default=1000) Maximum number of
256+
<dd>(optional, default= 1000) Maximum number of
228257
results to return</dd>
229258
<dt><strong><code>offset</code></strong></dt>
230-
<dd>(optional, default=0) Number of results to skip</dd>
259+
<dd>(optional, default= 0) Number of results to skip</dd>
231260
</dl>
232261
<h2 id="returns">Returns</h2>
233262
<dl>
@@ -260,11 +289,12 @@ <h1>Index</h1>
260289
<h4><code><a title="rfcx.client.Client" href="#rfcx.client.Client">Client</a></code></h4>
261290
<ul class="">
262291
<li><code><a title="rfcx.client.Client.annotations" href="#rfcx.client.Client.annotations">annotations</a></code></li>
263-
<li><code><a title="rfcx.client.Client.authentication" href="#rfcx.client.Client.authentication">authentication</a></code></li>
292+
<li><code><a title="rfcx.client.Client.authenticate" href="#rfcx.client.Client.authenticate">authenticate</a></code></li>
264293
<li><code><a title="rfcx.client.Client.detections" href="#rfcx.client.Client.detections">detections</a></code></li>
265294
<li><code><a title="rfcx.client.Client.download_audio_file" href="#rfcx.client.Client.download_audio_file">download_audio_file</a></code></li>
266295
<li><code><a title="rfcx.client.Client.download_audio_files" href="#rfcx.client.Client.download_audio_files">download_audio_files</a></code></li>
267296
<li><code><a title="rfcx.client.Client.ingest_file" href="#rfcx.client.Client.ingest_file">ingest_file</a></code></li>
297+
<li><code><a title="rfcx.client.Client.projects" href="#rfcx.client.Client.projects">projects</a></code></li>
268298
<li><code><a title="rfcx.client.Client.stream_segments" href="#rfcx.client.Client.stream_segments">stream_segments</a></code></li>
269299
<li><code><a title="rfcx.client.Client.streams" href="#rfcx.client.Client.streams">streams</a></code></li>
270300
</ul>

0 commit comments

Comments
 (0)