0.0
No commit activity in last 3 years
No release in over 3 years
A ruby class for interacting with the MetaWebLog API used by many blogging systems.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

rmetaweblog

A ruby class for interacting with the MetaWebLog API used by many blogging systems. https://rubygems.org/gems/rmetaweblog/versions/1.0

Installing:

gem install rmetaweblog

Full example

require 'rmetaweblog'

#This is an example to interact with the Apache Roller java based blogging application:

#Initialize RMetaWebLog with: host, path, port(optional), {options}

blog = RMetaWebLog.new("hostname", "/roller/roller-services/xmlrpc", {
        :blog_url => "http://hostname:8080/roller/blogname",
        :blog_id => "blogid",
        :api_user => "username",
        :api_pass => "password"
        })

#Upload an image

img_url = blog.new_media_object("filename.jpg", "image/jpeg", "/location/of/filename.jpg")

#img_url in now in this case: http://hostname:8080/roller/blogname/resource/filename.jpg 

#Create a new post to blog

blog.new_post("title","content")

#Most of class methods work in the same manner, just look at the class if you want to do anything else.