Exemplo n.º 1
0
        private static async Task Run(string username, string password)
        {
            using (var client = new OvClient())
            {
                var loginResponse = await client.LoginAsync(username, password);

                if (!loginResponse)
                {
                    return;
                }

                Console.WriteLine(JsonConvert.SerializeObject(client.OAuthTokens, Formatting.Indented));
                Console.WriteLine(client.AuthorizationToken);

                var cards = await client.GetCardsAsync();

                Console.WriteLine(JsonConvert.SerializeObject(await client.GetTransactionsAsync(cards.Data[0].MediumId), Formatting.Indented));
            }
        }