<
您还没有登录┊登录注册 当前在线:716
源码程序系统工具编程开发图形图像网络软件应用软件多媒体类娱乐休闲驱动程序各类教程各类论文文章阅读
ASPPHPJSPASP.NETVBVF百度搜索星星练题网络文摘股市消息技能习题详细分类
当前位置:首页 \ 源码程序 \ ASP代码
站内搜索


微博OAuth网站登陆,请求access_token时遇到21323错误的解决办法

文件大小:1 k
运行平台:Win All
级别评定:
添加时间:2020-7-31 8:16:27
最后更新:2020-7-31 8:16:27
相关链接:无
所需金额:0 元
添加者:管理员

Download.1

/ ::软件简介:: / ::相关软件:: / ::软件点评:: /::上一个::/ ::下一个:: /
管理首页
请求access_token时遇到21323错误 报错信息: error":"invalid_request","error_code":21323,"request":"/oauth2/access_token","error_uri":"/oauth2/access_token","error_description":"miss client id or secret“ 解决方案: 参照文档:http://open.weibo.com/wiki/OAuth2/access_token,这里写的是POST提交,但是这里的post的URL为 https://api.weibo.com/oauth2/access_token?client_id=client_id&client_secret=client_secret&grant_type=authorization_code&code=code&redirect_uri=redirect_uri 提交的data应该为空 参考代码: // 获取access_token String url = "https://api.weibo.com/oauth2/access_token?client_id=" + OtherConfig.WEIBO_APP_ID+ "&client_secret=" + OtherConfig.WEIBO_APP_SECRET+ "&grant_type=authorization_code&code="+code+"&redirect_uri="+OtherConfig.WEIBO_BACK_URI; HttpPost httpPost = new HttpPost(url); JSONObject json = new JSONObject(); String response = HttpClientUtils.doPost(httpPost, json.toJSONString()); 成功解决,这里的data必须为空
相关软件
·asp获取【微信公众平台】Access Token的源代码下载
·用asp获取新浪微博access_token的源码 
·{"error":"invalid_grant","error_code":21325,"request":"/oauth2/access_token"


1分 0
2分 0
3分 0
4分 0
5分 0
共有 0 人打分
平均得分:0


按字符查询:ABCDEFGHIJKLMNOPQRSTUVWXYZ0~9中文
下载图示: - 附汉化补丁 - 附注册 - 会员软件 - 推荐 - 最新添加
Rainight, 星旺坡 联网备案号:41092802000212 豫ICP备19032584号-1 页面执行时间: 0.35秒
业务QQ:80571569 手机:13030322310