天道酬勤,学无止境

wufoo

Create Wufoo webhook with PUT request in ColdFusion

I'm having troubles with building correct PUT request to the Wufoo. In all my attempts I see the same error: 404 A WebHook must contain a url parameter. Here is the version with JSON data type: <cfset local.action = "forms/#local.formHash#/webhooks.json" /> <cfset local.request = {"url" : local.webHookURL, "handshakeKey" : local.webHookKey} /> <cfset local.request["handshakeKey"] = local.webHookKey /> <cfhttp url="#local.baseURL##local.action#" method="put" username="#local.apiKey#" password="#local.apiPass#"> <cfhttpparam type="header" name="Content-Type" value="application/json; charset=UTF

2021-09-09 04:59:57    分类:问答    coldfusion   cfhttp   webhooks   wufoo

如何扫描单行参数字符串并返回两个数组?(How to scan single line params string and return two arrays?)

问题 我有以下单行字符串: params = {"FieldStructure"=>"{\"Fields\":[{\"Title\":\"Company Name\",\"Type\":\"text\",\"ID\":\"Field6\"},{\"Title\":\"Email\",\"Type\":\"email\",\"ID\":\"Field5\"}]}", "Field6"=>"tettetette", "Field5"=>"test@tessss.pl", "EntryId"=>"25"} 格式化版本: params = { "FieldStructure"=>" {\"Fields\":[ {\"Title\":\"Company Name\",\"Type\":\"text\",\"ID\":\"Field6\"}, {\"Title\":\"Email\",\"Type\":\"email\",\"ID\":\"Field5\"}]}", "Field6"=>"tettetette", "Field5"=>"test@tessss.pl", "EntryId"=>"25" } 我想收到: [["Company Name", "Field6"], ["Email", "Field5"]] 我尝试使用扫描方法但有一些问题: >> fields = params[

2021-08-11 05:34:17    分类:技术分享    ruby-on-rails   ruby   regex   json   wufoo

How to scan single line params string and return two arrays?

I have following single line string: params = {"FieldStructure"=>"{\"Fields\":[{\"Title\":\"Company Name\",\"Type\":\"text\",\"ID\":\"Field6\"},{\"Title\":\"Email\",\"Type\":\"email\",\"ID\":\"Field5\"}]}", "Field6"=>"tettetette", "Field5"=>"test@tessss.pl", "EntryId"=>"25"} Formated version: params = { "FieldStructure"=>" {\"Fields\":[ {\"Title\":\"Company Name\",\"Type\":\"text\",\"ID\":\"Field6\"}, {\"Title\":\"Email\",\"Type\":\"email\",\"ID\":\"Field5\"}]}", "Field6"=>"tettetette", "Field5"=>"test@tessss.pl", "EntryId"=>"25" } I would like to receive: [["Company Name", "Field6"], ["Email"

2021-07-10 04:46:18    分类:问答    ruby-on-rails   ruby   regex   json   wufoo