CuratedRecommendationsClientProtocol
public protocol CuratedRecommendationsClientProtocol : AnyObject, Sendable
Client for fetching curated recommendations from the Merino service.
Construct using [CuratedRecommendationsClient::new] with a
[CuratedRecommendationsConfig], then call
get_curated_recommendations
to fetch recommendations.
-
Fetches curated recommendations from the Merino API.
Declaration
Swift
func getCuratedRecommendations(request: CuratedRecommendationsRequest) throws -> CuratedRecommendationsResponse