lib/wework/api/methods/provider.rb in wework-1.1.9 vs lib/wework/api/methods/provider.rb in wework-1.2.0
- old
+ new
@@ -6,10 +6,10 @@
uri = ERB::Util.url_encode(redirect_uri)
"#{SSO_AUTHORIZE_ENDPOINT}?appid=#{corp_id}&redirect_uri=#{uri}&state=#{state}&usertype=#{user_type}"
end
def get_login_info auth_code
- post 'service/get_login_info', {auth_code: auth_code}
+ post 'service/get_login_info', {auth_code: auth_code, access_token: access_token}
end
def get_register_code template_id, options={}
params = {template_id: template_id}
post 'service/get_register_code', params.merge(options)
\ No newline at end of file