首页 > 解决方案 > 从 MySql 数据库中获取 cUrl

问题描述

我现在正在使用 Visual Studio 2017 中的 Xamarin 创建一个 android 应用程序,我想将一些数据插入 MySql DB,我想使用 REST API 来完成,但我实际上不知道如何获取 cUrl 进行连接REST API 与我的数据库,例如“ http://jsonplaceholder.typicode.com/posts” ;” 这将返回我们可以与 api 一起使用的 Json 结构,但不知道如何为我的数据库创建或获取该 cUrl

标签: androidmysqlvisual-studiorestxamarin

解决方案


您需要开发 API(后端)来以 JSON 格式检索或发送信息。因此,使用 POST 或 GET 或其他方法,您将能够与数据库通信 在此处查看更多详细信息 https://docs.microsoft.com/fr-fr/xamarin/xamarin-forms/data-cloud/sumption/rest


推荐阅读