简体   繁体   中英

Is it possible to use Wordpress API to make posts on wordpress.com?

I'm aware that the wordpress API can be used to make posts to wordpress blogs hosted on your own server/website. However, is it possible to also make posts to blogs hosted on wordpress.com using the api? If so, where can I find the details such as the URLs to which to make the api requests, etc?

Currently I'm only interested in adding new posts to blogs hosted on wordpress.com and verifying the login info (so any function which will verify the login info without changing anything, eg a method which returns the number of posts in the blog, would be fine).

I will be using PHP and preferably use XML-RPC to make the API requests.

Yes, you can use the API. The url you'll need is http://<blogname>.wordpress.com/xmlrpc.php

I have made use of the Windows Live Writer application to post to my own wordpress.com blog, and in the setup phase, this is the data it asked me to provide.

As for suggesting a read-only call to test login, I'm afraid my knowledge of the API is very rusty, so I can only suggest looking at the API docs.

HTH

hi look for http://codex.wordpress.org/XML-RPC_wp ,where u can find u all want

have dream day

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM