/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> public static void Main() { GetUserByEmailAddress codeExample = new GetUserByEmailAddress(); Console.WriteLine(codeExample.Description); string emailAddress = _T("INSERT_EMAIL_ADDRESS_HERE"); codeExample.Run(new DfpUser(), emailAddress); }
/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> public static void Main() { GetUserByEmailAddress codeExample = new GetUserByEmailAddress(); string emailAddress = "INSERT_EMAIL_ADDRESS_HERE"; Console.WriteLine(codeExample.Description); try { codeExample.Run(new DfpUser(), emailAddress); } catch (Exception e) { Console.WriteLine("Failed to get users. Exception says \"{0}\"", e.Message); } }