0.0.20240513 • Published 5 days ago

@maxim_mazurok/gapi.client.groupsmigration-v1 v0.0.20240513

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

TypeScript typings for Groups Migration API v1

The Groups Migration API allows domain administrators to archive emails into Google groups. For detailed description please check documentation.

Installing

Install typings for Groups Migration API:

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

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 = [
    // Upload messages to any Google group in your domain
    'https://www.googleapis.com/auth/apps.groups.migration',
  ],
  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 Groups Migration API resources:

/*
Inserts a new mail into the archive of the Google group.
*/
await gapi.client.groupsmigration.archive.insert({groupId: 'groupId'});
0.0.20240513

5 days ago

0.0.20240506

13 days ago

0.0.20240502

15 days ago

0.0.20240429

20 days ago

0.0.20240425

22 days ago

0.0.20240422

27 days ago

0.0.20240418

29 days ago

0.0.20240415

1 month ago

0.0.20240411

1 month ago

0.0.20240404

1 month ago

0.0.20240401

1 month ago

0.0.20240318

2 months ago

0.0.20240311

2 months ago

0.0.20240305

2 months ago

0.0.20240222

3 months ago

0.0.20240201

3 months ago

0.0.20240129

4 months ago

0.0.20240118

4 months ago

0.0.20240111

4 months ago

0.0.20240101

4 months ago

0.0.20231214

5 months ago

0.0.20231207

5 months ago

0.0.20231106

6 months ago

0.0.20230731

10 months ago

0.0.20230831

9 months ago

0.0.20230914

8 months ago

0.0.20231012

7 months ago

0.0.20230928

8 months ago

0.0.20230907

8 months ago

0.0.20230921

8 months ago

0.0.20231120

6 months ago

0.0.20231023

6 months ago

0.0.20231002

7 months ago

0.0.20231005

7 months ago

0.0.20230626

11 months ago

0.0.20230301

1 year ago

0.0.20230227

1 year ago

0.0.20230302

1 year ago

0.0.20230117

1 year ago

0.0.20221103

2 years ago

0.0.20230105

1 year ago

0.0.20221201

1 year ago

0.0.20230119

1 year ago

0.0.20221110

2 years ago

0.0.20221208

1 year ago

0.0.20221117

1 year ago

0.0.20221020

2 years ago

0.0.20221028

2 years ago

0.0.20221006

2 years ago

0.0.20221005

2 years ago

0.0.20221013

2 years ago

0.0.20220929

2 years ago

0.0.20220921

2 years ago

0.0.20220916

2 years ago

0.0.20220818

2 years ago

0.0.20220908

2 years ago

0.0.20220811

2 years ago

0.0.20220804

2 years ago