Method: Applications#update_application

Defined in:
lib/chino_ruby.rb

#update_application(app_id, name, grant_type, redirect_url) ⇒ Object



380
381
382
383
384
385
386
387
388
389
# File 'lib/chino_ruby.rb', line 380

def update_application(app_id, name, grant_type, redirect_url)
    check_string(name)
    check_string(grant_type)
    check_string(redirect_url)
    check_string(app_id)
    data = {"name": name, "grant_type": grant_type, "redirect_url": redirect_url}.to_json
    app = Application.new
    app.from_json(put_resource("/auth/applications/#{app_id}", data).to_json, true)
    app
end