Exemplo n.º 1
0
        public async Task Location(string user, int depth, int amount)
        {
            try
            {
                var data = await _dataRetriever.GetUserGraphByLogin(user, depth, amount);

                if (!string.IsNullOrEmpty(data.Error))
                {
                    Console.WriteLine($"Error occured: {data.Error}");
                    return;
                }

                PrintUser(data.Value, 0);
            }
            catch (NoTokenException)
            {
                Console.WriteLine("No token found. Please add it to environment variables or by using this util");
            }
        }