ReportsExtensions.GenerateTokenAsync Method

Definition

Overloads

GenerateTokenAsync(IReports, String, GenerateTokenRequest, CancellationToken)
GenerateTokenAsync(IReports, String, String, GenerateTokenRequest, CancellationToken)

GenerateTokenAsync(IReports, String, GenerateTokenRequest, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.PowerBI.Api.V2.Models.EmbedToken> GenerateTokenAsync (this Microsoft.PowerBI.Api.V2.IReports operations, string reportKey, Microsoft.PowerBI.Api.V2.Models.GenerateTokenRequest requestParameters, System.Threading.CancellationToken cancellationToken = default);
static member GenerateTokenAsync : Microsoft.PowerBI.Api.V2.IReports * string * Microsoft.PowerBI.Api.V2.Models.GenerateTokenRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.PowerBI.Api.V2.Models.EmbedToken>
<Extension()>
Public Function GenerateTokenAsync (operations As IReports, reportKey As String, requestParameters As GenerateTokenRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EmbedToken)

Parameters

operations
IReports
reportKey
System.String
requestParameters
GenerateTokenRequest
cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<EmbedToken>

Applies to

GenerateTokenAsync(IReports, String, String, GenerateTokenRequest, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.PowerBI.Api.V2.Models.EmbedToken> GenerateTokenAsync (this Microsoft.PowerBI.Api.V2.IReports operations, string groupId, string reportKey, Microsoft.PowerBI.Api.V2.Models.GenerateTokenRequest requestParameters, System.Threading.CancellationToken cancellationToken = default);
static member GenerateTokenAsync : Microsoft.PowerBI.Api.V2.IReports * string * string * Microsoft.PowerBI.Api.V2.Models.GenerateTokenRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.PowerBI.Api.V2.Models.EmbedToken>
<Extension()>
Public Function GenerateTokenAsync (operations As IReports, groupId As String, reportKey As String, requestParameters As GenerateTokenRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EmbedToken)

Parameters

operations
IReports
groupId
System.String
reportKey
System.String
requestParameters
GenerateTokenRequest
cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<EmbedToken>

Applies to