Skip to content

BaconTimes/TencentCaptchaSDK

Repository files navigation

TencentCaptchaSDK

Build Status Build Status Build Status

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TencentCaptchaSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TencentCaptchaSDK'

Usage

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:

image

Author

Bacon, [email protected]

License

TencentCaptchaSDK is available under the MIT license. See the LICENSE file for more info.

About

对腾讯防水墙的封装

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors