Class: Dingtalk::AppsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/dingtalk/apps_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



16
17
# File 'app/controllers/dingtalk/apps_controller.rb', line 16

def create
end

#infoObject



6
7
8
9
# File 'app/controllers/dingtalk/apps_controller.rb', line 6

def info
  result = @app.xx(params[:code])
  render json: result
end

#loginObject



11
12
13
14
# File 'app/controllers/dingtalk/apps_controller.rb', line 11

def 
  @dingtalk_user = @app.generate_user(params[:authCode])
  @dingtalk_user.save
end