Need an example how to make this API call from .NET
Prefered VB/C#
-
<form method="POST" action="https://creator.zoho.eu/api/sampleapps/json/sample/form/Employee/record/update">
<input type="hidden" name ="authtoken" value="**********">
<input type="hidden" name ="scope" id="scope" value="creatorapi">
<input type="text" name="criteria" value="Name=Gary">
<input type="text" name="Basic" value="20000">
<input type="text" name="Address" value="UK">
<input type="submit" value="Update Record">
</form>
I tried like this
- Public Function getResponseFromUrl(ByVal url As String, ByVal params As String)
- Dim str As String = ""
- Try
- Dim webreq As HttpWebRequest = WebRequest.Create(url)
- webreq.Method = "POST"
- webreq.ContentType = "application/x-www-form-urlencoded"
- Dim byteArray As Byte() = Encoding.UTF8.GetBytes(params)
- Dim dataStream As Stream = webreq.GetRequestStream()
- dataStream.Write(byteArray, 0, byteArray.Length)
- dataStream.Close()
-
- Dim res As WebResponse = webreq.GetResponse()
- Dim stream As Stream = res.GetResponseStream()
- Dim streamReader As New StreamReader(stream)
- str = streamReader.ReadToEnd
- Catch ex As Exception
- MsgBox(ex.ToString)
- End Try
- Return str.ToString
- End Function
But dont know how to finish it
Original link of this https://www.zoho.eu/creator/help/api/rest-api/rest-api-edit-records.html