# @maxim_mazurok/gapi.client.privateca

> TypeScript typings for Certificate Authority API v1

Latest version **1.0.20220804** (published 2022-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maxim_mazurok/gapi.client.privateca
pnpm add @maxim_mazurok/gapi.client.privateca
yarn add @maxim_mazurok/gapi.client.privateca
bun add @maxim_mazurok/gapi.client.privateca
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.20220804 |
| Published | 2022-08-10 |
| First published | 2020-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 188.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 59 |
| Author | Maxim Mazurok |
| Maintainers | maxim_mazurok |

## Links

- npm: https://www.npmjs.com/package/@maxim_mazurok/gapi.client.privateca
- Repository: https://github.com/Maxim-Mazurok/google-api-typings-generator
- Homepage: https://github.com/Maxim-Mazurok/google-api-typings-generator#readme
- Issues: https://github.com/Maxim-Mazurok/google-api-typings-generator/issues
- npm.io page: https://npm.io/package/@maxim_mazurok/gapi.client.privateca

## Dependencies (1)

- [@types/gapi.client](https://npm.io/package/@types/gapi.client.md) *

## Recent versions

- 1.0.20220804 (latest) — 2022-08-10
- 1.0.20220728 — 2022-08-03
- 1.0.20220707 — 2022-07-12
- 1.0.20220623 — 2022-06-28
- 1.0.20220609 — 2022-06-14
- 1.0.20220602 — 2022-06-08
- 1.0.20220526 — 2022-05-29
- 1.0.20220504 — 2022-05-10
- 1.0.20220427 — 2022-05-03
- 1.0.20220406 — 2022-04-13
- 1.0.20220323 — 2022-03-29
- 1.0.20220309 — 2022-03-15
- 1.0.20220223 — 2022-03-01
- 1.0.20220209 — 2022-02-15
- 1.0.20220202 — 2022-02-08
- … 46 more at https://npm.io/package/@maxim_mazurok/gapi.client.privateca/versions

## README

# TypeScript typings for Certificate Authority API v1

The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys. 
For detailed description please check [documentation](https://cloud.google.com/).

## Installing

Install typings for Certificate Authority API:

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

## Usage

You need to initialize Google API client in your code:

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

Then load api client wrapper:

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

Don't forget to authenticate your client before sending any request to resources:

```typescript
// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [ 
      // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
      'https://www.googleapis.com/auth/cloud-platform',
    ],
    immediate = true;
// ...

gapi.auth.authorize(
  { client_id: client_id, scope: scope, immediate: immediate },
  authResult => {
    if (authResult && !authResult.error) {
        /* handle successful authorization */
    } else {
        /* handle authorization error */
    }
});
```

After that you can use Certificate Authority API resources:

```typescript
```

---
_Source: https://npm.io/package/@maxim_mazurok/gapi.client.privateca · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
