Get() public method

public Get ( ) : Task
return Task
Example #1
0
        private async static Task QueryGroups()
        {
            var groupClient = new GroupClient(pbi);
            var groups = await groupClient.Get();

            foreach (var item in groups.value)
            {
                Console.WriteLine("{0}:{1}", item.name, item.id);
            }
        }
Example #2
0
 //The Get Groups operation returns a JSON list of all the Groups that the signed in user is a member of. 
 //GET https://api.powerbi.com/v1.0/myorg/groups
 //Get Groups operation: https://msdn.microsoft.com/en-US/library/mt243842.aspx
 static async Task<Groups> GetGroups()
 {
     var groupsClient = new GroupClient(pbi);
     return await groupsClient.Get();
 }