getSubscriptionWith

suspend fun getSubscriptionWith(subscriptionId: String): Pair<Subscription?, NetworkingError?>

Retrieves a single subscription by its unique identifier.

Return

A pair containing the matching Subscription on success, or a NetworkingError on failure.

Parameters

subscriptionId

The unique ID of the subscription to retrieve.


fun getSubscriptionWith(subscriptionId: String, completionHandler: (Subscription?, NetworkingError?) -> Unit)

Retrieves a single subscription by its unique identifier and delivers the result via callback.

Parameters

subscriptionId

The unique ID of the subscription to retrieve.

completionHandler

Invoked with the matching Subscription on success, or a NetworkingError on failure.