-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
37 lines (31 loc) · 1.08 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
WordPress XML-RPC Library that communicates with XMLHttpRequest requests.
Both the arguments passed and the return variable are processed as JavaScript objects.
The following WordPress XMLRPC methods (http://codex.wordpress.org/XML-RPC_wp) are available within the lib
wp.getUsersBlogs
wp.getCommentCount
wp.deleteComment
wp.editComment
wp.newComment
wp.getCommentStatusList
wp.getComment
wp.getComments
wp.getPage
wp.getOptions
wp.getPosts
metaWeblog.newPost
How to use it:
var connection = new AddBlogConn("username" , "password", "xmlrpc endpoint URL");
connection.addListener(new AddBlogsListener());
connection.startConn();
The Listener should implement at least these three methods:
function AddBlogsListener(){
}
AddBlogsListener.prototype.connRequestError = function(errorMsg){
EW.LogSystem.error("AddBlogsListener.connRequestError");
}
AddBlogsListener.prototype.connRequestStopped = function(){
EW.LogSystem.debug("AddBlogsListener.connRequestStopped");
}
AddBlogsListener.prototype.connRequestCompleted = function(userBlogs){
EW.LogSystem.debug("AddBlogsListener.connRequestCompleted");
}