BmobSMS Class Reference
Inherits from | NSObject |
---|---|
Declared in | BmobSMS.h |
+ requestSMSInbackgroundWithPhoneNumber:Content:andSendTime:resultBlock:
请求短信信息
+ (void)requestSMSInbackgroundWithPhoneNumber:(NSString *)number Content:(NSString *)content andSendTime:(NSString *)sendTime resultBlock:(BmobIntegerResultBlock)block
Parameters
number |
电话号码 |
---|---|
content |
短信内容 |
sendTime |
发送时间(可为空) |
block |
返回结果,含smsId,可用于查询短信发送状态 |
Declared In
BmobSMS.h
+ requestSMSCodeInBackgroundWithPhoneNumber:andTemplate:resultBlock:
请求验证码
+ (void)requestSMSCodeInBackgroundWithPhoneNumber:(NSString *)number andTemplate:(NSString *)templateStr resultBlock:(BmobIntegerResultBlock)block
Parameters
number |
手机号 |
---|---|
templateStr |
模板名 |
block |
请求回调 |
Declared In
BmobSMS.h
+ verifySMSCodeInBackgroundWithPhoneNumber:andSMSCode:resultBlock:
验证验证码
+ (void)verifySMSCodeInBackgroundWithPhoneNumber:(NSString *)number andSMSCode:(NSString *)code resultBlock:(BmobBooleanResultBlock)block
Parameters
number |
手机号 |
---|---|
code |
验证码 |
block |
回调 |
Declared In
BmobSMS.h
+ querySMSCodeStateInBackgroundWithSMSId:resultBlock:
查询短信状态
+ (void)querySMSCodeStateInBackgroundWithSMSId:(unsigned)smsId resultBlock:(BmobQuerySMSCodeStateResultBlock)block
Parameters
smsId |
验证码 |
---|---|
block |
回调 |
Declared In
BmobSMS.h