Methods
(inner) fetch(publicKey, Transaction)
Fetches a Post.
Parameters:
Name | Type | Description |
---|---|---|
publicKey | String | The public key of the Subscription. |
Transaction | String | The transaction Id of an already existing Subscription. |
Example
const subscriptions = await NinaClient.Subscription.fetch("K8XJr7LHWJeJJARTvnsFZViqxBzyDSjsfpS6iBuWhrV");
(inner) fetchAll(paginationopt)
Fetches all Subscriptionss.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pagination | Object | <optional> | {limit: 20, offset: 0, sort: 'desc'} | Pagination options. |
- Source
Example
const subscriptions = await NinaClient.Subscription.fetchAll();
(inner) subscriptionSubscribe(client, subscribeToAccount, hubHandle) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
client | Object | the NinaClient instance |
subscribeToAccount | String | the account to subscribe to |
hubHandle | String | the hub handle to subscribe to |
Returns:
the subscription data
- Type:
- Object
(inner) subscriptionUnsubscribe(client, unsubscribeAccount) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
client | Object | the NinaClient instance |
unsubscribeAccount | String | the account to unsubscribe from |
Returns:
the subscription data
- Type:
- Object