concrete Service class for making WordPress XML-RPC calls
authors:Authors
[read-only]
Implementation
public function get authors():Authors
blogId:int
[read-write]Implementation
public function get blogId():int
public function set blogId(value:int):void
blogs:Blogs
[read-only]
Implementation
public function get blogs():Blogs
categories:Categories
[read-only]
Implementation
public function get categories():Categories
comments:Comments
[read-only]
Implementation
public function get comments():Comments
connected:Boolean
[read-only]Implementation
public function get connected():Boolean
connecting:Boolean
[read-only]Implementation
public function get connecting():Boolean
pages:Pages
[read-only]
Implementation
public function get pages():Pages
password:String
[read-only]Implementation
public function get password():String
posts:Posts
[read-only]
Implementation
public function get posts():Posts
tags:Tags
[read-only]
Implementation
public function get tags():Tags
username:String
[read-only]Implementation
public function get username():String
public function WPService(endpoint:String, username:String, password:String)
Parameters
| endpoint:String — The main endpoint for the WordPress install eg: http://myblogname.wordpress.com/
|
|
| username:String — The username for this WordPress install
|
|
| password:String — The password for this WordPress install
|
public function connect():void
Find the blogId to allow connections to xmlrpc.php
Makes a call to wp.getUsersBlogs to find out the correct blogId based on the endpoint/username/password
combination. You do not need to call this function directly, as it will be called automatically the first time you
make any method call using any WPMethodGroup.
This is necessary because there seems to be no way to find out what your blogId is without calling
wp.getUsersBlogs and iterating for a match, and blogId is a required parameter in most wp service calls
If you have already set the blogId manually this function will be ignored
public static const XML_RPC:String = "xmlrpc.php"