@adobe/spacecat-shared-google-client
TypeScript icon, indicating that this package has built-in type declarations

1.2.17 • Public • Published

Spacecat Shared - Google Client

The GoogleClient library provides an easy-to-use interface for interacting with Google Search Console APIs. It allows for secure retrieval of organic search data and site listings using OAuth2 authentication, with credentials managed via AWS Secrets Manager.

Installation

Install the package using npm:

npm install @adobe/spacecat-shared-google-client

Environment Variables

Usage

import GoogleClient from '@adobe/spacecat-shared-google-client';

...
 try {
    const googleClient = await GoogleClient.createFrom(context, baseURL);
    const result = await googleClient.getOrganicTrafficData(startDate, endDate);
  } catch (error) {
    // handle error
  }
...

Testing

To run tests:

npm run test

Linting

Lint your code:

npm run lint

Cleaning

To remove node_modules and package-lock.json:

npm run clean

Additional Information

Readme

Keywords

none

Package Sidebar

Install

npm i @adobe/spacecat-shared-google-client

Weekly Downloads

235

Version

1.2.17

License

Apache-2.0

Unpacked Size

51.5 kB

Total Files

9

Last publish

Collaborators

  • mhaack
  • amol-anand
  • doten
  • stopp-adobe
  • dylandepass
  • djaeggi
  • adobehalls
  • fullcolorcoder
  • marbec
  • tripod
  • garthdb
  • lazd
  • adobe-admin
  • patrickfulton
  • trieloff
  • shazron
  • krisnye
  • dcpfsdk
  • natebaldwin
  • devongovett
  • aspro83
  • symanovi
  • dpfister
  • stefan-guggisberg
  • korra
  • rofe
  • kptdobe