@maxim_mazurok/gapi.client.androiddeviceprovisioning
TypeScript icon, indicating that this package has built-in type declarations

1.0.20220808 • Public • Published

TypeScript typings for Android Device Provisioning Partner API v1

Automates Android zero-touch enrollment for device resellers, customers, and EMMs. For detailed description please check documentation.

Installing

Install typings for Android Device Provisioning Partner API:

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

After that you can use Android Device Provisioning Partner API resources:

/*
Lists the user's customer accounts.
*/
await gapi.client.androiddeviceprovisioning.customers.list({  });

/*
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
*/
await gapi.client.androiddeviceprovisioning.operations.get({ name: "name",  });

Readme

Keywords

none

Package Sidebar

Install

npm i @maxim_mazurok/gapi.client.androiddeviceprovisioning

Weekly Downloads

4

Version

1.0.20220808

License

MIT

Unpacked Size

100 kB

Total Files

6

Last publish

Collaborators

  • maxim_mazurok