Created
August 31, 2015 20:40
-
-
Save solanoize/b4565f381125adc05729 to your computer and use it in GitHub Desktop.
Aplikasi Wordpress Easy Posting - Fitur Login - Coding Login - https://trello.com/b/m09ayBut/aplikasi-wordpress-easy-posting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from wordpress_xmlrpc import Client | |
| from wordpress_xmlrpc.methods.users import GetUserInfo | |
| # login | |
| wp_url = "https://yourblogname.wordpress.com/xmlrpc.php" | |
| wp_user = "usernamewp" | |
| wp_pass = "passwordwp" | |
| wp = Client(wp_url, wp_user, wp_pass) | |
| try: | |
| username = wp.call(GetUserInfo()) | |
| print "Selamat datang {}".format(username) | |
| except: | |
| print "Login gagal" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment