コード例 #1
0
ファイル: Test.cs プロジェクト: minhpascal/Clients
        public static void newslettersettingsApiTest(String username, String password, String auth)
        {
            System.Diagnostics.Debug.WriteLine("\n\nSTART OF new vestorly.api.SLETTERSETTINGSAPI TEST\n\n");
            vestorly.api.NewslettersettingsApi newslettersettingsApi = new vestorly.api.NewslettersettingsApi();

            // GET
            vestorly.model.NewsletterSettings myNewslettersettings = newslettersettingsApi.FindNewsletterSettings(auth);
            System.Diagnostics.Debug.WriteLine("GET: " + myNewslettersettings);

            // GET{ID}
            foreach (vestorly.model.NewsletterSetting newsletterSetting in myNewslettersettings.newsletterSettings)
            {
                vestorly.model.Newslettersettingresponse myNLSettings = newslettersettingsApi.FindNewsletterSettingsByID(newsletterSetting.id, auth);
                System.Diagnostics.Debug.WriteLine("GET{ID}: " + myNLSettings);
            }


            // PUT
            vestorly.model.NewsletterSettingsInput myInput = new vestorly.model.NewsletterSettingsInput();
            myInput.newsletterSetting = (newslettersettingsApi.FindNewsletterSettingsByID("557a08c5e7af0eda95000204", auth).newsletterSetting);
            //myInput.getnew vestorly.api.sletterSetting().setId("532b686ffab10e0002000005");
            //System.Diagnostics.Debug.WriteLine(myInput);
            vestorly.model.Newslettersettingresponse updatedNLSettings = newslettersettingsApi.UpdateNewsletterSettingsByID("557a08c5e7af0eda95000204", auth, myInput);
            System.Diagnostics.Debug.WriteLine("PUT: " + updatedNLSettings);
            System.Diagnostics.Debug.WriteLine("\n\nEND OF new vestorly.api.SLETTERSETTINGSAPI TEST\n\n");
        }
コード例 #2
0
ファイル: Test.cs プロジェクト: bleepbloopsify/Clients
        public static void newslettersettingsApiTest(String username, String password, String auth)
        {
            System.Diagnostics.Debug.WriteLine("\n\nSTART OF new vestorly.api.SLETTERSETTINGSAPI TEST\n\n");
            vestorly.api.NewslettersettingsApi newslettersettingsApi = new vestorly.api.NewslettersettingsApi();

            // GET
            vestorly.model.NewsletterSettings myNewslettersettings = newslettersettingsApi.FindNewsletterSettings(auth);
            System.Diagnostics.Debug.WriteLine("GET: " + myNewslettersettings);

            // GET{ID}
            foreach (vestorly.model.NewsletterSetting newsletterSetting in myNewslettersettings.newsletterSettings) {
                vestorly.model.Newslettersettingresponse myNLSettings = newslettersettingsApi.FindNewsletterSettingsByID(newsletterSetting.id, auth);
                System.Diagnostics.Debug.WriteLine("GET{ID}: " + myNLSettings);
            }

            // PUT
            vestorly.model.NewsletterSettingsInput myInput = new vestorly.model.NewsletterSettingsInput();
            myInput.newsletterSetting = (newslettersettingsApi.FindNewsletterSettingsByID("557a08c5e7af0eda95000204", auth).newsletterSetting);
            //myInput.getnew vestorly.api.sletterSetting().setId("532b686ffab10e0002000005");
            //System.Diagnostics.Debug.WriteLine(myInput);
            vestorly.model.Newslettersettingresponse updatedNLSettings = newslettersettingsApi.UpdateNewsletterSettingsByID("557a08c5e7af0eda95000204", auth, myInput);
            System.Diagnostics.Debug.WriteLine("PUT: " + updatedNLSettings);
            System.Diagnostics.Debug.WriteLine("\n\nEND OF new vestorly.api.SLETTERSETTINGSAPI TEST\n\n");
        }