Commit 36fae25c7358dfc83c11333b58320ec7f9f8c944
1 parent
8fc31366
Exists in
master
Fix apis
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
lib/dingtalk/api/suite.rb
... | ... | @@ -48,11 +48,10 @@ module Dingtalk |
48 | 48 | def activate_suite(corp_id, permanent_code) |
49 | 49 | params = { |
50 | 50 | suite_key: @suite_key, |
51 | - suite_access_token: suite_access_token, | |
52 | 51 | permanent_code: permanent_code, |
53 | 52 | auth_corpid: corp_id |
54 | 53 | } |
55 | - http_post('activate_suite', params) | |
54 | + http_post("activate_suite?suite_access_token=#{suite_access_token}", params) | |
56 | 55 | end |
57 | 56 | |
58 | 57 | def get_auth_info(corp_id, permanent_code) |
... | ... | @@ -62,7 +61,7 @@ module Dingtalk |
62 | 61 | permanent_code: permanent_code, |
63 | 62 | auth_corpid: corp_id |
64 | 63 | } |
65 | - http_post('get_auth_info', params) | |
64 | + http_post("get_auth_info?suite_access_token=#{suite_access_token}", params) | |
66 | 65 | end |
67 | 66 | |
68 | 67 | def suite_ticket | ... | ... |