Prestashop webservice更新产品价格

时间:2012-03-27 15:03:24

标签: vb.net web-services

我使用以下代码获取产品表单

    Dim Req As WebRequest = WebRequest.Create("http://mysite.com/api/products/10047")
    Req.Method = "GET"
    Req.Credentials = New NetworkCredential("????????????????????????????????", "")
    Dim Resp As HttpWebResponse = CType(Req.GetResponse(), HttpWebResponse)
    If Resp.StatusCode = HttpStatusCode.OK Then
        Dim dataStream As Stream = Resp.GetResponseStream()
        Dim reader As New StreamReader(dataStream)
        Dim R As String = reader.ReadToEnd()
        MsgBox(R)
        reader.Close()
        dataStream.Close()
    Else
        MsgBox(Resp.StatusCode & vbCrLf & Resp.StatusDescription)
    End If
    Resp.Close()

我从数据库中获取了10047产品的所有信息。

如何更新此产品的价格?

0 个答案:

没有答案