开发者

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

开发者 https://www.devze.com 2022-12-17 11:38 出处:网络
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

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 whic开发者_Go百科h 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, e.g 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号