# TypeScript typings for Google Play Grouping API v1alpha1

playgrouping.googleapis.com API.
For detailed description please check [documentation](https://cloud.google.com/playgrouping/).

## Installing

Install typings for Google Play Grouping API:

```
npm install @types/gapi.client.playgrouping-v1alpha1 --save-dev
```

## TypeScript 6.0+

TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:

```json
{
  "compilerOptions": {
    "types": [
      "gapi",
      "gapi.auth2",
      "gapi.client",
      "gapi.client.playgrouping-v1alpha1"
    ]
  }
}
```

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

```typescript
// 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('playgrouping', 'v1alpha1', () => {
  // now we can use:
  // gapi.client.playgrouping
});
```

After that you can use Google Play Grouping API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.playgrouping-v1alpha1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
