Sha256: c1d54f43a05b83495b00626053f2454afe7cd18dd148c4bfe7671b574b6ecc4c
Contents?: true
Size: 1023 Bytes
Versions: 1
Compression:
Stored size: 1023 Bytes
Contents
module Ubiquitously module Shoutwire class Account < Ubiquitously::Service::Account def login page = agent.get("http://shoutwire.com/login") form = page.form_with(:name => "TemplateMainForm") form["ctl06$Username"] = username form["ctl06$Password"] = password page = form.submit authorize!(page.url.downcase != "http://shoutwire.com/login") end end class Post < Ubiquitously::Service::Post def create page = agent.get("http://shoutwire.com/submit") form = page.form_with(:name => "TemplateMainForm") form["ctl06$txtLink"] = token[:url] page = form.submit form = page.form_with(:name => "TemplateMainForm") form["ctl06$txtTitle"] = token[:title] form["ctl06$txtDescription"] = token[:description] #page = form.submit # has a captcha, not done unless debug? page = form.submit end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.1.0 | lib/ubiquitously/services/shoutwire.rb |