Module: LC::Cloud

Defined in:
lib/leancloud/cloud.rb

Defined Under Namespace

Classes: Function

Class Method Summary collapse

Class Method Details

.request_sms(params) ⇒ Object



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

.verify_sms_code(phone, code) ⇒ Object



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