@maxim_mazurok/gapi.client.videointelligence-v1beta2
Advanced tools
Comparing version 0.0.20230706 to 0.0.20231214
{ | ||
"name": "@maxim_mazurok/gapi.client.videointelligence-v1beta2", | ||
"version": "0.0.20230706", | ||
"version": "0.0.20231214", | ||
"description": "TypeScript typings for Cloud Video Intelligence API v1beta2", | ||
"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", | ||
"dependencies": { | ||
"@types/gapi.client": "*", | ||
"@types/gapi.client.discovery": "*" | ||
"@types/gapi.client.discovery-v1": "*" | ||
} | ||
} |
@@ -28,6 +28,9 @@ # TypeScript typings for Cloud Video Intelligence API v1beta2 | ||
```typescript | ||
gapi.client.load('https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2', () => { | ||
// now we can use: | ||
// gapi.client.videointelligence | ||
}); | ||
gapi.client.load( | ||
'https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2', | ||
() => { | ||
// now we can use: | ||
// gapi.client.videointelligence | ||
} | ||
); | ||
``` | ||
@@ -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,7 +74,6 @@ | ||
```typescript | ||
/* | ||
Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results). | ||
*/ | ||
await gapi.client.videointelligence.videos.annotate({ }); | ||
await gapi.client.videointelligence.videos.annotate({}); | ||
``` |
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
77
114883
3
1652
- Removed@types/gapi.client.discovery@*
- Removed@types/gapi.client.discovery@1.0.9(transitive)