提示appid 无效
try {var pvars = new Dictionary<string, string>
{
{"Content-Type", "application/json"},
{"X-Gizwits-Application-Id", "c5cd9be8f7d5462fbaff70956bfe0662"}
};
Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);
Easy easy = new Easy();
Easy.WriteFunction wf = new Easy.WriteFunction(OnWriteData);
easy.SetOpt(CURLoption.CURLOPT_URL, "http://api.gizwits.com/app/users");
easy.SetOpt(CURLoption.CURLOPT_HTTPHEADER, pvars);
easy.SetOpt(CURLoption.CURLOPT_HTTPPOST, true);
easy.SetOpt(CURLoption.CURLOPT_WRITEFUNCTION, wf);
easy.Perform();
easy.Cleanup();
Curl.GlobalCleanup();
} catch(Exception ex) {
Console.WriteLine(ex);
}
Console.ReadKey();
请各位高手看看,怎么提示appid 无效 请求接口 http://api.gizwits.com/app/users
返回错误代码
{"error_message":"appid invalid!","error_code":9003,"detail_message":null}
还要设置什么,我的应用id就是添加的微信应用
可以用些小工具来手发请求验证下。
你的appid是有效的,检查下发送的内容其他吧
页:
[1]