get Subscriptions
suspend fun getSubscriptions(perPage: Int?, page: Int?): Pair<SubscriptionResponses.ListSubscriptionsResponse?, NetworkingError?>
Retrieves a paginated list of all subscriptions.
Return
A pair containing a SubscriptionResponses.ListSubscriptionsResponse on success, or a NetworkingError on failure.
Parameters
per Page
Optional number of results to return per page.
page
Optional page number to retrieve.
fun getSubscriptions(perPage: Int?, page: Int?, completionHandler: (SubscriptionResponses.ListSubscriptionsResponse?, NetworkingError?) -> Unit)
Retrieves a paginated list of all subscriptions and delivers the result via callback.
Parameters
per Page
Optional number of results to return per page.
page
Optional page number to retrieve.
completion Handler
Invoked with a SubscriptionResponses.ListSubscriptionsResponse on success, or a NetworkingError on failure.