Commit b67c8d3efd5da0550b2ec3e2d1c50e016f357436
1 parent
2d6be54d
Exists in
master
Fix corp. Require json
Showing
3 changed files
with
22 additions
and
0 deletions
Show diff stats
lib/dingtalk.rb
... | ... | @@ -2,6 +2,7 @@ require "dingtalk/version" |
2 | 2 | require "dingtalk/config" |
3 | 3 | require "dingtalk/pkcs7_encoder" |
4 | 4 | require "dingtalk/prpcrypt" |
5 | +require "dingtalk/corp" | |
5 | 6 | require "dingtalk/api" |
6 | 7 | require "dingtalk/client" |
7 | 8 | |
... | ... | @@ -12,3 +13,11 @@ module Dingtalk |
12 | 13 | ENDPOINT = "https://oapi.dingtalk.com" |
13 | 14 | # Your code goes here... |
14 | 15 | end |
16 | + | |
17 | +Dingtalk.configure do |config| | |
18 | + config.suite_key = 'suiteeazsojmzckxgkw4a' | |
19 | + config.suite_secret = 'blCId7p9Iy44SyNc2RviaV66-yM7bxis55T197_nIjns1JGJ0CnBSgarLT4lUGK7' | |
20 | + config.suite_aes_key = 'wsuph070rt8ni8ll8yoe6ccwktz5uk94vnqtnach4zl' | |
21 | + config.suite_token = 'token' | |
22 | + config.redis = Redis.new | |
23 | +end | |
15 | 24 | \ No newline at end of file | ... | ... |
lib/dingtalk/api/base.rb