# @maxim_mazurok/gapi.client.testing

> TypeScript typings for Cloud Testing API v1

Latest version **1.0.20220806** (published 2022-08-09) · MIT license · 0 weekly downloads

## Install

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

## 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.20220806 |
| Published | 2022-08-09 |
| First published | 2020-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 58.4 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.testing
- 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.testing

## Dependencies (1)

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

## Recent versions

- 1.0.20220806 (latest) — 2022-08-09
- 1.0.20220726 — 2022-07-26
- 1.0.20220712 — 2022-07-19
- 1.0.20220705 — 2022-07-12
- 1.0.20220623 — 2022-06-28
- 1.0.20220614 — 2022-06-22
- 1.0.20220608 — 2022-06-08
- 1.0.20220531 — 2022-06-08
- 1.0.20220524 — 2022-06-01
- 1.0.20220517 — 2022-05-25
- 1.0.20220510 — 2022-05-17
- 1.0.20220426 — 2022-05-03
- 1.0.20220419 — 2022-04-26
- 1.0.20220411 — 2022-04-19
- 1.0.20220404 — 2022-04-12
- … 62 more at https://npm.io/package/@maxim_mazurok/gapi.client.testing/versions

## README

# TypeScript typings for Cloud Testing API v1

Allows developers to run automated tests for their mobile applications on Google infrastructure.
For detailed description please check [documentation](https://developers.google.com/cloud-test-lab/).

## Installing

Install typings for Cloud Testing API:

```
npm install @types/gapi.client.testing@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('testing', 'v1', () => {
  // now we can use gapi.client.testing
  // ...
});
```

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',

      // View your data across Google Cloud services and see the email address of your Google Account
      'https://www.googleapis.com/auth/cloud-platform.read-only',
    ],
    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 Cloud Testing API resources:

```typescript

/*
Gets the details of an Android application APK.
*/
await gapi.client.testing.applicationDetailService.getApkDetails({  });

/*
Gets the catalog of supported test environments. May return any of the following canonical error codes: - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the environment type does not exist - INTERNAL - if an internal error occurred
*/
await gapi.client.testing.testEnvironmentCatalog.get({ environmentType: "environmentType",  });
```

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