-
Notifications
You must be signed in to change notification settings - Fork 117
Channels
A Channel is an instance of a Pod's method, a are reusable entity which performs a discrete unit of work and emits a predictable result. The collection of channels you create becomes something like a swatch from which you can orchestrate complex API workflows. When dropped onto a bip's graph, a channels export then becomes the next adjacent channels transformed import.
Channels which point to a Pods Action and are not marked as an 'emitter' can be used anywhere on a bip's graph. Action channels are passive pointers, they are only invoked whenever message are routed to them.
Emitter Channels are a special class of Channel which, when used in conjunction with a Trigger Bip, generate their own content (events). Emitters may not be placed onto a Bip's hub
, they can only be used for Bips of type : "trigger"
.
- _href (URI) Fully Qualified Resource URI
- _repr (String) Derived representation
- _renderers (Object) Available Renderers
id (uuid) Channel ID
name (string) Channel Name
note (text) Additional Channel description
action name (string) A named identifier for the action or emitter. This is the symbolic pointer to a Pods method and take the normalized form {pod name}.{action name}
(lowercase)
config Account or instance specific configuration, such as default imports, static flags etc. Configs are different for every action. The required configuration for your target channel can be surfaced by Describing the Pod
POST /rest/channel
{
action : "email.smtp_forward",
name : "Helo FuBa"
config : {
rcpt_to : "[email protected]"
}
}
{
"id": "2b0fe061-b37c-4928-be32-b8a9c5194dd7",
"name": "Helo FuBa",
"action": "email.smtp_forward",
"config": {
"rcpt_to" : "[email protected]"
},
"note": "",
"icon": "",
"created": "1389254027417",
"_repr": "Use to forward email messages to a chosen recipient (requires recipient verification)",
"_href": "http://admin.local:5000/rest/channel/2b0fe061-b37c-4928-be32-b8a9c5194dd7",
"_renderers": {}
}
Channel level renderers can answer requests about their internal state or potentially serve stored data to authenticated clients. There is no standard around renderers other than they answer some type of local or remote request over HTTP. Available renderers for the channel will be detailed in the _renderers
decorator.
"_renderers": {
"verify": {
"description": "Recipient Verify",
"description_long": "Verifies this email channel recipient with a secret key sent to their inbox",
"contentType": "text/html",
"_href": "http://docs.admin.local/rpc/render/channel/d8c35967-d9f4-427b-9aaf-bd542d5e2931/verify"
}
}
- description (string) Short renderer description
- description_long (string) Long renderer description
- contentType (string) Response Content Type
- _href (string) Renderer URI (direct call)
Core
Tutorials
Cookbook
- Example Bips
- Email Repeater
- One Time Email Receive
- Email Repeater With Template
- Email Repeater, Dropbox Attachment Save
- Email To RSS
- Web Hook to FB&Twitter
- One Time Message Serve
- RSS Atom Subscribe
- Twitter Followback
- SoundCloud oEmbed (native) Feed
- SoundCloud oEmbed (embedly) Feed
- Instagram Media Sync to Dropbox
Modules
Extras