android-components / mozilla.components.service.pocket / PocketEndpoint / newInstance

newInstance

fun newInstance(client: Client, pocketApiKey: String, userAgent: String): PocketEndpoint (source)

Returns a new instance of PocketEndpoint.

Parameters

client - the HTTP client to use for network requests.

pocketApiKey - the API key for Pocket network requests.

userAgent - the user agent for network requests.

Exceptions

IllegalArgumentException - if the provided API key or user agent is deemed invalid.