Packageeu.orangeflash.webapis.wp
Classpublic class WP
InheritanceWP Inheritance Client Inheritance flash.events.EventDispatcher
ImplementsIClient
SubclassesWordPress

Clint for WordPress baised blogs.



Public Properties
 PropertyDefined by
  blogID : String
Unique blog id.
WP
  lastResult : Object
[read-only] Stores last result from last invocation of Method.result event.
WP
  login : String
You blog login.
WP
  password : String
Your password.
WP
 InheritedserviceURL : String
Indicates service end point (i.e http://orangeflash.eu/xmlrpc.php).
Client
Protected Properties
 PropertyDefined by
 Inheritedresult : IMethodResponse
Client
 Inheritedurl : String
Client
Public Methods
 MethodDefined by
  
WP()
WP
  
deletePost(postID:String, publish:Boolean = true):WPMethod
Method, invokes blogger.deletePost operation.
WP
  
editPost(postID:String, content:Content, publish:Boolean):WPMethod
Method, invokes metaWeblog.editPost operation.
WP
  
Method, invokes mt.getCategoryList, returns array of the Category instances
WP
  
getPost(postID:String):WPMethod
Method, invokes metaWeblog.getPost operation, request returns Content - information about a specific post.
WP
  
getPostCategories(postID:String):WPMethod
Method, returns categories for given post
WP
  
getRecentPosts(numberOfPosts:int):WPMethod
Returns a list of the most recent posts in the system.
WP
  
getRecentPostTitles(numberOfPosts:int):WPMethod
Returns a bandwidth-friendly list of the most recent posts in the system.
WP
  
getTrackbackPings(postID:String):WPMethod
Retrieve the list of TrackBack pings posted to a particular entry.
WP
  
invoke(methodName:String, ... args):IMethodCall
Invokes XML-RPC operation.
WP
  
newPost(content:Content, publish:Boolean):WPMethod
Creates a new post, and optionally publishes it.
WP
Events
 EventSummaryDefined by
 Inherited  Client
 Inherited  Client
 Inherited  Client
Property detail
blogIDproperty
blogID:String  [read-write]

Unique blog id. Please remmember, that blogID, password and login properties have to be set, before you start to use client.

This property can be used as the source for data binding.

Implementation
    public function get blogID():String
    public function set blogID(value:String):void
lastResultproperty 
lastResult:Object  [read-only]

Stores last result from last invocation of Method.result event.

This property can be used as the source for data binding.

Implementation
    public function get lastResult():Object
loginproperty 
login:String  [read-write]

You blog login. Please remmember, that blogID, password and login properties have to be set, before you start to use client.

This property can be used as the source for data binding.

Implementation
    public function get login():String
    public function set login(value:String):void
passwordproperty 
password:String  [read-write]

Your password. Please remmember, that blogID, password and login properties have to be set, before you start to use client.

This property can be used as the source for data binding.

Implementation
    public function get password():String
    public function set password(value:String):void
Constructor detail
WP()constructor
public function WP()
Method detail
deletePost()method
public function deletePost(postID:String, publish:Boolean = true):WPMethod

Method, invokes blogger.deletePost operation. Deletes a post.

Parameters
postID:String — String, post unique id.
 
publish:Boolean (default = true) — Boolean, honestly i dont know what does it mean.

Returns
WPMethod — WPMethod reference.
editPost()method 
public function editPost(postID:String, content:Content, publish:Boolean):WPMethod

Method, invokes metaWeblog.editPost operation. Updates information about an existing post.

Parameters
postID:String — String, post unique id.
 
content:ContentContent, new content of the post.
 
publish:Boolean — Boolean, publish state, true if post should be published, and false if draft.

Returns
WPMethod — WPMethod reference.
getCategories()method 
public function getCategories():WPMethod

Method, invokes mt.getCategoryList, returns array of the Category instances

Returns
WPMethod — WPMethod reference.
getPost()method 
public function getPost(postID:String):WPMethod

Method, invokes metaWeblog.getPost operation, request returns Content - information about a specific post.

Parameters
postID:String — String, post unique id.

Returns
WPMethodContent instance.
getPostCategories()method 
public function getPostCategories(postID:String):WPMethod

Method, returns categories for given post

Parameters
postID:String — String, unique post id.

Returns
WPMethod — WPMethod instance.
getRecentPosts()method 
public function getRecentPosts(numberOfPosts:int):WPMethod

Returns a list of the most recent posts in the system.

Parameters
numberOfPosts:int — Ammount of post to be returned

Returns
WPMethod — WPMethod instance.
getRecentPostTitles()method 
public function getRecentPostTitles(numberOfPosts:int):WPMethod

Returns a bandwidth-friendly list of the most recent posts in the system.

Parameters
numberOfPosts:int — Ammount of titles to be returned

Returns
WPMethod — WPMethod instance.
getTrackbackPings()method 
public function getTrackbackPings(postID:String):WPMethod

Retrieve the list of TrackBack pings posted to a particular entry. This could be used to programmatically retrieve the list of pings for a particular entry, then iterate through each of those pings doing the same, until one has built up a graph of the web of entries referencing one another on a particular topic.

Parameters
postID:String — String, post unique id.

Returns
WPMethod — WPMethod instance.
invoke()method 
public override function invoke(methodName:String, ... args):IMethodCall

Invokes XML-RPC operation.

Invokes method on server.

Parameters
methodName:String — String, method name.
 
... args — Rest, method arguments.

Returns
IMethodCall — IMethodCall instance.
newPost()method 
public function newPost(content:Content, publish:Boolean):WPMethod

Creates a new post, and optionally publishes it.

Parameters
content:ContentContent instance with post information.
 
publish:Boolean — Boolean.

Returns
WPMethod — WPMethod instance.