curl -X GET \
-H "X-LC-Id: uUcSTu1Y3hS2CbK43od1MvM3-gzGzoHsz" \
-H "X-LC-Key: fTnupb5xNbngsM4umYx9bORj" \
-H "Content-Type: application/json" \
-G \
--data-urlencode 'where={"pubUser":"LeanCloud官方客服"}' \
https://api.leancloud.cn/1.1/classes/Post
--data-urlencode 是什么,写那里啊。下面的代码应该写在哪啊.
fetch('https://api.leancloud.cn/1.1/users/Post', {
method: 'GET',
headers: {
'X-LC-Id': Config.appId,
'X-LC-Key': Config.appKey,
}
})
.then((response) => response.json())
.then((responseJson) => {
console.log(responseJson);
})
.catch((error) => {
console.error(error);
});
-
创建时间
17年1月13日
-
最后回复
17年1月16日
-
4
回复
-
2.0K
浏览
-
2
用户
-
2
链接