Installation
Add the BotProtection
pod to your Podfile:
pod 'BotProtection'
Don’t forget to run pod install
after updating your Podfile.
Configuration
- Import the BotProtection header in your application delegate’s implementation file:
import BotProtection
- In your
application:didFinishLaunchingWithOptions:
method, configure BotProtection:
BotProtection.configure(withApiKey: "your-api-key-goes-here")
- Set user’s UUID (optional)
BotProtection.sendUUID(“user’s UUID”)
Work with sessions
In the desired place, start the session:
BotProtection.start()
To stop the session call
BotProtection.stop(completion: BPResultCompletion)