76 lines
5.8 KiB
HTML
76 lines
5.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-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets volume information for a single volume.<br>
|
|
<br>
|
|
Args:<br>
|
|
projection: string, Restrict information returned to a set of selected fields.<br>
|
|
Allowed values<br>
|
|
full - Includes all volume data.<br>
|
|
lite - Includes a subset of fields in volumeInfo and accessInfo.<br>
|
|
source: string, String to identify the originator of this request.<br>
|
|
country: string, ISO-3166-1 code to override the IP-based location.<br>
|
|
volumeId: string, Id of volume to retrieve. (required)<br>
|
|
partner: string, Identifier of partner for whom to brand results.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Performs a book search.<br>
|
|
<br>
|
|
Args:<br>
|
|
orderBy: string, Sort search results.<br>
|
|
Allowed values<br>
|
|
newest - Most recently published.<br>
|
|
relevance - Relevance to search terms.<br>
|
|
filter: string, Filter search results.<br>
|
|
Allowed values<br>
|
|
ebooks - All Google eBooks.<br>
|
|
free-ebooks - Google eBook with full volume text viewability.<br>
|
|
full - Public can view entire volume text.<br>
|
|
paid-ebooks - Google eBook with a price.<br>
|
|
partial - Public able to see parts of text.<br>
|
|
projection: string, Restrict information returned to a set of selected fields.<br>
|
|
Allowed values<br>
|
|
full - Includes all volume data.<br>
|
|
lite - Includes a subset of fields in volumeInfo and accessInfo.<br>
|
|
libraryRestrict: string, Restrict search to this user's library.<br>
|
|
Allowed values<br>
|
|
my-library - Restrict to the user's library, any shelf.<br>
|
|
no-restrict - Do not restrict based on user's library.<br>
|
|
source: string, String to identify the originator of this request.<br>
|
|
langRestrict: string, Restrict results to books with this language code.<br>
|
|
country: string, ISO-3166-1 code to override the IP-based location.<br>
|
|
printType: string, Restrict to books or magazines.<br>
|
|
Allowed values<br>
|
|
all - All volume content types.<br>
|
|
books - Just books.<br>
|
|
magazines - Just magazines.<br>
|
|
startIndex: integer, Index of the first result to return (starts at 0)<br>
|
|
maxResults: integer, Maximum number of results to return.<br>
|
|
q: string, Full-text search query string. (required)<br>
|
|
partner: string, Identifier of partner for whom to restrict and brand results.<br>
|
|
download: string, Restrict to volumes by download availability.<br>
|
|
Allowed values<br>
|
|
epub - All volumes with epub.</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> |