Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed spelling error


Note

This page is unfinished. For a taste, see the engine module documentation.

...

Table of Contents
maxLevel3
 


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

...

ParameterDatatypeRequired
<id><string>

 


<collection><string> 
<filtered><string> 
  • <id> = <channel_name> | <channel_eci>
  • <collection> = <type> | <name> | <cid>(will be eci soon)  |  <last_active> | <attributes>(may break)
  • <filtered> = <desired value of collection>

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(null,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 

...

ParameterDatatypeRequired
<eci><string>

 


<name><string> 


  • <eci> =  <channel_eci>
  • <name> = <channel_name> 

On success

keyvalue
attributes
{
"channel_attributes":<string> // for example "Time_hopping"
}
 


uses example
Code Block
languagejavascript
themeConfluence
response = v1_wrangler:channelAttributes("532569A0-43BB-11E6-AA23-29E4C71C24B1",null){"attributes"}; // attributes by eci
response = v1_wrangler:channelAttributes(null,"Dr.Who"){"attributes"}; // attributes by channel name
 

...

ParameterDatatypeRequired
<eci><string>

 


<name><string> 


  • <eci> =  <channel_eci>
  • <name> = <channel_name> 

On success

keyvalue
policy
{
"error":[""]
}
 


uses example
Code Block
languagejavascript
themeConfluence
response = v1_wrangler:channelPolicy("532569A0-43BB-11E6-AA23-29E4C71C24B1",null){"policy"}; // policy by eci
response = v1_wrangler:channelPolicy(null,"Dr.Who"){"policy"}; // policy by channel name

 


channelType

returns a type as a string keyed to type.

...

ParameterDatatypeRequired
<eci><string>

 


<name><string>

 


  • <eci> =  <channel_eci>
  • <name> = <channel_name> 

On success

keyvalue
type
<string> // for example "Time_wizard"

 


uses example
Code Block
languagejavascript
themeConfluence
response = v1_wrangler:channelType("532569A0-43BB-11E6-AA23-29E4C71C24B1",null){"type"}; // type by eci
response = v1_wrangler:channelType(null,"Dr.Who"){"type"}; // type by channel name

...

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

...

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

 


Event raised on success // not being raised yet

...

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


<attributess><string> 

Event raised on success // not being raised yet

...


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 

Status
colourRed
titleNot Fully Implemented


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


...