npm package '@maxim_mazurok/gapi.client.androiddeviceprovisioning-v1'

Popularity: Low
Description: TypeScript typings for Android Device Provisioning Partner API v1
Installation: npm install @maxim_mazurok/gapi.client.androiddeviceprovisioning-v1
Last version: 0.0.20221122 (Download)
Homepage: https://github.com/Maxim-Mazurok/google-api-typings-generator#readme
Size: 109.81 kB
License: MIT

Activity

Last modified: November 23, 2022 5:18 PM (a day ago)
Versions released in one year: 31
Weekly downloads: 8
08/07/2022025507510001234released versions / week
  • Versions released
  • Weekly downloads

Readme

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

After that you can use Android Device Provisioning Partner API resources: <!-- TODO: make this work for multiple namespaces -->


/*
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",  });