Method: CloudApp::Account.update

Defined in:
lib/cloudapp/account.rb

.update(opts = {}) ⇒ CloudApp::Account

Modify the authenticated accounts details. Can change the default security of newly created drops, the accounts email address, password, and custom domain details.

Note that when changing email address or password, the current password is required. Also note that to change custom domains requires an account with a Pro subscription.

Requires authentication

Options Hash (opts):

  • :private_items (Boolean)

    Change default security of new drops

  • :email (String)

    Change email address

  • :password (String)

    Change password

  • :current_password (String)

    Current account password

  • :domain (String)

    Set custom domain

  • :domain_home_page (String)

    URL to redirect visitors to custom domain’s root



92
93
94
95
# File 'lib/cloudapp/account.rb', line 92

def self.update(opts = {})
  res = put "/account", {:body => {:user => opts}, :digest_auth => @@auth}
  res.ok? ? .new(res) : bad_response(res)
end