Classes: Function
23 24 25
# File 'lib/leancloud/cloud.rb', line 23 def self.request_sms(params) LC.client.post("/#{Protocol::VERSION}/requestSmsCode", params.to_json) end
27 28 29 30
# File 'lib/leancloud/cloud.rb', line 27 def self.verify_sms_code(phone, code) params = { mobilePhoneNumber: phone} LC.client.post("/#{Protocol::VERSION}/verifySmsCode/#{code}", params.to_json) end