0.0.20240516 • Published 1 day ago

@maxim_mazurok/gapi.client.androidmanagement-v1 v0.0.20240516

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

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.

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:

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

Then load api client wrapper:

gapi.client.load(
  'https://androidmanagement.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.androidmanagement
  }
);
// 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('androidmanagement', 'v1', () => {
  // now we can use:
  // gapi.client.androidmanagement
});

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

// 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:

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

/*
Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted 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. See also: SigninDetail
*/
await gapi.client.androidmanagement.enterprises.patch({name: 'name'});

/*
Get the device provisioning information by the identifier provided in the sign-in url.
*/
await gapi.client.androidmanagement.provisioningInfo.get({name: 'name'});

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

1 day ago

0.0.20240501

14 days ago

0.0.20240425

26 days ago

0.0.20240416

1 month ago

0.0.20240408

1 month ago

0.0.20240402

1 month ago

0.0.20240325

2 months ago

0.0.20240321

2 months ago

0.0.20240320

2 months ago

0.0.20240313

2 months ago

0.0.20240221

3 months ago

0.0.20240213

3 months ago

0.0.20240207

3 months ago

0.0.20240129

4 months ago

0.0.20240115

4 months ago

0.0.20240108

4 months ago

0.0.20231204

4 months ago

0.0.20231128

6 months ago

0.0.20230731

10 months ago

0.0.20230814

9 months ago

0.0.20231113

6 months ago

0.0.20231030

7 months ago

0.0.20230807

9 months ago

0.0.20230925

8 months ago

0.0.20230724

10 months ago

0.0.20231025

7 months ago

0.0.20230918

8 months ago

0.0.20230717

10 months ago

0.0.20231009

7 months ago

0.0.20230710

10 months ago

0.0.20230911

8 months ago

0.0.20231016

7 months ago

0.0.20230904

8 months ago

0.0.20230828

9 months ago

0.0.20230821

9 months ago

0.0.20230705

11 months ago

0.0.20230628

11 months ago

0.0.20231120

6 months ago

0.0.20231004

8 months ago

0.0.20230619

11 months ago

0.0.20230612

11 months ago

0.0.20230517

1 year ago

0.0.20230508

1 year ago

0.0.20230522

12 months ago

0.0.20230424

1 year ago

0.0.20230605

11 months ago

0.0.20230529

12 months ago

0.0.20230313

1 year ago

0.0.20230418

1 year ago

0.0.20230301

1 year ago

0.0.20230403

1 year ago

0.0.20230227

1 year ago

0.0.20230327

1 year ago

0.0.20230308

1 year ago

0.0.20230217

1 year ago

0.0.20230123

1 year ago

0.0.20230130

1 year ago

0.0.20230213

1 year ago

0.0.20230116

1 year ago

0.0.20221212

1 year ago

0.0.20230119

1 year ago

0.0.20221121

1 year ago

0.0.20221108

2 years ago

0.0.20221118

1 year ago

0.0.20221205

1 year ago

0.0.20221128

1 year ago

0.0.20221017

2 years ago

0.0.20221003

2 years ago

0.0.20221024

2 years ago

0.0.20221010

2 years ago

0.0.20220926

2 years ago

0.0.20220829

2 years ago

0.0.20220921

2 years ago

0.0.20220823

2 years ago

0.0.20220913

2 years ago

0.0.20220815

2 years ago

0.0.20220808

2 years ago

0.0.20220801

2 years ago