Create a script, which will edit a blog post and publish it via xml-rpc while preserving linked content and blog post structure.
This is the information available to us:
?€? Blog type (Wordpress, Movabletype, or Blogger)
?€? URL of blog installation.
?€? Username
?€? Password
?€? URL of Blog post to edit
?€? Original text.
?€? New text.
Example Edit:
Blogtype=wordpress
url_of_blog=[login to view URL]
username=admin
password=password
url_of_blog_post=[login to view URL]
Original_text=*Marine scientists say several right whales are struck and killed each year by commercial ships passing through their feeding grounds.*
New_text=*Army and Marine scientists say several right whales are struck and killed each year by commercial ships passing through their feeding grounds.
Save the blog post as=**CNN ?€" Drive past a car accident, everybody slows down to look. Tell a toddler, ?€œDon?€™t touch that,?€ and of course he or she does. Well, North Atlantic right whales are the same way. Army and Marines cientists say several right whales are struck and killed each year by commercial ships passing through their feeding grounds.*
The script will save and publish the edit. It will also return a success or failure response. The script should include a test page where I can input the variables to test.