Registriert: Di Jul 01, 2003 18:59 Beiträge: 887 Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
I wonder if it is possible to post from delphi to wordpress. Now wordress features an xml-rpc api. Dont know hot it works. So i ask here before going to examine the wordpress sourcecode. My main concern is being able to also use the custom fields feature available in wordpress.
Why. Because the latest version of wordress features post revisions. And as such it could be made a version control system for software.
So that leads me to 3 questions:
1. How should an xml-rpc message look to be undertand by wordpress. E.g. where can i find documentation on that.
2. How to easy handle xml-rpc messages with delphi.
3. How to integrate items in the delphi ide?
Registriert: Do Sep 02, 2004 19:42 Beiträge: 4158
Programmiersprache: FreePascal, C++
Hmm... Maybe you could simply use a normal POST-HTTP-Request via the TIdHTTP-Component.
If you want to use XML-RPC: Did you already take a look on the XML-RPC page on wikipedia (en)?. As I can read there, you will also need the TIdHTTP component... Probably you will have to pass it also as a POST-Request, with the XML-RPC at some POST-Field... I think you will have to take a look at this page: http://codex.wordpress.org/XML-RPC_Support. And maybe another short look in the described xmlrpc.php from wordpress.
I hope I was able to help you
Greetings Lord Horazont
_________________ If you find any deadlinks, please send me a notification – Wenn du tote Links findest, sende mir eine Benachrichtigung. current projects: ManiacLab; aioxmpp zombofant network • my photostream „Writing code is like writing poetry“ - source unknown
„Give a man a fish, and you feed him for a day. Teach a man to fish and you feed him for a lifetime. “ ~ A Chinese Proverb
Registriert: Di Jul 01, 2003 18:59 Beiträge: 887 Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
Ok i need to format what i want as xml.
Looking at the xmlrpc.php i found out that:
More specificaly i need to call the metaWeblog.newPost/editPost in order to use custom fields. I also get an idea on the xml tags i can use.
Now lets see i can handcode an xml that works... and post that with indy.
Anything you can post via a web browser you can do with Indy. I recently updated a tool i made to extract images from Atlantica Online (For a Wiki im making) so it would login to the Wiki as me and upload the images via the Wiki using HTML's POST. Tho i had to make sure before sending POST/GET's that i had forced a disconnect (Using IdHTTP.Disconnect(False) as the Component can't notify the server... well there is no code under the procedures for it so it will do nothing if you tell it to notify the server) otherwise i would get Connection reset by Peer messages after doing multiple POST/GET's(As the server had disconected but the Indy components still seemed to think they were connected).
Registriert: Do Sep 02, 2004 19:42 Beiträge: 4158
Programmiersprache: FreePascal, C++
So, all you have to do is to fill in your data in XML... I think you do not need a huge library as LibXML to do that, it will be enough to concatenate a few strings together. Good luck
Greetings Lord Horazont
_________________ If you find any deadlinks, please send me a notification – Wenn du tote Links findest, sende mir eine Benachrichtigung. current projects: ManiacLab; aioxmpp zombofant network • my photostream „Writing code is like writing poetry“ - source unknown
„Give a man a fish, and you feed him for a day. Teach a man to fish and you feed him for a lifetime. “ ~ A Chinese Proverb
Mitglieder in diesem Forum: 0 Mitglieder und 8 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.