PubgApi
constructor(apiKey: String, rateLimiter: RateLimiter = DelayRateLimiter(), retry: RetryPolicy = NoRetry)
Parameters
apiKey
Your PUBG API key, obtained from the PUBG Developer Portal.
rateLimiter
Controls request throughput. Defaults to DelayRateLimiter, which proactively delays requests when the rate limit is exhausted. Pass RateLimiter.None to disable rate limiting entirely.
constructor(engine: HttpClientEngine, apiKey: String = "", rateLimiter: RateLimiter = RateLimiter.None, retry: RetryPolicy = NoRetry)
Constructs a PubgApi backed by a custom HttpClientEngine.
This constructor exists for testing purposes and should not be used in production code. The full client pipeline (plugins, validators, default-request) is preserved; only the engine is swapped.
Parameters
engine
A pre-configured HttpClientEngine, typically an io.ktor.client.engine.mock.MockEngine.
rateLimiter
Controls request throughput. Defaults to RateLimiter.None.