嗨,我已经为此奋斗了几天,但我无处可去
Prestashop 一个 php 应用程序是一个网络购物车。它使用 REST 服务和 CRUD 调用。1. Crud如何与rest一起使用?他们是两种不同类型的电话?2. 如何使用 crud\rest 进行身份验证?我是地铁应用程序的新手,真的需要一些指导谢谢
我有以下代码
private string clientId = "1LNTNMSMY285VLT28K7L345r345345T";
private string logonUristring = "dignity-network.org/api/";
private string redirectUristring = "http://dignity-network.org/api/";
private string header = "http://";
client = new HttpClient();
client.BaseAddress = new Uri(string.Format("{0}{1}@{2}", header, clientId, logonUristring));
protected async void opened()
{
var task = client.GetAsync("products");
HttpResponseMessage response = await task;
response.EnsureSuccessStatusCode(); //gets back 200 success code
string content = await response.Content.ReadAsStringAsync();
MessageDialog msg = new MessageDialog(content, "My MessageDialog Box");
}