PowerBIToken.CreateDevToken Method (String, Guid, TimeSpan)
Creates a developer token with default expiration used to access Power BI platform services
Namespace: Microsoft.PowerBI.Security
Assembly: Microsoft.PowerBI.Core (in Microsoft.PowerBI.Core.dll)
Syntax
public static PowerBIToken CreateDevToken(
string workspaceCollectionName,
Guid workspaceId,
TimeSpan slidingExpiration
)
Parameters
workspaceCollectionName
Type: System.StringThe workspace collection name
workspaceId
Type: System.GuidThe workspace id
slidingExpiration
Type: System.TimeSpanThe timespan to append to the current date/time
Return Value
Type: Microsoft.PowerBI.Security.PowerBIToken
The Power BI access token
See Also
CreateDevToken Overload
PowerBIToken Class
Microsoft.PowerBI.Security Namespace
Return to top