To run the example project, clone the repo, and run pod install
from the Example directory first.
TencentCaptchaSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TencentCaptchaSDK'
Import the framework:
#import <TencentCaptchaSDK/TencentCaptchaSDK.h>
Then, initiaze the instance of TencentCaptchaSDK and set the property of appId, you can register an account in Tencent Open Developer Platform and request for a appId:
TencentCaptchaSDK *tcSDK = [TencentCaptchaSDK shareInstance];
tcSDK.appId = @"your appid";
[tcSDK startVerifyCompletion:^(BOOL successed, NSString * _Nullable ticket, NSString * _Nullable randStr) {
NSLog(@"success = %@, ticket = %@, randStr = %@", @(successed), ticket, randStr);
}];
and you will the image like this:
Bacon, ch3coohna@qq.com
TencentCaptchaSDK is available under the MIT license. See the LICENSE file for more info.