-
Notifications
You must be signed in to change notification settings - Fork 117
Web Hook Template To FB And Twitter
cloudspark edited this page Nov 23, 2013
·
1 revision
Create a Template Channel
POST /rest/channel
{
action : "template.text_template",
name : "Generic Wrapper"
config : {
}
}
RESPONSE
{
id : "template channel id"
}
Create a Facebook Wall Post Channel
POST /rest/channel
{
action : "facebook.post_timeline_mine",
name : "Post To My Timeline"
config : {
}
}
RESPONSE
{
id : "facebook channel id"
}
Create a Twitter Status Update
POST /rest/channel
{
action : "twitter.status_update",
name : "Twitter Status Update"
config : {
}
}
RESPONSE
{
id : "twitter channel id"
}
Create a HTTP bip with a source edge pointing to Templater, with 2 edges pointing to Facebook + Twitter
POST /rest/bip
{
type : "http",
"hub": {
"template channel id": {
"transforms": {
"facebook channel id": {
"message": "[%template channel id#message%]"
},
"twitter channel id": {
"status": "[%template channel id#message%]"
}
},
"edges": [
"twitter channel id",
"facebook channel id"
]
},
"source": {
"transforms": {
"template channel id": {
"message": "New Status [%source#title%]"
}
},
"edges": [
"template channel id"
]
}
}
}
RESPONSE
{
name : "J6J5IVA" // auto generated
_repr : "http://localhost/bip/http/J6J5IVA"
}
you can then fanout a message by calling http://localhost/bip/http/J6J5IVA?title=hi there!
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