67 lines
6.8 KiB
HTML
67 lines
6.8 KiB
HTML
|
|
<!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> <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> </tt></td>
|
|
<td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr>
|
|
<tr><td> </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-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists web properties to which the user has access.<br>
|
|
<br>
|
|
Args:<br>
|
|
max_results: integer, The maximum number of web properties to include in this response.<br>
|
|
start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.<br>
|
|
accountId: string, Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to. (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"username": "A String", # Email ID of the authenticated user<br>
|
|
"kind": "analytics#webproperties", # Collection type.<br>
|
|
"items": [ # A list of web properties.<br>
|
|
{<br>
|
|
"kind": "analytics#webproperty", # Resource type for Analytics WebProperty.<br>
|
|
"name": "A String", # Name of this web property.<br>
|
|
"created": "A String", # Time this web property was created.<br>
|
|
"updated": "A String", # Time this web property was last modified.<br>
|
|
"websiteUrl": "A String", # Website url for this web property.<br>
|
|
"internalWebPropertyId": "A String", # Internal ID for this web property.<br>
|
|
"childLink": { # Child link for this web property. Points to the list of profiles for this web property.<br>
|
|
"href": "A String", # Link to the list of profiles for this web property.<br>
|
|
"type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles".<br>
|
|
},<br>
|
|
"parentLink": { # Parent link for this web property. Points to the account to which this web property belongs.<br>
|
|
"href": "A String", # Link to the account for this web property.<br>
|
|
"type": "analytics#account", # Type of the parent link. Its value is "analytics#account".<br>
|
|
},<br>
|
|
"id": "A String", # Web property ID of the form UA-XXXXX-YY.<br>
|
|
"selfLink": "A String", # Link for this web property.<br>
|
|
"accountId": "A String", # Account ID to which this web property belongs.<br>
|
|
},<br>
|
|
],<br>
|
|
"itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.<br>
|
|
"previousLink": "A String", # Link to previous page for this web property collection.<br>
|
|
"startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.<br>
|
|
"nextLink": "A String", # Link to next page for this web property collection.<br>
|
|
"totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
</td></tr></table>
|
|
</body></html> |