gpt4 book ai didi

c# - 添加记录到 Zoho creator

转载 作者:太空宇宙 更新时间:2023-11-03 23:09:10 28 4
gpt4 key购买 nike

您好,我正在使用以下代码使用 asp.net c# 将记录添加到 Zoho Creator 表单。但是我收到回复“该表格已从发布中删除。”

我已经在 Zoho creator 检查了表格,它工作正常并且已经发布。

请帮我找出问题。

public partial class WebForm1 : System.Web.UI.Page
{
protected void btnSubmit_OnClick(object sender, EventArgs e)
{
var response = Http.Post("https://creator.zoho.com/saadelboury1/myfirstApp/form-perma/NEWDISTRIBUTOR/record/add/", new NameValueCollection() {
{ "authtoken", "<KEY>" },
{ "scope", "creatorapi" },
{ "First_Name", "John" },
{ "Last_Name", "Doe" },
{ "Email", "someone22@gmail.com" },
});
string result = System.Text.Encoding.UTF8.GetString(response);
Response.Write(result);
}
}
}

public static class Http
{
public static byte[] Post(string uri, NameValueCollection pairs)
{
byte[] response = null;
using (WebClient client = new WebClient())
{
response = client.UploadValues(uri, pairs);
}
return response;
}

最佳答案

原来,我调用的url是错误的。

正确的网址格式是:

https://creator.zoho.com/api/[username]/xml/[application_name]/form/[form_name]/record/add/

关于c# - 添加记录到 Zoho creator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40064989/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com