This project has moved. For the latest updates, please go here.

Showing Account Settings

Show account settings.

Entity: Account
Type: AccountType.Settings
Parameters/Filters:
None
v3.0 Example:
            var settingsResponse =
                await
                (from acct in twitterCtx.Account
                 where acct.Type == AccountType.Settings
                 select acct)
                .SingleOrDefaultAsync();

            if (settingsResponse != null && 
                settingsResponse.Settings != null &&
                settingsResponse.Settings.TrendLocation != null &&
                settingsResponse.Settings.SleepTime != null)
            {
                var settings = settingsResponse.Settings;

                Console.WriteLine(
                    "Trend Location: {0}\nGeo Enabled: {1}\nSleep Enabled: {2}",
                    settings.TrendLocation.Name,
                    settings.GeoEnabled,
                    settings.SleepTime.Enabled); 
            }
v2.1 Example:
            var accountSettings =
                (from acct in twitterCtx.Account
                 where acct.Type == AccountType.Settings
                 select acct.Settings)
                .SingleOrDefault();

            Console.WriteLine(
                "Trend Location: {0}\nGeo Enabled: {1}\nSleep Enabled: {2}",
                accountSettings.TrendLocation.Name,
                accountSettings.GeoEnabled,
                accountSettings.SleepTime.Enabled);

Twitter API: account/settings

Last edited Nov 29, 2013 at 3:11 AM by JoeMayo, version 4