Exemplo n.º 1
0
        static async Task UpdateAccountColorsAsync(TwitterContext twitterCtx)
        {
            var user = await twitterCtx.UpdateAccountColorsAsync(
                background: null, text: "#000000", link: "#0000ff", 
                sidebarFill: "#e0ff92", sidebarBorder: "#87bc44", 
                includeEntities: true, skipStatus: true);

            if (user != null)
            {
                Console.WriteLine("\nAccount Colors:\n");

                Console.WriteLine("Background:     " + user.ProfileBackgroundColor);
                Console.WriteLine("Text:           " + user.ProfileTextColor);
                Console.WriteLine("Link:           " + user.ProfileLinkColor);
                Console.WriteLine("Sidebar Fill:   " + user.ProfileSidebarFillColor);
                Console.WriteLine("Sidebar Border: " + user.ProfileSidebarBorderColor); 
            }
        }