express-ifttt

0.0.1 • Public • Published

express-ifttt

An IFTTT WordPress XML-RPC proxy middleware for express

Usage

var express = require('express');
var ifttt = require('express-ifttt');
var app = express();
 
app.get('/xmlrpc.php', ifttt, function (req, res) {
  console.log(req.data);
  /* req.data should look something like the object below.
  {
    username: 'username',
    password: 'password',
    title: 'article title',
    description: 'article content',
    categories: [ 'category1', 'category2' ],
    mt_keywords: [ 'keyword1', 'keyword2' ],
    post_status: 'publish'
  }
  */  
  res.send(200);
});
 
// Note: This web server should be accessible from port 80
app.listen(3000);

Package Sidebar

Install

npm i express-ifttt

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • overra