Skip to content

Commit

Permalink
Add the v1 (stable) endpoint. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesneeringer authored and callmehiphop committed Nov 14, 2017
1 parent 8f61c9b commit 074e8d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions video-intelligence/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
function analyzeFaces(gcsUri) {
// [START analyze_faces]
// Imports the Google Cloud Video Intelligence library
const video = require('@google-cloud/video-intelligence');
const video = require('@google-cloud/video-intelligence').v1;

// Creates a client
const client = new video.VideoIntelligenceServiceClient();
Expand Down Expand Up @@ -83,7 +83,7 @@ function analyzeFaces(gcsUri) {
function analyzeLabelsGCS(gcsUri) {
// [START analyze_labels_gcs]
// Imports the Google Cloud Video Intelligence library
const video = require('@google-cloud/video-intelligence');
const video = require('@google-cloud/video-intelligence').v1;

// Creates a client
const client = new video.VideoIntelligenceServiceClient();
Expand Down Expand Up @@ -148,7 +148,7 @@ function analyzeLabelsGCS(gcsUri) {
function analyzeLabelsLocal(path) {
// [START analyze_labels_local]
// Imports the Google Cloud Video Intelligence library + Node's fs library
const video = require('@google-cloud/video-intelligence');
const video = require('@google-cloud/video-intelligence').v1;
const fs = require('fs');

// Creates a client
Expand Down Expand Up @@ -219,7 +219,7 @@ function analyzeLabelsLocal(path) {
function analyzeShots(gcsUri) {
// [START analyze_shots]
// Imports the Google Cloud Video Intelligence library
const video = require('@google-cloud/video-intelligence');
const video = require('@google-cloud/video-intelligence').v1;

// Creates a client
const client = new video.VideoIntelligenceServiceClient();
Expand Down Expand Up @@ -290,7 +290,7 @@ function analyzeShots(gcsUri) {
function analyzeSafeSearch(gcsUri) {
// [START analyze_safe_search]
// Imports the Google Cloud Video Intelligence library
const video = require('@google-cloud/video-intelligence');
const video = require('@google-cloud/video-intelligence').v1;

// Creates a client
const client = new video.VideoIntelligenceServiceClient();
Expand Down
2 changes: 1 addition & 1 deletion video-intelligence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "repo-tools test run --cmd ava -- -T 5m --verbose system-test/*.test.js"
},
"dependencies": {
"@google-cloud/video-intelligence": "^0.4.0",
"@google-cloud/video-intelligence": "^1.0.0",
"long": "^3.2.0",
"safe-buffer": "5.1.1",
"yargs": "10.0.3"
Expand Down

0 comments on commit 074e8d9

Please sign in to comment.