0.0.20240507 • Published 3 days ago

@maxim_mazurok/gapi.client.webfonts-v1 v0.0.20240507

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

TypeScript typings for Web Fonts Developer API v1

The Google Web Fonts Developer API lets you retrieve information about web fonts served by Google. For detailed description please check documentation.

Installing

Install typings for Web Fonts Developer API:

npm install @types/gapi.client.webfonts-v1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load(
  'https://webfonts.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.webfonts
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('webfonts', 'v1', () => {
  // now we can use:
  // gapi.client.webfonts
});

After that you can use Web Fonts Developer API resources:

/*
Retrieves the list of fonts currently served by the Google Fonts Developer API.
*/
await gapi.client.webfonts.webfonts.list({});
0.0.20240507

3 days ago

0.0.20240417

18 days ago

0.0.20240410

25 days ago

0.0.20240403

1 month ago

0.0.20240327

1 month ago

0.0.20240320

2 months ago

0.0.20240319

2 months ago

0.0.20240313

2 months ago

0.0.20240306

2 months ago

0.0.20240228

2 months ago

0.0.20240227

2 months ago

0.0.20240222

3 months ago

0.0.20231213

4 months ago

0.0.20231211

5 months ago

0.0.20231206

5 months ago

0.0.20231122

5 months ago

0.0.20231017

7 months ago

0.0.20231115

6 months ago

0.0.20230607

11 months ago

0.0.20230608

11 months ago

0.0.20230502

1 year ago

0.0.20230621

11 months ago

0.0.20230614

11 months ago

0.0.20230419

1 year ago

0.0.20230306

1 year ago

0.0.20230329

1 year ago

0.0.20230124

1 year ago

0.0.20221206

1 year ago

0.0.20221205

1 year ago

0.0.20220927

2 years ago

0.0.20221004

2 years ago

0.0.20220829

2 years ago

0.0.20220920

2 years ago

0.0.20220904

2 years ago

0.0.20220613

2 years ago