blob: 47ec7654fb1cea7cbf69b407e433a2b6a8c55dbd [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Resource</title>
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Expands&nbsp;a&nbsp;short&nbsp;URL&nbsp;or&nbsp;gets&nbsp;creation&nbsp;time&nbsp;and&nbsp;analytics.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;projection:&nbsp;string,&nbsp;Additional&nbsp;information&nbsp;to&nbsp;return.<br>
&nbsp;&nbsp;&nbsp;&nbsp;Allowed&nbsp;values<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ANALYTICS_CLICKS&nbsp;-&nbsp;Returns&nbsp;only&nbsp;click&nbsp;counts.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ANALYTICS_TOP_STRINGS&nbsp;-&nbsp;Returns&nbsp;only&nbsp;top&nbsp;string&nbsp;counts.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FULL&nbsp;-&nbsp;Returns&nbsp;the&nbsp;creation&nbsp;timestamp&nbsp;and&nbsp;all&nbsp;available&nbsp;analytics.<br>
&nbsp;&nbsp;shortUrl:&nbsp;string,&nbsp;The&nbsp;short&nbsp;URL,&nbsp;including&nbsp;the&nbsp;protocol.&nbsp;(required)</tt></dd></dl>
<dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Creates&nbsp;a&nbsp;new&nbsp;short&nbsp;URL.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;body:&nbsp;object,&nbsp;The&nbsp;request&nbsp;body.&nbsp;(required)</tt></dd></dl>
<dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves&nbsp;a&nbsp;list&nbsp;of&nbsp;URLs&nbsp;shortened&nbsp;by&nbsp;a&nbsp;user.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;start_token:&nbsp;string,&nbsp;Token&nbsp;for&nbsp;requesting&nbsp;successive&nbsp;pages&nbsp;of&nbsp;results.<br>
&nbsp;&nbsp;projection:&nbsp;string,&nbsp;Additional&nbsp;information&nbsp;to&nbsp;return.<br>
&nbsp;&nbsp;&nbsp;&nbsp;Allowed&nbsp;values<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ANALYTICS_CLICKS&nbsp;-&nbsp;Returns&nbsp;short&nbsp;URL&nbsp;click&nbsp;counts.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FULL&nbsp;-&nbsp;Returns&nbsp;short&nbsp;URL&nbsp;click&nbsp;counts.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>