Использование SDK
Импорт библиотеки
import BotProtectionconfigure(withApiKey apiKey: String)
BotProtection.configure(withApiKey: "your-bp-api-key-here")start()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
BotProtection.configure(withApiKey: "your-bp-api-key-here")
BotProtection.sendUUID("user-uuid")
BotProtection.start()
return true
}BotProtection.configure(withApiKey: "your-bp-api-key-here")
BotProtection.sendUUID("user-uuid")sendUUID(_ uuid: String)
stop(needToken: Bool, _ completion: @escaping (_ challengeID: String?, _ token: String?, _ error: BPError?) -> Void)
Last updated
Was this helpful?