smssdk更新
This commit is contained in:
@@ -8,25 +8,32 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import <SMS_SDK/Extend/SMSSDKResultHanderDef.h>
|
||||
#import <SMS_SDK/Extend/SMSSDKUserInfo.h>
|
||||
#import <SMS_SDK/SMSSDKResultHandlerDef.h>
|
||||
#import <SMS_SDK/SMSSDKUserInfo.h>
|
||||
|
||||
/**
|
||||
* @brief 核心类(Core class)v2.1.5
|
||||
*/
|
||||
@interface SMSSDK : NSObject
|
||||
|
||||
#pragma mark - 支持获取手机号码认证 Token (get the token to verify the phone number)
|
||||
/**
|
||||
*
|
||||
***** 请注意:测试短信条数限制发送数量:20条/天,APP开发完成后请到Mob官网(http://mob.com/ )后台提交审核,获得不限制条数的免费短信权限。
|
||||
*
|
||||
* 初始化应用,此方法在应用启动时在主线程中调用。(This method is called in the main thread in application:didFinishLaunchingWithOptions: method)
|
||||
*
|
||||
* @param appKey 在Mob官网(http://mob.com/ )中注册的应用Key。(The appKey of mob Application. Log in to http://mob.com/ to register to be a Mob developer and create a application if you don't have one)
|
||||
* @param appSecret 在Mob官网(http://mob.com/ )中注册的应用秘钥。(The appSecret of mob Application. Log in to http://mob.com/ to register to be a Mob developer and create a application if you don't have one)
|
||||
*/
|
||||
+ (void) registerApp:(NSString*)appKey withSecret:(NSString*)appSecret;
|
||||
* @brief 请求手机号码认证Token
|
||||
*
|
||||
* @param handler 请求结果回调(Results of the request)
|
||||
*/
|
||||
+ (void) getMobileAuthTokenWith:(SMSSDKMobileAuthTokenResultHandler)handler;
|
||||
|
||||
/**
|
||||
* @brief 验证手机号
|
||||
*
|
||||
* @param phoneNum 电话号码(The phone number)
|
||||
* @param tokenInfo SDK返回的SMSSDKAuthToken Model
|
||||
* @param completion 请求结果回调(Results of the request)
|
||||
*/
|
||||
+ (void) verifyMobileWithPhone:(NSString *)phoneNum
|
||||
token:(SMSSDKAuthToken *)tokenInfo
|
||||
completion:(SMSSDKMobileVerifyResultHandler)completion;
|
||||
|
||||
#pragma mark - 支持获取验证码和提交验证码 (get the verification code and commit verifacation code)
|
||||
/**
|
||||
@@ -36,13 +43,27 @@
|
||||
* @param method 获取验证码的方法(The method of getting verificationCode)
|
||||
* @param phoneNumber 电话号码(The phone number)
|
||||
* @param zone 区域号,不要加"+"号(Area code)
|
||||
* @param customIdentifier 自定义短信模板标识 该标识需从官网http://www.mob.com上申请,审核通过后获得。(Custom model of SMS. The identifier can get it from http://www.mob.com when the application had approved)
|
||||
* @param result 请求结果回调(Results of the request)
|
||||
*/
|
||||
+ (void) getVerificationCodeByMethod:(SMSGetCodeMethod)method
|
||||
phoneNumber:(NSString *)phoneNumber
|
||||
zone:(NSString *)zone
|
||||
customIdentifier:(NSString *)customIdentifier
|
||||
result:(SMSGetCodeResultHandler)result __deprecated_msg("deprecated from v3.1.0");
|
||||
|
||||
/**
|
||||
* @from v3.1.0
|
||||
* @brief 获取验证码(Get verification code)
|
||||
*
|
||||
* @param method 获取验证码的方法(The method of getting verificationCode)
|
||||
* @param phoneNumber 电话号码(The phone number)
|
||||
* @param zone 区域号,不要加"+"号(Area code)
|
||||
* @param tmpCode 模板id(template id)
|
||||
* @param result 请求结果回调(Results of the request)
|
||||
*/
|
||||
+ (void) getVerificationCodeByMethod:(SMSGetCodeMethod)method
|
||||
phoneNumber:(NSString *)phoneNumber
|
||||
zone:(NSString *)zone
|
||||
template:(NSString *)tmpCode
|
||||
result:(SMSGetCodeResultHandler)result;
|
||||
|
||||
|
||||
@@ -63,6 +84,14 @@
|
||||
* @from v2.0.1
|
||||
* @return 返回SDK版本号(Return the version number of this SDK)
|
||||
*/
|
||||
+ (NSString *) SMSSDKVersion;
|
||||
+ (NSString *) sdkVersion;
|
||||
|
||||
/**
|
||||
* @from v1.1.1
|
||||
* @brief 获取区号(Get the Area code of the country)
|
||||
*
|
||||
* @param result 请求结果回调(Results of the request)
|
||||
*/
|
||||
+ (void) getCountryZone:(SMSGetZoneResultHandler)result;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user