def upload_file(file)
      struct = {
        :name => File.basename(file.path),
        :type => MimeMagic.by_magic(file).type,
        :bits => XMLRPC::Base64.new(File.open(file.path, "r").read),
        :overwrite => true
      }
      return blog_api_call("wp.uploadFile", struct)
    end
def upload_file(file)
      struct = {
        :name => File.basename(file.path),
        :type => MimeMagic.by_magic(file).type,
        :bits => XMLRPC::Base64.new(File.open(file.path, "r").read),
        :overwrite => true
      }
      return blog_api_call("wp.uploadFile", struct)
    end
get_page_list