@maxim_mazurok/gapi.client.gmailpostmastertools-v1beta1 0.0.20250526 → 0.0.20250528
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +0 -24
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://gmailpostmastertools.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250528
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -42,30 +42,6 @@ gapi.client.load('gmailpostmastertools', 'v1beta1', () => {
|
|
|
42
42
|
});
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Don't forget to authenticate your client before sending any request to resources:
|
|
46
|
-
|
|
47
|
-
```typescript
|
|
48
|
-
// declare client_id registered in Google Developers Console
|
|
49
|
-
var client_id = '',
|
|
50
|
-
scope = [
|
|
51
|
-
// See email traffic metrics for the domains you have registered in Gmail Postmaster Tools
|
|
52
|
-
'https://www.googleapis.com/auth/postmaster.readonly',
|
|
53
|
-
],
|
|
54
|
-
immediate = true;
|
|
55
|
-
// ...
|
|
56
|
-
|
|
57
|
-
gapi.auth.authorize(
|
|
58
|
-
{client_id: client_id, scope: scope, immediate: immediate},
|
|
59
|
-
authResult => {
|
|
60
|
-
if (authResult && !authResult.error) {
|
|
61
|
-
/* handle successful authorization */
|
|
62
|
-
} else {
|
|
63
|
-
/* handle authorization error */
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
);
|
|
67
|
-
```
|
|
68
|
-
|
|
69
45
|
After that you can use Gmail Postmaster Tools API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
70
46
|
|
|
71
47
|
```typescript
|