6.0.0 • Published 5 years ago
@datafire/google_webfonts v6.0.0
@datafire/google_webfonts
Client library for Web Fonts Developer API
Installation and Usage
npm install --save @datafire/google_webfonts
let google_webfonts = require('@datafire/google_webfonts').create();
.then(data => {
console.log(data);
});
Description
The Google Web Fonts Developer API lets you retrieve information about web fonts served by Google.
Actions
webfonts.webfonts.list
Retrieves the list of fonts currently served by the Google Fonts Developer API.
google_webfonts.webfonts.webfonts.list({}, context)
Input
- input
object
- sort
string
(values: SORT_UNDEFINED, ALPHA, DATE, POPULARITY, STYLE, TRENDING): Enables sorting of the list. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- sort
Output
- output WebfontList
Definitions
Webfont
- Webfont
object
: Metadata describing a family of fonts.- category
string
: The category of the font. - family
string
: The name of the font. - files
object
: The font files (with all supported scripts) for each one of the available variants, as a key : value map. - kind
string
: This kind represents a webfont object in the webfonts service. - lastModified
string
: The date (format "yyyy-MM-dd") the font was modified for the last time. - subsets
array
: The scripts supported by the font.- items
string
- items
- variants
array
: The available variants for the font.- items
string
- items
- version
string
: The font version.
- category
WebfontList
- WebfontList
object
: Response containing the list of fonts currently served by the Google Fonts API.- items
array
: The list of fonts currently served by the Google Fonts API.- items Webfont
- kind
string
: This kind represents a list of webfont objects in the webfonts service.
- items