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

Updating a Delivery Device

Update a user's delivery device.
public async Task<Account> UpdateDeliveryDeviceAsync(
    DeviceType device, bool includeEntitites)  
Name Purpose Type Required
device Which device to use DeviceType yes
includeEntities Include Twitter entities bool no

Return Type: User
v3.0 Example:
            Account acct = 
                await twitterCtx.UpdateDeliveryDeviceAsync(
                    DeviceType.None, null);

            if (acct != null && acct.User != null)
                Console.WriteLine("Update for: ", acct.User.ScreenNameResponse); 
v2.1 Example:
            DeviceType sms = DeviceType.Sms;

            var deliver = twitterCtx.UpdateDeliveryDevice(sms, true);

            Console.WriteLine("Delivery Device: {0}", sms);

Twitter API: account/update_delivery_device

Last edited Nov 29, 2013 at 3:18 AM by JoeMayo, version 5