Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Channel Functions

FunctionUse
channelList a set of channels depending on what parameters are past.
channelAttributesLists a channels attributes
channelPolicyLists a channels policy
channelTypeLists a channels type

...

On success

keyvalue
channels

[{

"last_active":<number>,

"policy":<null>, //not implemented yet


"name":<string>,


"type":<string>,


"cid"(will be eci soon):<eci as string>,


"attributes":{


"channel_attributes":<string>

},

},..{}n]

 

uses example
Code Block
languagejavascript
themeConfluence
response = v1_wrangler:channel("flipper",null,null){"channels"}; // all channels
response = v1_wrangler:channel("flipper",null,null){"channels"}; // single "flipper" channel
response = v1_wrangler:channel(null,"type",null){"channels"}; // collection of channels by type
response = v1_wrangler:channel(null,"type","OAUTH"){"channels"}; // collection of channels with "OAUTH" as type 

...

AttributeDatatypeRequired
<eci><string>//defaults to eci used to raise event
<channel_name><string>

 

<channel_type><string>

 //defaults to Unkown

<attributess><string> 
<policy><string>//not fully implemented

Event raised on success

Event DomainEvent TypeAttributes
wranglerchannel_createdall attributes from original event

deleteChannel

removes a channel corresponding with the provided event attributes

...

Event raised on success // not being raised yet

Event DomainEvent TypeAttributes
wranglerchannel_deletedall attributes from original event

updateAttributes

updates attributes of a channel corresponding with the provided event attributes

Event DomainEvent Type
wranglerupdate_channel_attributes_requested

must provide at least one of the two, eci and channel_name event attributes. 

AttributeDatatypeRequired
<eci><string> 
<channel_name><string>

 

<attributess><string> 

Event raised on success // not being raised yet

Event DomainEvent TypeAttributes
wranglerchannel_attributes_updatedall attributes from original event


updateType

updates type of a channel corresponding with the provided event attributes

Event DomainEvent Type
wranglerupdate_channel_type_requested

must provide at least one of the two, eci and channel_name event attributes. 

AttributeDatatypeRequired
<eci><string> 
<channel_name><string>

 

<channel_type><string> 

Event raised on success // not being raised yet

Event DomainEvent TypeAttributes
wranglerchannel_type_updatedall attributes from original event

updatePolicy // not fully implamented 

updates policy of a channel corresponding with the provided event attributes

Event DomainEvent Type
wranglerupdate_channel_type_requested

must provide at least one of the two, eci and channel_name event attributes. 

AttributeDatatypeRequired
<eci><string> 
<channel_name><string>

 

<policy><string> 

Event raised on success // not being raised yet

Event DomainEvent TypeAttributes
wranglerchannel_policy_updatedall attributes from original event