public class InternalSMS extends Object
| Constructor and Description |
|---|
InternalSMS() |
| Modifier and Type | Method and Description |
|---|---|
static void |
requestSMSCode(String phone)
请求发送短信验证码
请在异步任务中调用本方法,或者调用requestSMSCodeInBackground(String phone)方法
短信示范为: 您正在{应用名称}中进行短信验证,您的验证码是:{Code},请输入完整验证,有效期为:10分钟
|
static void |
requestSMSCode(String phone,
String templateName,
Map<String,Object> env)
通过短信模板来发送短信验证码
请在异步任务中调用本方法,或者调用 public static void requestSMSCodeInBackground(String phone, String template,
Map env, RequestMobileCodeCallback callback)
|
static void |
requestSMSCode(String phone,
String name,
String op,
int ttl)
请求发送短信验证码
请在异步任务中调用本方法,或者调用requestSMSCodeInBackgroud(String phone, String name, String op, int ttl,
RequestMobileCodeCallback callback)方法
短信示范为: 您正在{name}中进行{op},您的验证码是:{Code},请输入完整验证,有效期为:{ttl}
|
static void |
requestSMSCodeInBackgroud(String phone,
RequestMobileCodeCallback callback)
Deprecated.
|
static void |
requestSMSCodeInBackgroud(String phone,
String templateName,
Map<String,Object> env,
RequestMobileCodeCallback callback)
Deprecated.
|
static void |
requestSMSCodeInBackgroud(String phone,
String name,
String op,
int ttl,
RequestMobileCodeCallback callback)
Deprecated.
|
static void |
requestSMSCodeInBackground(String phone,
RequestMobileCodeCallback callback)
请求发送短信验证码
短信示范为: 您正在{应用名称}中进行短信验证,您的验证码是:{Code},请输入完整验证,有效期为:10分钟
|
static void |
requestSMSCodeInBackground(String phone,
String templateName,
Map<String,Object> env,
RequestMobileCodeCallback callback)
通过短信模板来发送短信验证码
|
static void |
requestSMSCodeInBackground(String phone,
String name,
String op,
int ttl,
RequestMobileCodeCallback callback)
请求发送短信验证码
短信示范为: 您正在{name}中进行{op},您的验证码是:{Code},请输入完整验证,有效期为:{ttl}
|
static void |
requestVoiceCode(String phoneNumber)
请求发送语音验证码,验证码会以电话形式打给目标手机
|
static void |
requestVoiceCode(String phoneNumber,
String idd)
请求发送语音验证码,验证码会以电话形式打给目标手机
|
static void |
requestVoiceCodeInBackground(String phoneNumber,
RequestMobileCodeCallback callback)
请求发送语音验证码,验证码会以电话形式打给目标手机
|
static void |
verifyCode(String code,
String mobilePhoneNumber)
验证验证码
|
static void |
verifyCodeInBackground(String code,
String mobilePhoneNumber,
AVMobilePhoneVerifyCallback callback)
验证验证码
|
static void |
verifySMSCode(String code,
String mobilePhoneNumber)
验证验证码
|
static void |
verifySMSCodeInBackground(String code,
String mobilePhoneNumber,
AVMobilePhoneVerifyCallback callback)
验证验证码
|
public static void requestSMSCode(String phone, String name, String op, int ttl) throws AVException
phone - 目标手机号码(必选)name - 应用名,值为null 则默认是您的应用名op - 验证码的目标操作,值为null,则默认为“短信验证”ttl - 验证码过期时间,单位分钟。如果是0,则默认为10分钟AVException - 请求异常@Deprecated public static void requestSMSCodeInBackgroud(String phone, String name, String op, int ttl, RequestMobileCodeCallback callback)
public static void requestSMSCodeInBackground(String phone, String name, String op, int ttl, RequestMobileCodeCallback callback)
phone - 目标手机号码(必选)name - 应用名,值为null 则默认是您的应用名op - 验证码的目标操作,值为null,则默认为“短信验证”ttl - 验证码过期时间,单位分钟。如果是0,则默认为10分钟callback - 请求成功以后 callback.done(e)会被调用public static void requestSMSCode(String phone, String templateName, Map<String,Object> env) throws AVException
phone - 目标手机号码(必选)templateName - 短信模板名称env - 需要注入的变量envAVException - 请求异常@Deprecated public static void requestSMSCodeInBackgroud(String phone, String templateName, Map<String,Object> env, RequestMobileCodeCallback callback)
public static void requestSMSCodeInBackground(String phone, String templateName, Map<String,Object> env, RequestMobileCodeCallback callback)
phone - 目标手机号码(必选)templateName - 短信模板名称env - 需要注入的变量envcallback - 请求完成以后 callback.done(e)会被调用public static void requestSMSCode(String phone) throws AVException
phone - 目标手机号码AVException - 请求异常@Deprecated public static void requestSMSCodeInBackgroud(String phone, RequestMobileCodeCallback callback)
public static void requestSMSCodeInBackground(String phone, RequestMobileCodeCallback callback)
phone - 目标手机号码callback - 请求成功以后,会调用 callback.done(e)public static void requestVoiceCode(String phoneNumber) throws AVException
phoneNumber - 目标手机号AVException - 请求异常public static void requestVoiceCode(String phoneNumber, String idd) throws AVException
phoneNumber - 目标手机号idd - 电话的国家区号AVException - 请求异常public static void requestVoiceCodeInBackground(String phoneNumber, RequestMobileCodeCallback callback)
phoneNumber - 目标手机号callback - 请求成功以后,会调用 callback.done(e)public static void verifySMSCode(String code, String mobilePhoneNumber) throws AVException
code - 验证码mobilePhoneNumber - 手机号码AVException - 请求异常public static void verifyCode(String code, String mobilePhoneNumber) throws AVException
code - 验证码mobilePhoneNumber - 手机号码AVException - 请求异常public static void verifySMSCodeInBackground(String code, String mobilePhoneNumber, AVMobilePhoneVerifyCallback callback)
code - 验证码mobilePhoneNumber - 手机号callback - 请求成功以后,会调用 callback.done(e)public static void verifyCodeInBackground(String code, String mobilePhoneNumber, AVMobilePhoneVerifyCallback callback)
code - 验证码mobilePhoneNumber - 手机号callback - 请求成功以后,会调用 callback.done(e)Copyright © 2017. All rights reserved.