admin管理员组文章数量:1289348
We have a web app that will allow users to edit their videos; and add intros, outros, and watermarks. Once the user already done on their video. We need to provide an option to post or syndicate their video as a draft on their WordPress site.
Our plan is to create a WordPress plugin that the user needs to install on their WordPress site. But our problem are the following:
- How can we authenticate our web app to the user's WordPress page?
- Looking int HTTP API most of the options are only for retrieving contents. Is there also a way to create pages?
We have a web app that will allow users to edit their videos; and add intros, outros, and watermarks. Once the user already done on their video. We need to provide an option to post or syndicate their video as a draft on their WordPress site.
Our plan is to create a WordPress plugin that the user needs to install on their WordPress site. But our problem are the following:
- How can we authenticate our web app to the user's WordPress page?
- Looking int HTTP API most of the options are only for retrieving contents. Is there also a way to create pages?
- I am also looking for this, do you have an answer already? – Mark Commented Mar 26, 2013 at 14:07
- I've just started playing around with phonegap to pull data from Wordpress. I'm using the JSON API plugin here: wordpress/plugins/json-api On top of the core functionality for retrieving posts, there are options to create/update/delete, but this must be enabled in the admin. It's not a complete answer, but it could be a good starting point. – TomC Commented Nov 19, 2013 at 19:02
1 Answer
Reset to default 1There's the XML RPC - the Remote Posting Protocol - that is already in use by WP Applications. What you're searching for is wp.newPost
. The API is extensible.
The URL for the XML RPC is
http://example/xmlrpc.php
To send data to WP, use xmlrpc_encode_request()
where the first argument would be wp.newPost
and second one your arguments for the post.
本文标签: apiConnect external web app to wordpress
版权声明:本文标题:api - Connect external web app to wordpress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741411780a2377278.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论