Download the PHP package comodojo/metaweblog without Composer
On this page you can find all versions of the php package comodojo/metaweblog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download comodojo/metaweblog
More information about comodojo/metaweblog
Files in comodojo/metaweblog
Package metaweblog
Short Description A legacy metaweblog-compliant rpc interface
License MIT
Homepage https://comodojo.org
Informations about the package metaweblog
comodojo/metaweblog
A metaweblog rpc client.
This is the development branch, please do not use it in production
This lib is intended to be used as basic client for many blog platforms (such as wordpress) or to generate testing cases for rpc server.
Installation
Install composer, then:
composer require comodojo/metaweblog
Usage example
Getting recent posts from a blog:
Supported methods
This library supports the whole metaweblog API:
-
getPost($id)
: retrieve a post from weblog -
getRecentPosts(/*optional, default 10*/ $howmany)
: get$howmany
posts from blog -
newPost($struct, /*optional, default true*/ $publish)
: create new post -
editPost($postId, $struct, /*optional, default true*/ $publish)
: edit post referenced bypostId
-
deletePost($postId, /*optional, default false*/ $appkey, /*optional, default false*/ $publish)
: delete a post referenced bypostId
-
getCategories()
: retrieve a list of categories from weblog -
newMediaObject($name, $mimetype, $content, /*optional, default false*/ $overwrite)
: upload a new media to weblog usingmetaWeblog.newMediaObject
call -
getTemplate($template_type, /*optional, default false*/ $appkey)
: get template -
setTemplate($template, $template_type, /*optional, default false*/ $appkey)
: set template getUsersBlogs(/*optional, default false*/ $appkey)
: returns information about all the blogs a given user is a member of
Refer to comodojo/metaweblog API for more detailed informations about methods.
RPC client and transport options
The getRpcClient()
method allows access to rpc client options (and also transport options).
For example, to get recent post from a blog listening on port 8080:
Other setters/getters
-
Get/set blog ID
- Get/set encoding
Documentation
Contributing
Contributions are welcome and will be fully credited. Please see CONTRIBUTING for details.
License
comodojo/metaweblog
is released under the MIT License (MIT). Please see License File for more information.