class Yapra::Plugin::Config::WebPost

Config::WebPost – Yuanying

post to web page with WWW::Mechanize agent.

- module: Config::WebPost
  config:
    url: http://www.pixiv.net/index.php
    params:
      pixiv_id: yuanying
      pass: password-dayo

Public Instance Methods

run(data) click to toggle source
# File lib-plugins/yapra/plugin/config/web_post.rb, line 16
def run(data)
  agent.post(config['url'], config['params'])
  data
end