【问题标题】:Adding record to Zoho creator向 Zoho 创建者添加记录
【发布时间】:2017-02-25 04:10:52
【问题描述】:

您好,我正在使用以下代码使用 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;
 }

【问题讨论】:

  • 查看是否过期?
  • @vivek 这似乎不太可能,但我会检查它。
  • 你调用的页面是否正确?
  • 你得到什么回应??
  • @Aristos 你是对的,网址是错误的。谢谢

标签: c# asp.net zoho


【解决方案1】:

原来,我调用的网址是错误的。

正确的url格式是:

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

【讨论】:

    猜你喜欢
    • 2015-10-17
    • 2021-10-19
    • 1970-01-01
    • 2017-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多