@maxim_mazurok/gapi.client.recaptchaenterprise-v1
Advanced tools
Comparing version 0.0.20231112 to 0.0.20231202
{ | ||
"name": "@maxim_mazurok/gapi.client.recaptchaenterprise-v1", | ||
"version": "0.0.20231112", | ||
"version": "0.0.20231202", | ||
"description": "TypeScript typings for reCAPTCHA Enterprise API v1", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Maxim Mazurok", | ||
"email": "maxim@mazurok.com", | ||
"name": "Maxim Mazurok", | ||
"url": "https://maxim.mazurok.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git" | ||
}, | ||
"types": "index.d.ts", | ||
@@ -16,0 +16,0 @@ "dependencies": { |
@@ -28,6 +28,9 @@ # TypeScript typings for reCAPTCHA Enterprise API v1 | ||
```typescript | ||
gapi.client.load('https://recaptchaenterprise.googleapis.com/$discovery/rest?version=v1', () => { | ||
// now we can use: | ||
// gapi.client.recaptchaenterprise | ||
}); | ||
gapi.client.load( | ||
'https://recaptchaenterprise.googleapis.com/$discovery/rest?version=v1', | ||
() => { | ||
// now we can use: | ||
// gapi.client.recaptchaenterprise | ||
} | ||
); | ||
``` | ||
@@ -49,17 +52,18 @@ | ||
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; | ||
// 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 }, | ||
{client_id: client_id, scope: scope, immediate: immediate}, | ||
authResult => { | ||
if (authResult && !authResult.error) { | ||
/* handle successful authorization */ | ||
/* handle successful authorization */ | ||
} else { | ||
/* handle authorization error */ | ||
/* handle authorization error */ | ||
} | ||
}); | ||
} | ||
); | ||
``` | ||
@@ -70,2 +74,3 @@ | ||
```typescript | ||
``` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74
81282
3
1288