@@ -212,6 +212,61 @@ export namespace webfonts_v1 {
212212
213213 /**
214214 * Retrieves the list of fonts currently served by the Google Fonts Developer API.
215+ * @example
216+ * ```js
217+ * // Before running the sample:
218+ * // - Enable the API at:
219+ * // https://console.developers.google.com/apis/api/webfonts.googleapis.com
220+ * // - Login into gcloud by running:
221+ * // ```sh
222+ * // $ gcloud auth application-default login
223+ * // ```
224+ * // - Install the npm module by running:
225+ * // ```sh
226+ * // $ npm install googleapis
227+ * // ```
228+ *
229+ * const {google} = require('googleapis');
230+ * const webfonts = google.webfonts('v1');
231+ *
232+ * async function main() {
233+ * const auth = new google.auth.GoogleAuth({
234+ * // Scopes can be specified either as an array or as a single, space-delimited string.
235+ * scopes: [],
236+ * });
237+ *
238+ * // Acquire an auth client, and bind it to all future calls
239+ * const authClient = await auth.getClient();
240+ * google.options({auth: authClient});
241+ *
242+ * // Do the magic
243+ * const res = await webfonts.webfonts.list({
244+ * // Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.
245+ * capability: 'placeholder-value',
246+ * // Filters by Webfont.category, if category is found in Webfont.categories. If not set, returns all families.
247+ * category: 'placeholder-value',
248+ * // Filters by Webfont.family, using literal match. If not set, returns all families
249+ * family: 'placeholder-value',
250+ * // Enables sorting of the list.
251+ * sort: 'placeholder-value',
252+ * // Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
253+ * subset: 'placeholder-value',
254+ * });
255+ * console.log(res.data);
256+ *
257+ * // Example response
258+ * // {
259+ * // "items": [],
260+ * // "kind": "my_kind"
261+ * // }
262+ * }
263+ *
264+ * main().catch(e => {
265+ * console.error(e);
266+ * throw e;
267+ * });
268+ *
269+ * ```
215270 *
216271 * @param params - Parameters for request
217272 * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
0 commit comments