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

getGlobalVideoRecommendations

@WorkerThread fun getGlobalVideoRecommendations(): PocketResponse<List<PocketGlobalVideoRecommendation>> (source)

Gets a response, filled with the Pocket global video recommendations from the Pocket API server on success. This network call is synchronous and the results are not cached. The API version of this call is available in the source code at PocketURLs.VALUE_VIDEO_RECS_VERSION.

If the API returns unexpectedly formatted results, these entries will be omitted and the rest of the items are returned.

Return a PocketResponse.Success with the Pocket global video recommendations (the list will never be empty) or, on error, a PocketResponse.Failure.