Module: WpWrapper::Modules::Api
- Included in:
- Client
- Defined in:
- lib/wp_wrapper/modules/api.rb
Instance Method Summary collapse
Instance Method Details
#enable_xml_rpc_api ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/wp_wrapper/modules/api.rb', line 5 def enable_xml_rpc_api if (login) = self.mechanize_client.open_url(get_url(:write_options)) if () form = .form_with(:action => /options\.php/i) form.checkbox_with(:name => 'enable_xmlrpc').checked = true updated_page = form.submit(form..first) end end end |