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> |
| 25 | volumeId: string, Id of volume to retrieve. (required)</tt></dd></dl> |
| 26 | |
| 27 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Performs a book search.<br> |
| 28 | <br> |
| 29 | Args:<br> |
| 30 | orderBy: string, Sort search results.<br> |
| 31 | Allowed values<br> |
| 32 | newest - Most recently published.<br> |
| 33 | relevance - Relevance to search terms.<br> |
| 34 | filter: string, Filter search results.<br> |
| 35 | Allowed values<br> |
| 36 | ebooks - All Google eBooks.<br> |
| 37 | free-ebooks - Google eBook with full volume text viewability.<br> |
| 38 | full - Public can view entire volume text.<br> |
| 39 | paid-ebooks - Google eBook with a price.<br> |
| 40 | partial - Public able to see parts of text.<br> |
| 41 | projection: string, Restrict information returned to a set of selected fields.<br> |
| 42 | Allowed values<br> |
| 43 | full - Includes all volume data.<br> |
| 44 | lite - Includes a subset of fields in volumeInfo and accessInfo.<br> |
| 45 | source: string, String to identify the originator of this request.<br> |
| 46 | langRestrict: string, Restrict results to books with this language code.<br> |
| 47 | printType: string, Restrict to books or magazines.<br> |
| 48 | Allowed values<br> |
| 49 | all - All volume content types.<br> |
| 50 | books - Just books.<br> |
| 51 | magazines - Just magazines.<br> |
| 52 | maxResults: integer, Maximum number of results to return.<br> |
| 53 | q: string, Full-text search query string. (required)<br> |
| 54 | startIndex: integer, Index of the first result to return (starts at 0)<br> |
| 55 | download: string, Restrict to volumes by download availability.<br> |
| 56 | Allowed values<br> |
| 57 | epub - All volumes with epub.</tt></dd></dl> |
| 58 | |
| 59 | <hr> |
| 60 | Data descriptors defined here:<br> |
| 61 | <dl><dt><strong>__dict__</strong></dt> |
| 62 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 63 | </dl> |
| 64 | <dl><dt><strong>__weakref__</strong></dt> |
| 65 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 66 | </dl> |
| 67 | </td></tr></table> |
| 68 | </body></html> |