1.0.20220804 • Published 2 years ago

@maxim_mazurok/gapi.client.gameservices v1.0.20220804

Weekly downloads
29
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for Game Services API v1

Deploy and manage infrastructure for global multiplayer gaming experiences. For detailed description please check documentation.

Installing

Install typings for Game Services API:

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

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 = [ 
      // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
      'https://www.googleapis.com/auth/cloud-platform',
    ],
    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 Game Services API resources:

1.0.20220707

2 years ago

1.0.20220623

2 years ago

1.0.20220715

2 years ago

1.0.20220719

2 years ago

1.0.20220728

2 years ago

1.0.20220804

2 years ago

1.0.20220609

2 years ago

1.0.20220504

2 years ago

1.0.20220427

2 years ago

1.0.20220518

2 years ago

1.0.20220602

2 years ago

1.0.20220420

2 years ago

1.0.20220323

2 years ago

1.0.20220406

2 years ago

1.0.20220413

2 years ago

1.0.20220223

2 years ago

1.0.20220308

2 years ago

1.0.20220228

2 years ago

1.0.20220216

2 years ago

1.0.20220107

2 years ago

1.0.20220118

2 years ago

1.0.20211213

2 years ago

1.0.20220126

2 years ago

1.0.20220202

2 years ago

1.0.20211112

3 years ago

1.0.20211206

2 years ago

1.0.20211201

2 years ago

1.0.20211103

3 years ago

1.0.20211028

3 years ago

1.0.20211021

3 years ago

1.0.20210929

3 years ago

1.0.20210922

3 years ago

1.0.20210915

3 years ago

1.0.20210907

3 years ago

1.0.20210818

3 years ago

1.0.20210810

3 years ago

1.0.20210802

3 years ago

1.0.20210728

3 years ago

1.0.20210721

3 years ago

1.0.20210714

3 years ago

1.0.20210707

3 years ago

1.0.20210622

3 years ago

1.0.20210610

3 years ago

1.0.20210603

3 years ago

1.0.20210527

3 years ago

1.0.20210520

3 years ago

1.0.20210511

3 years ago

1.0.20210506

3 years ago

1.0.20210429

3 years ago

1.0.20210420

3 years ago

1.0.20210413

3 years ago

1.0.20210408

3 years ago

1.0.20210325

3 years ago

1.0.20210312

3 years ago

1.0.20210311

3 years ago

1.0.20210304

3 years ago

1.0.20210225

3 years ago

1.0.20210218

3 years ago

1.0.20210126

3 years ago

1.0.20210121

3 years ago

1.0.20210107

3 years ago

1.0.20201208

3 years ago

1.0.20201203

3 years ago

1.0.20201112

4 years ago

1.0.20201105

4 years ago