Is there any example of the XML structure for WordPress' XMLRPC service? Specifically with the metaWeblog.newPost method inside.

Thanks a lot!

有帮助吗?

解决方案

I think you'll find that the Atom Publishing Protocol ("AtomPub") is a much more well-defined, well-documented, easy to use API than Metaweblog's XMLRPC API. The format of AtomPub is that of the Atom Syndication Format which is very cleanly defined and has lots of implementations in many different languages.

AtomPub has been supported in WordPress since version 2.3, so unless you're on an older version than that, it should just be to POST your <entry> documents to your heart's desire.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top