android-components / mozilla.components.service.pocket / PocketListenEndpoint


class PocketListenEndpoint (source)

Makes requests to the Pocket Listen API and returns the requested data.

See Also



Name Summary
getListenArticleMetadata fun getListenArticleMetadata(articleID: Long, articleURL: String): PocketResponse<PocketListenArticleMetadata>
Gets a response, filled with the given article’s listen metadata on success. This network call is synchronous and the results are not cached.

Companion Object Functions

Name Summary
newInstance fun newInstance(client: Client, accessToken: String, userAgent: String): PocketListenEndpoint
Returns a new instance of PocketListenEndpoint.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.