gpt4 book ai didi

ssl - Zoho Creator API 集成基本授权 postUrl()

转载 作者:太空宇宙 更新时间:2023-11-03 13:21:34 24 4
gpt4 key购买 nike

这是我的代码,我收到了 postural() 调用的内部错误。顺便说一下,还有一件事我想知道我们如何使用 verify_peer 到 0(零)来表示不使用 SSL 东西。我的代码有什么问题?

void SendSMS(SMS SMSObject)
{
//CONFIGURATION
URL = "https://example.com/send_ack.php";

wbLogin = "wbLogin";
wbPwd = "wbPwd";
wbAccount = "wbAccount";
label = "label";
applicationName = "ADR SMS v1.0";

//BASE64 ENCODING
Base64Encoded = zoho.encryption.base64Encode("httpLogin:httpPwd");
AuthorizationBasic = "Authorization: Basic " + Base64Encoded;

//HEADER
HeaderMap = Map();
HeaderMap.put("content-type", "application/x-www-form-urlencoded");
HeaderMap.put("Authorization", AuthorizationBasic);

//REQUEST
RequestMap = Map();
RequestMap.put("compte", wbAccount);
RequestMap.put("op", 1);
RequestMap.put("type", 0);
RequestMap.put("dt", zoho.currentdate.getDay());
RequestMap.put("hr", zoho.currenttime.getHour());
RequestMap.put("mn", zoho.currenttime.getMinutes());
RequestMap.put("label", label);
RequestMap.put("dest_num", "phone_number");
RequestMap.put("msg", "ZC Testing");
RequestMap.put("ref", "ZC");

//CALL POSTURL
Result = postUrl(URL, RequestMap, HeaderMap, false);

//DEBUG
info Result;
}

最佳答案

为此目的使用 Zoho Creator API。

关于ssl - Zoho Creator API 集成基本授权 postUrl(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50635277/

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