Sha256: 2c7fee3a7da6f831bf518b63adc4a72c9da3533aab8fcc2cddfd70e252f283eb
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
module Ubiquitously module Zabox class Account < Ubiquitously::Service::Account def login page = agent.get("http://www.zabox.net/login.php") form = page.forms.detect { |form| form.form_node["id"] == "thisform" } form["username"] = username form["password"] = password form.checkboxes.first.check page = form.submit authorize!(page.parser.css("form .error").text !~ /ERROR/i) end end class Post < Ubiquitously::Service::Post def create page = agent.get("http://www.zabox.net/submit") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.1.0 | lib/ubiquitously/services/zabox.rb |