|
@@ -10,9 +10,11 @@ from wordpress_xmlrpc.methods.posts import GetPosts, NewPost, EditPost
|
|
from wordpress_xmlrpc.methods.comments import NewComment, EditComment
|
|
from wordpress_xmlrpc.methods.comments import NewComment, EditComment
|
|
from wordpress_xmlrpc.methods.users import GetUserInfo
|
|
from wordpress_xmlrpc.methods.users import GetUserInfo
|
|
|
|
|
|
|
|
+from config import *
|
|
|
|
+
|
|
# Use Wordpress account - not the mysql credentials
|
|
# Use Wordpress account - not the mysql credentials
|
|
# Todo: use scopus later !!!
|
|
# Todo: use scopus later !!!
|
|
-wp = Client('http://localhost/~kopmann/ufo2/xmlrpc.php', 'ufo', '$ipepdv$')
|
|
|
|
|
|
+wp = Client(wp_api_url,wp_user,wp_password)
|
|
#print wp.call(GetPosts())
|
|
#print wp.call(GetPosts())
|
|
|
|
|
|
#print wp.call(GetUserInfo())
|
|
#print wp.call(GetUserInfo())
|