Commit 9fa6352ed8147d2393e8422efb5d30a1fe37c0f0
1 parent
f26e8179
Exists in
master
fixed typo
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
README.md
... | ... | @@ -168,7 +168,7 @@ suite_api.get_agent(auth_corpid, code, agent_id) |
168 | 168 | suite_api.set_agent(auth_corpid, permanent_code, agent_info) |
169 | 169 | |
170 | 170 | # 调用企业接口所需的access_token |
171 | -suite_api.get_crop_token(auth_corpid, permanent_code) | |
171 | +suite_api.get_corp_token(auth_corpid, permanent_code) | |
172 | 172 | |
173 | 173 | # 生成授权URL |
174 | 174 | suite_api.auth_url(code, uri, state="suite") | ... | ... |
lib/qy_wechat_api/api/service/suite.rb
... | ... | @@ -47,12 +47,12 @@ module QyWechatApi |
47 | 47 | end |
48 | 48 | |
49 | 49 | # 应用提供商在取得企业号的永久授权码并完成对企业号应用的设置之后,便可以开始通过调用企业接口(详见企业接口文档)来运营这些应用。其中,调用企业接口所需的access_token获取方法如下。 |
50 | - def get_crop_token(auth_corpid, permanent_code) | |
50 | + def get_corp_token(auth_corpid, permanent_code) | |
51 | 51 | params = { |
52 | 52 | auth_corpid: auth_corpid, |
53 | 53 | permanent_code: permanent_code, |
54 | 54 | } |
55 | - http_post("get_crop_token", params) | |
55 | + http_post("get_corp_token", params) | |
56 | 56 | end |
57 | 57 | |
58 | 58 | # https://qy.weixin.qq.com/cgi-bin/loginpage?suite_id=$suite_id$&pre_auth_code=$pre_auth_code$&redirect_uri=$redirect_uri$&state=$state$ | ... | ... |