简体   繁体   English

iOS - Wordpress Swift SDK?

[英]iOS - Wordpress Swift SDK?

I'm building an app and I'd like to use Wordpress as the backend for my users.我正在构建一个应用程序,我想使用 Wordpress 作为我的用户的后端。 For example, I want my app user to be able to login to their account that they registered on my Wordpress site, and then post to and from it from my native application.例如,我希望我的应用程序用户能够登录到他们在我的 Wordpress 站点上注册的帐户,然后从我的本机应用程序向该帐户发送信息或从该帐户发送信息。 Does Wordpress have a swift SDK that allows me to do this? Wordpress 是否有 swift SDK 允许我这样做?

You need to make REST requests and auth too.您还需要发出 REST 请求和授权。 Take a look herehttps://wpengine.com/resources/using-wordpress-rest-api-plugin/在这里看看https://wpengine.com/resources/using-wordpress-rest-api-plugin/

On Swift side you can use Alamofire for communication.在 Swift 端可以使用 Alamofire 进行通信。

Also if you want more API routes you should install some of API/REST WP plugin此外,如果你想要更多 API 路线,你应该安装一些 API/REST WP 插件

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

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