ThanklyConfig
class ThanklyConfig(apiHost: String, val tokenProvider: TokenProvider, val pollIntervalMs: Long, val maxPollAttempts: Int = 60)
How this client reaches Thankly.
apiHost is normalised here rather than at each request builder, and the polling defaults match the JS SDK so both behave the same against the same experience.
Parameters
apiHost
base URL, with or without a trailing slash.
tokenProvider
supplies the access token; see TokenProvider.
pollIntervalMs
delay between GET /experiences/{id} polls.
maxPollAttempts
polls before giving up — 2s x 60 is two minutes.
Constructors
Link copied to clipboard
constructor(apiHost: String, tokenProvider: TokenProvider, pollIntervalMs: Long, maxPollAttempts: Int = 60)