Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <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> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
| 17 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets volume information for a single volume.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | projection: string, Restrict information returned to a set of selected fields.<br> |
| 21 | Allowed values<br> |
| 22 | full - Includes all volume data.<br> |
| 23 | lite - Includes a subset of fields in volumeInfo and accessInfo.<br> |
| 24 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 25 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 26 | volumeId: string, Id of volume to retrieve. (required)<br> |
| 27 | partner: string, Identifier of partner for whom to brand results.</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 28 | |
| 29 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Performs a book search.<br> |
| 30 | <br> |
| 31 | Args:<br> |
| 32 | orderBy: string, Sort search results.<br> |
| 33 | Allowed values<br> |
| 34 | newest - Most recently published.<br> |
| 35 | relevance - Relevance to search terms.<br> |
| 36 | filter: string, Filter search results.<br> |
| 37 | Allowed values<br> |
| 38 | ebooks - All Google eBooks.<br> |
| 39 | free-ebooks - Google eBook with full volume text viewability.<br> |
| 40 | full - Public can view entire volume text.<br> |
| 41 | paid-ebooks - Google eBook with a price.<br> |
| 42 | partial - Public able to see parts of text.<br> |
| 43 | projection: string, Restrict information returned to a set of selected fields.<br> |
| 44 | Allowed values<br> |
| 45 | full - Includes all volume data.<br> |
| 46 | lite - Includes a subset of fields in volumeInfo and accessInfo.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 47 | libraryRestrict: string, Restrict search to this user's library.<br> |
| 48 | Allowed values<br> |
| 49 | my-library - Restrict to the user's library, any shelf.<br> |
| 50 | no-restrict - Do not restrict based on user's library.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 51 | source: string, String to identify the originator of this request.<br> |
| 52 | langRestrict: string, Restrict results to books with this language code.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 53 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 54 | printType: string, Restrict to books or magazines.<br> |
| 55 | Allowed values<br> |
| 56 | all - All volume content types.<br> |
| 57 | books - Just books.<br> |
| 58 | magazines - Just magazines.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 59 | startIndex: integer, Index of the first result to return (starts at 0)<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 60 | maxResults: integer, Maximum number of results to return.<br> |
| 61 | q: string, Full-text search query string. (required)<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 62 | partner: string, Identifier of partner for whom to restrict and brand results.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 63 | download: string, Restrict to volumes by download availability.<br> |
| 64 | Allowed values<br> |
| 65 | epub - All volumes with epub.</tt></dd></dl> |
| 66 | |
| 67 | <hr> |
| 68 | Data descriptors defined here:<br> |
| 69 | <dl><dt><strong>__dict__</strong></dt> |
| 70 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 71 | </dl> |
| 72 | <dl><dt><strong>__weakref__</strong></dt> |
| 73 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 74 | </dl> |
| 75 | </td></tr></table> |
| 76 | </body></html> |