是否可以使用 Wordpress API 在 wordpress.com 上发帖? [英] Is it possible to use Wordpress API to make posts on wordpress.com?

查看:45
本文介绍了是否可以使用 Wordpress API 在 wordpress.com 上发帖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 wordpress API 可用于在您自己的服务器/网站上托管的 wordpress 博客上发帖.但是,是否也可以使用 api 在 wordpress.com 上托管的博客上发帖?如果是这样,我在哪里可以找到详细信息,例如向其发出 api 请求的 URL 等?

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?

目前,我只对在 wordpress.com 上托管的博客中添加新帖子并验证登录信息感兴趣(因此任何无需更改任何内容即可验证登录信息的功能,例如返回帖子数量的方法)博客,就可以了).

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).

我将使用 PHP,最好使用 XML-RPC 来发出 API 请求.

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

推荐答案

是的,您可以使用 API.您需要的网址是 http://.wordpress.com/xmlrpc.php

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

我已经使用 Windows Live Writer 应用程序发布到我自己的 wordpress.com 博客,在设置阶段,这是它要求我提供的数据.

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.

至于建议使用只读调用来测试登录,恐怕我对 API 的了解非常 生疏,所以我只能建议查看 API 文档.

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

这篇关于是否可以使用 Wordpress API 在 wordpress.com 上发帖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆