Skip to content

nambrot/xmlrpc_controller

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

XmlrpcController

Small gem to accept XMLRPC calls in your controller, written for providing Webhooks as a IFTTT trigger by pretending to be a Wordpress blog. Entirely inspired from femto113/node-ifttt-webhook which is entirely inspired from captn3m0/ifttt-webhook

How to use

For ITTT

class RpcController < ApplicationController
  include XmlrpcController
  # you want to be selective with this
  skip_before_filter :verify_authenticity_token
  
  before_filter :ifttt_webhook_defaults

  # override when needed, by default it will POST a request to the url as specified in the tags, body is the payload
  def ifttt_new_post(title, body, categories, tags)
  end
  
end

Other Uses

The module will call try to call the method defined on the controller as specified in the RPC call with a Nokogiri Object as the argument.

About

Small gem to accept XMLRPC calls in your controller, written for providing Webhooks as a IFTTT trigger by pretending to be a Wordpress blog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages