Jump to content






Photo - - - - -

XML-RPC, MetaWeblog API

Posted by W1lz0r, 09 May 2006 · 99 views

Poll: Next version versioning (67 member(s) have cast votes)

Version number of the next version?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote
I just finished up on the XML-RPC metaweblog API for the Blog. I guess it still has some rough edges, but those will be ironed out in due time.

This proved to be more complex then expected. I have been working with Matt and Brandon on IPB's (and converge's) XML-RPC api classes. These are very powerfull, but needed some changes to be able to use them for the MetaWeblog API.

The following methods are supported by the API:
  • getCategories
  • getRecentPosts
  • newPost
  • editPost
  • getPost
  • getUsersBlogs
  • getUserInfo
  • deletePost

My personal tests are promissing. But obviously this is one of those things that needs extensive testing. It is likely that we will try this on IPSBeyond at some point. This will also allow me to test the pinging of Blog services.

From an admin perspective you have the setting to enable/disable the API. If enabled each user has to enable it on their own Blog and set a password. It is on purpose that we use a different password for this API.

Some of the MetaWeblog API's methods are actually Blogger API methods. I am considering adding the full blogger API too (as most of this is allready done). If you want more API's please place a comment on this entry. I cannot promise I'll add them, but the more the merrier (oh boy, I have no clue if that is spelled correctly).

I am pretty happy with the end result. With the pinging and XML-RPC API the Blog has grown into a fully featured Blogging application. This does not mean this is it... I still have things on my list. Some of it will make it into the next version and unfortunatly some of it will have to be moved to the next-next.

To conclude this entry. Do you think the next version will have to be versioned 1.3 or 2.0? I personally tend towards 1.3.





With converge coming out, do you think you will convert the blog or a version of it into a stand alone application?  original.gif  I voted 2.0 - but I think it depends on what other features come out, personally I think the first part of the version should match with IPB.

Well done on the features Wizzy thumbsup.gif

Edit: You have a bug - I voted for 2.0, total votes is 0, but "You have already voted in this poll " something is broken!
Nice... a hate it when these things happen. Will check it out.
I second that ... I'm not exactly sure what you have planned, but 1.3 is more of where I'm leaning.

I too think that now with converge and the core that this should become its own app (although free to those who have already paid for the module version wink.gif)

Keith
Hi, that is a bug  not only in your  Blog. I got that  problem in  1.2.3  too...

To fix the poll issue open modules/blog/show.php around line 2289 change from:
CODE
             $this->ipsclass->DB->exec_query( array( 'update' => 'blog_polls',                                                            'set'    => "votes=votes+1,choices='{$entry['choices']}'",                                                            'where'  => "poll_id={$entry['poll_id']}" ) );
to:
CODE
             $this->ipsclass->DB->build_and_exec_query( array( 'update' => 'blog_polls',                                                            'set'    => "votes=votes+1,choices='{$entry['choices']}'",                                                            'where'  => "poll_id={$entry['poll_id']}" ) );
Hi,
that doesn't work cat.gif I found the code in line 2281 and i changed

CODE
$this->ipsclass->DB-> exec_query( array( 'update' => 'blog_polls',


to

CODE
$this->ipsclass->DB->build_and exec_query( array( 'update' => 'blog_polls',


Then I get

Parse error:  syntax error, unexpected T_STRING in /www/funny/modules/blog/show.php on line 2281
QUOTE
$this->ipsclass->DB->build_and_exec_query( array( 'update' => 'blog_polls',
We have installed a pre-alpha 1.3 release of the Blog on IPSBeyond. Anyone who has a Blog there can test out the new XML-RPC api. Please let me know any problems that might come up.
I also added the Blogger API (as it was almost done anyway).
So it's to be 1.3 not 2.0?  Looking good however.
I would rather see 2.0.0 or 1.5.0
Looking good W1lz0r .. XML-RPC is groovy original.gif
* getCategories     * getRecentPosts     * newPost     * editPost     * getPost     * getUsersBlogs     * getUserInfo     * deletePost  Are those the same commands for blogger.com, wordpress and the other ones?
Yes, these are supported.  I tested it with Word 2007 as well (which also supports posting to Blogs using the metaweblog API. And this worked too.

Disclaimer

This blog contains my personal views and does not represent IPS, Inc. in any way.

May 2012

S M T W T F S
  12345
6789101112
13141516171819
2021 22 23242526
2728293031  

Search My Blog

Recent Entries

Latest Visitors

0 user(s) viewing

0 members, 0 guests, 0 anonymous users

Recent Comments