BoxKite.Twitter.UsersExtensions.ChangeUpdateDeliverySettings C# (CSharp) Метод

ChangeUpdateDeliverySettings() публичный статический Метод

Sets which device Twitter delivers updates to for the authenticating user. Sending none as the device parameter will disable SMS updates
ref: https://dev.twitter.com/docs/api/1.1/post/account/update_delivery_device
public static ChangeUpdateDeliverySettings ( this session, string device = "none" ) : Task
session this
device string none or sms
Результат Task
        public static async Task<TwitterSuccess> ChangeUpdateDeliverySettings(this IUserSession session, string device = "none")
        {
            var parameters = new TwitterParametersCollection
                             {
                                 {"device", device}
                             };

            return await session.PostAsync(TwitterApi.Resolve("/1.1/account/update_delivery_device.json"), parameters)
                         .ContinueWith(c => c.MapToTwitterSuccess()); 
        }