Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Mi Mai 29, 2024 16:10

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 5 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: post to wordpress from delphi?
BeitragVerfasst: Fr Jan 02, 2009 16:39 
Offline
DGL Member
Benutzeravatar

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?

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Fr Jan 02, 2009 19:08 
Offline
DGL Member
Benutzeravatar

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 networkmy 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


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Fr Jan 02, 2009 20:22 
Offline
DGL Member
Benutzeravatar

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.

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Jan 04, 2009 09:17 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Jul 21, 2004 22:39
Beiträge: 360
Wohnort: UK, Scotland
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).

_________________
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Jan 04, 2009 11:22 
Offline
DGL Member
Benutzeravatar

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 networkmy 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


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 5 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

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.

Suche nach:
Gehe zu:  
cron
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.009s | 14 Queries | GZIP : On ]