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
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? ? Account.new(res) : bad_response(res) end |