Cmdlets for YouTube Analytics

Build 21.0.7930

Invoke-YouTubeAnalytics Cmdlet

Parameters   Output Objects  

Searches and updates YouTube Analytics data.

Syntax

Invoke-YouTubeAnalytics [parameters]

Remarks

The Invoke-YouTubeAnalytics cmdlet allows you to use SQL statements to execute any SQL statement directly. Below is the syntax for a parameterized query:

$query = Invoke-YouTubeAnalytics -Connection $connection -Query 'SELECT * FROM Groups WHERE Id=@Id' -Params @{'@Id'='S'}
This cmdlet is also useful for executing stored procedures. Use the EXEC keyword to call a stored procedure:
$query = Invoke-YouTubeAnalytics -Connection $connection -Query 'EXEC RefreshOAuthAccessToken OAuthAccessToken = @OAuthAccessToken' -Params @{"OAuthAccessToken"}

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930