0.0.20241027 • Published 9 months ago

@maxim_mazurok/gapi.client.safebrowsing-v5 v0.0.20241027

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

TypeScript typings for Safe Browsing API v5

Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API. For detailed description please check documentation.

Installing

Install typings for Safe Browsing API:

npm install @types/gapi.client.safebrowsing-v5 --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://safebrowsing.googleapis.com/$discovery/rest?version=v5',
  () => {
    // now we can use:
    // gapi.client.safebrowsing
  }
);
// 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('safebrowsing', 'v5', () => {
  // now we can use:
  // gapi.client.safebrowsing
});

After that you can use Safe Browsing API resources:

/*
Search for full hashes matching the specified prefixes. This is a custom method as defined by https://google.aip.dev/136 (the custom method refers to this method having a custom name within Google's general API development nomenclature; it does not refer to using a custom HTTP method).
*/
await gapi.client.safebrowsing.hashes.search({});
0.0.20241027

9 months ago

0.0.20241020

9 months ago

0.0.20241013

9 months ago

0.0.20240929

9 months ago

0.0.20241006

9 months ago

0.0.20240908

10 months ago

0.0.20240922

10 months ago

0.0.20240825

11 months ago

0.0.20240630

1 year ago

0.0.20240804

11 months ago

0.0.20240728

12 months ago

0.0.20240707

1 year ago

0.0.20240609

1 year ago

0.0.20240602

1 year ago

0.0.20240721

12 months ago

0.0.20240623

1 year ago

0.0.20240818

11 months ago

0.0.20240811

11 months ago

0.0.20240713

12 months ago

0.0.20240616

1 year ago

0.0.20240519

1 year ago

0.0.20240512

1 year ago

0.0.20240505

1 year ago

0.0.20240428

1 year ago

0.0.20240421

1 year ago

0.0.20240414

1 year ago

0.0.20240331

1 year ago

0.0.20240324

1 year ago

0.0.20240317

1 year ago

0.0.20240303

1 year ago

0.0.20240225

1 year ago

0.0.20240211

1 year ago

0.0.20240204

1 year ago

0.0.20240128

1 year ago

0.0.20240121

1 year ago

0.0.20240107

1 year ago

0.0.20231210

2 years ago

0.0.20231112

2 years ago

0.0.20231105

2 years ago

0.0.20231029

2 years ago

0.0.20231022

2 years ago

0.0.20231015

2 years ago

0.0.20231008

2 years ago

0.0.20231001

2 years ago

0.0.20230923

2 years ago