Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Functions NYI and note different available function

...

Subscription Rejection Flow

 

 

 

 

Subscriptions Functions

...

Function

...

Use

...

All subscriptions functions return an object with a status and an return object except for checkSubscriptionName. Documentation will reference the return object only.

Subscriptions Actions

Subscription Events

Event Domain

Event Type

Actions

Use

wranglersubscription

creates outbound pending subscription and sends pending_subscription event to external pico

Creates a new outbound pending subscription
wranglerpending_subscriptioncreates inbound pending subscriptionCreates a new inbound pending subscription
wranglerpending_subscription_approvalsends pending_subscription_approved event with inbound_eci and outbound status to external pico and raises pending_subscription_approved with inbound statusAprove inbound pending subscription
wranglerpending_subscription_approvedupdates subscription status and outbound_eci if neededInternally for adding aproved subscriptions
wrangler

subscription_cancellation |

inbound_subscription_rejection |

outbound_subscription_cancellation

sends subscription_removal event with eci and status and raise the same event to selfalert external pico to remove subscriptions and alert self to remove subscription
wranglersubscription_removaldeletes channel used for subscriptioninternally for removing channel used for subscription

Subscription Functions


Info

The following subscription functions are not yet implemented. A getSubscriptions function is available, which takes no arguments and returns an unfiltered map in the form documented below for subscriptions().


Function
Use
subscriptionsList a set of subscriptions depending on what parameters are given.
subscriptionAttributesLists a subscription's attributes
checkSubscriptionNameChecks if a subscription's name exists

All subscription functions return an object with a status and a return object except for checkSubscriptionName. Documentation will reference the return object only.

subscriptions

returns an array of subscriptions subscription collections keyed to subscriptions. Each subscriptions subscription object is owned by the pico which that calls this function.

Parameter
Datatype
Required
<id><string>

 

<collection><string> 
<filtered><string> 

...

On success

key
value
subscriptions
[{
<name_space:channel_name>:
      {"name_space":<string>,
       "relationship":<string>,
       "status":<string>,
       "channel_name":<string>,
       "inbound_eci":<string>,
       "subscriber_role":<string>,
       "my_role":<string>,
       "subscriber_eci":<string>,
       "attributes":<string>,
       "subscription_name":<string>
       }
,...

}]

 

uses example

 

Code Block
languagejavascript
themeConfluence
response = v1_wrangler:subscriptions(null,null,null){"subscriptions"}; // all subscriptions
response = v1_wrangler:subscriptions("flipper",null,null){"subscriptions"}; // single "flipper" subscriptions
response = v1_wrangler:subscriptions(null,"status",null){"subscriptions"}; // collection of subscriptions by status
response = v1_wrangler:subscriptions(null,"status","inbound"){"subscriptions"}; // collection of subscriptions with "inbound" as status

 

...