1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="mybusinessbusinessinformation_v1.html">My Business Business Information API</a> . <a href="mybusinessbusinessinformation_v1.categories.html">categories</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#batchGet">batchGet(languageCode=None, names=None, regionCode=None, view=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Returns a list of business categories for the provided language and GConcept ids.</p> 80<p class="toc_element"> 81 <code><a href="#close">close()</a></code></p> 82<p class="firstline">Close httplib2 connections.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(filter=None, languageCode=None, pageSize=None, pageToken=None, regionCode=None, view=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Returns a list of business categories. Search will match the category name but not the category ID. Search only matches the front of a category name (that is, 'food' may return 'Food Court' but not 'Fast Food Restaurant').</p> 86<p class="toc_element"> 87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 88<p class="firstline">Retrieves the next page of results.</p> 89<h3>Method Details</h3> 90<div class="method"> 91 <code class="details" id="batchGet">batchGet(languageCode=None, names=None, regionCode=None, view=None, x__xgafv=None)</code> 92 <pre>Returns a list of business categories for the provided language and GConcept ids. 93 94Args: 95 languageCode: string, Required. The BCP 47 code of language that the category names should be returned in. 96 names: string, Required. At least one name must be set. The GConcept ids the localized category names should be returned for. To return details for more than one category, repeat this parameter in the request. (repeated) 97 regionCode: string, Optional. The ISO 3166-1 alpha-2 country code used to infer non-standard language. 98 view: string, Required. Specifies which parts to the Category resource should be returned in the response. 99 Allowed values 100 CATEGORY_VIEW_UNSPECIFIED - Not specified, equivalent to CATEGORY_METADATA_ONLY. 101 BASIC - The server response will only include Category fields display_name, category_id and language_code. It omits any service type metadata related fields. 102 FULL - Returns all the fields in the response. 103 x__xgafv: string, V1 error format. 104 Allowed values 105 1 - v1 error format 106 2 - v2 error format 107 108Returns: 109 An object of the form: 110 111 { # Response message for BusinessCategories.BatchGetBusinessCategories. 112 "categories": [ # Categories that match the GConcept ids provided in the request. They will not come in the same order as category ids in the request. 113 { # A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see `categories.list`. 114 "displayName": "A String", # Output only. The human-readable name of the category. This is set when reading the location. When modifying the location, `category_id` must be set. 115 "moreHoursTypes": [ # Output only. More hours types that are available for this business category. 116 { # More hours types that a business can offers, in addition to its regular hours. 117 "displayName": "A String", # Output only. The human-readable English display name for the hours type. 118 "hoursTypeId": "A String", # Output only. A stable ID provided by Google for this hours type. 119 "localizedDisplayName": "A String", # Output only. The human-readable localized display name for the hours type. 120 }, 121 ], 122 "name": "A String", # Required. A stable ID (provided by Google) for this category. The value must be specified when modifying the category (when creating or updating a location). 123 "serviceTypes": [ # Output only. A list of all the service types that are available for this business category. 124 { # A message describing a service type that the business offers. 125 "displayName": "A String", # Output only. The human-readable display name for the service type. 126 "serviceTypeId": "A String", # Output only. A stable ID (provided by Google) for this service type. 127 }, 128 ], 129 }, 130 ], 131}</pre> 132</div> 133 134<div class="method"> 135 <code class="details" id="close">close()</code> 136 <pre>Close httplib2 connections.</pre> 137</div> 138 139<div class="method"> 140 <code class="details" id="list">list(filter=None, languageCode=None, pageSize=None, pageToken=None, regionCode=None, view=None, x__xgafv=None)</code> 141 <pre>Returns a list of business categories. Search will match the category name but not the category ID. Search only matches the front of a category name (that is, 'food' may return 'Food Court' but not 'Fast Food Restaurant'). 142 143Args: 144 filter: string, Optional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`. 145 languageCode: string, Required. The BCP 47 code of language. 146 pageSize: integer, Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100. 147 pageToken: string, Optional. If specified, the next page of categories will be fetched. 148 regionCode: string, Required. The ISO 3166-1 alpha-2 country code. 149 view: string, Required. Specifies which parts to the Category resource should be returned in the response. 150 Allowed values 151 CATEGORY_VIEW_UNSPECIFIED - Not specified, equivalent to CATEGORY_METADATA_ONLY. 152 BASIC - The server response will only include Category fields display_name, category_id and language_code. It omits any service type metadata related fields. 153 FULL - Returns all the fields in the response. 154 x__xgafv: string, V1 error format. 155 Allowed values 156 1 - v1 error format 157 2 - v2 error format 158 159Returns: 160 An object of the form: 161 162 { # Response message for BusinessCategories.ListCategories. 163 "categories": [ # The matching categories based on the requested parameters. 164 { # A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see `categories.list`. 165 "displayName": "A String", # Output only. The human-readable name of the category. This is set when reading the location. When modifying the location, `category_id` must be set. 166 "moreHoursTypes": [ # Output only. More hours types that are available for this business category. 167 { # More hours types that a business can offers, in addition to its regular hours. 168 "displayName": "A String", # Output only. The human-readable English display name for the hours type. 169 "hoursTypeId": "A String", # Output only. A stable ID provided by Google for this hours type. 170 "localizedDisplayName": "A String", # Output only. The human-readable localized display name for the hours type. 171 }, 172 ], 173 "name": "A String", # Required. A stable ID (provided by Google) for this category. The value must be specified when modifying the category (when creating or updating a location). 174 "serviceTypes": [ # Output only. A list of all the service types that are available for this business category. 175 { # A message describing a service type that the business offers. 176 "displayName": "A String", # Output only. The human-readable display name for the service type. 177 "serviceTypeId": "A String", # Output only. A stable ID (provided by Google) for this service type. 178 }, 179 ], 180 }, 181 ], 182 "nextPageToken": "A String", # If the number of categories exceeded the requested page size, this field will be populated with a token to fetch the next page of categories on a subsequent call to `ListCategories`. 183}</pre> 184</div> 185 186<div class="method"> 187 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 188 <pre>Retrieves the next page of results. 189 190Args: 191 previous_request: The request for the previous page. (required) 192 previous_response: The response from the request for the previous page. (required) 193 194Returns: 195 A request object that you can call 'execute()' on to request the next 196 page. Returns None if there are no more items in the collection. 197 </pre> 198</div> 199 200</body></html>