Packagecom.absentdesign.core.webapis.wordpress
Classpublic class WPService
InheritanceWPService Inheritance Service Inheritance flash.events.EventDispatcher

concrete Service class for making WordPress XML-RPC calls



Public Properties
 PropertyDefined by
  authors : Authors
[read-only]
WPService
  blogId : int
WPService
  blogs : Blogs
[read-only]
WPService
  categories : Categories
[read-only]
WPService
  comments : Comments
[read-only]
WPService
  connected : Boolean
[read-only]
WPService
  connecting : Boolean
[read-only]
WPService
 Inheritedendpoint : String
Service
  pages : Pages
[read-only]
WPService
  password : String
[read-only]
WPService
  posts : Posts
[read-only]
WPService
  tags : Tags
[read-only]
WPService
  username : String
[read-only]
WPService
Public Methods
 MethodDefined by
  
WPService(endpoint:String, username:String, password:String)
WPService
  
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.
WPService
Public Constants
 ConstantDefined by
  XML_RPC : String = "xmlrpc.php"
[static]
WPService
Property detail
authorsproperty
authors:Authors  [read-only]Implementation
    public function get authors():Authors
blogIdproperty 
blogId:int  [read-write]Implementation
    public function get blogId():int
    public function set blogId(value:int):void
blogsproperty 
blogs:Blogs  [read-only]Implementation
    public function get blogs():Blogs
categoriesproperty 
categories:Categories  [read-only]Implementation
    public function get categories():Categories
commentsproperty 
comments:Comments  [read-only]Implementation
    public function get comments():Comments
connectedproperty 
connected:Boolean  [read-only]Implementation
    public function get connected():Boolean
connectingproperty 
connecting:Boolean  [read-only]Implementation
    public function get connecting():Boolean
pagesproperty 
pages:Pages  [read-only]Implementation
    public function get pages():Pages
passwordproperty 
password:String  [read-only]Implementation
    public function get password():String
postsproperty 
posts:Posts  [read-only]Implementation
    public function get posts():Posts
tagsproperty 
tags:Tags  [read-only]Implementation
    public function get tags():Tags
usernameproperty 
username:String  [read-only]Implementation
    public function get username():String
Constructor detail
WPService()constructor
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
Method detail
connect()method
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

Constant detail
XML_RPCconstant
public static const XML_RPC:String = "xmlrpc.php"