# @maxim_mazurok/gapi.client.androidmanagement

> TypeScript typings for Android Management API v1

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

## Install

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

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

## Dependencies (1)

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

## Recent versions

- 1.0.20220801 (latest) — 2022-08-09
- 1.0.20220725 — 2022-08-02
- 1.0.20220718 — 2022-07-26
- 1.0.20220711 — 2022-07-21
- 1.0.20220704 — 2022-07-12
- 1.0.20220627 — 2022-07-05
- 1.0.20220613 — 2022-06-21
- 1.0.20220606 — 2022-06-15
- 1.0.20220601 — 2022-06-07
- 1.0.20220524 — 2022-05-25
- 1.0.20220517 — 2022-05-18
- 1.0.20220502 — 2022-05-09
- 1.0.20220425 — 2022-04-26
- 1.0.20220420 — 2022-04-20
- 1.0.20220404 — 2022-04-12
- … 58 more at https://npm.io/package/@maxim_mazurok/gapi.client.androidmanagement/versions

## README

# TypeScript typings for Android Management API v1

The Android Management API provides remote enterprise management of Android devices and apps.
For detailed description please check [documentation](https://developers.google.com/android/management).

## Installing

Install typings for Android Management API:

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

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 = [ 
      // Manage Android devices and apps for your customers
      'https://www.googleapis.com/auth/androidmanagement',
    ],
    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 Android Management API resources:

```typescript

/*
Creates an enterprise. This is the last step in the enterprise signup flow.
*/
await gapi.client.androidmanagement.enterprises.create({  });

/*
Deletes an enterprise. Only available for EMM-managed enterprises.
*/
await gapi.client.androidmanagement.enterprises.delete({ name: "name",  });

/*
Gets an enterprise.
*/
await gapi.client.androidmanagement.enterprises.get({ name: "name",  });

/*
Lists EMM-managed enterprises. Only BASIC fields are returned.
*/
await gapi.client.androidmanagement.enterprises.list({  });

/*
Updates an enterprise.
*/
await gapi.client.androidmanagement.enterprises.patch({ name: "name",  });

/*
Creates an enterprise signup URL.
*/
await gapi.client.androidmanagement.signupUrls.create({  });
```

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