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,11 +48,10 @@ module Dingtalk | ||
48 | def activate_suite(corp_id, permanent_code) | 48 | def activate_suite(corp_id, permanent_code) |
49 | params = { | 49 | params = { |
50 | suite_key: @suite_key, | 50 | suite_key: @suite_key, |
51 | - suite_access_token: suite_access_token, | ||
52 | permanent_code: permanent_code, | 51 | permanent_code: permanent_code, |
53 | auth_corpid: corp_id | 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 | end | 55 | end |
57 | 56 | ||
58 | def get_auth_info(corp_id, permanent_code) | 57 | def get_auth_info(corp_id, permanent_code) |
@@ -62,7 +61,7 @@ module Dingtalk | @@ -62,7 +61,7 @@ module Dingtalk | ||
62 | permanent_code: permanent_code, | 61 | permanent_code: permanent_code, |
63 | auth_corpid: corp_id | 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 | end | 65 | end |
67 | 66 | ||
68 | def suite_ticket | 67 | def suite_ticket |