No commit activity in last 3 years
No release in over 3 years
Utility methods to work with XMLRPC
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

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.