Archive for the tag 'xmlrpc'

Apr 10 2009

Haskell To Wordpress (Snippet)

Published by tim under coding, haskell

A small snippet of code that demonstrates calling into a Wordpress XML-RPC server with Haskell and HaxR.

import qualified Data.Map as Map
import Data.Maybe
import Network.XmlRpc.Client
import Network.XmlRpc.Internals

server = "http://yourserver.wordpress.com/xmlrpc.php"

– extract multiple posts from the XML response
extract :: Value -> [Map String Value]
extract xmlresp =
let ValueArray rs = xmlresp in
map (\v [...]

No responses yet