简体   繁体   English

如何使用JSON-API从iPhone应用程序直接将数据插入WordPress数据库?

[英]How to insert data directly into WordPress database from iPhone app using JSON-API?

I am developing IOS app where users will be login into my WordPress site and complete the form and send the data to WordPress Database. 我正在开发IOS应用程序,用户将登录到我的WordPress网站并完成表格并将数据发送到WordPress数据库。 Here I am using JSON API for Wordpress to validate users. 在这里,我使用WordPress的JSON API来验证用户。 Is there any plugin which allow me to enter data to WP database directly? 有没有允许我直接将数据输入到WP数据库的插件?

You can use the JSON API to add a post to Wordpress. 您可以使用JSON API将帖子添加到Wordpress。 You do have to implement Oauth2 if you want to do so. 如果需要,您必须实现Oauth2。 You could use one of these libraries for that: https://cocoapods.org/?q=oauth 您可以为此使用以下库之一: https : //cocoapods.org/?q=oauth

See the API documentation for information about posting something: https://developer.wordpress.com/docs/api/ 有关发布内容的信息,请参阅API文档: https : //developer.wordpress.com/docs/api/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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