|
/// 想用JavaScript测试 openAPI ,发现反馈的是空白,怎么回事儿
// 创建匿名用户 [POST]
xmlhttp.open("POST","http://api.gizwits.com/app/users" ,true);
xmlhttp.setRequestHeader("Content-Type","application/json");
xmlhttp.setRequestHeader("X-Gizwits-Application-Id","1efb69ea6ae349edb6224d915750731e");
xmlhttp.send("{'phone_id': 'apiary'}");
参考了这段代码:
|
|