Subscription
final class Subscription
Class providing Subscription related actions.
-
Gets all subscriptions for a given user
Declaration
Swift
public static func getSubscriptions(page: Int = 1, limit: Int = 10, success: @escaping (_ subscriptionList: InPlayerSubscriptionList) -> Void, failure: @escaping (_ error: InPlayerError) -> Void)Parameters
pageNumber of page. Defauls to 1.
limitNumber of items per page. Defaults to 10.
successA closure to be executed once the request has finished successfully.
subscriptionListModel containing pagination info and a list of subscriptions.
failureA closure to be executed once the request has finished with error.
errorContaining information about the error that occurred.
View on GitHub
Subscription Class Reference