Commit ddc4544f2265867f19c60e1a09330c43292867b7

Authored by Jeff Lai
1 parent 8e2a1c18
Exists in master

Fix bug

Showing 1 changed file with 2 additions and 7 deletions   Show diff stats
lib/dingtalk/api/call_back.rb
1 module Dingtalk 1 module Dingtalk
2 module Api 2 module Api
3 class CallBack < Base 3 class CallBack < Base
4 - def initialize  
5 - @suite_token = Dingtalk.suite_token  
6 - @suite_aes_key = Dingtalk.suite_aes_key  
7 - end  
8 -  
9 def register_call_back(call_back_tag = [], url) 4 def register_call_back(call_back_tag = [], url)
10 params = { 5 params = {
11 call_back_tag: call_back_tag, 6 call_back_tag: call_back_tag,
12 - token: @suite_token,  
13 - aes_key: @suite_aes_key, 7 + token: Dingtalk.suite_token,
  8 + aes_key: Dingtalk.suite_aes_key,
14 url: url 9 url: url
15 } 10 }
16 http_post("register_call_back?access_token=#{access_token}", params) 11 http_post("register_call_back?access_token=#{access_token}", params)