开发者社区> 问答> 正文

pc端jsAPI,获取code显示“reasonapi not existcode404”

“reason:api not exist,code:404”

展开
收起
nothingexp 2016-01-25 18:37:07 6331 0
4 条回答
写回答
取消 提交回答
  • 回 楼主(nothingexp) 的帖子
    确认是否引用了,http://g.alicdn.com/dingding/dingtalk-pc-api/2.3.1/index.js
    2016-01-27 23:12:33
    赞同 展开评论 打赏
  • Repc端jsAPI,获取code显示“reasonapi not existcode404”
    使用这个 api 之前,需要在 config 方法里声明。jsApiList 参数需要传入这个 api
    2016-01-27 23:09:45
    赞同 展开评论 打赏
  • 回 1楼忠恕的帖子
    DingTalkPC.runtime.permission.requestAuthCode({
                        corpId: CORPID,
                        url: location.href,
                        onSuccess: function (result) {
                            //logger.i('authcode: ' + info.code);
                            code = result.code;
                            alert(code)
                            loadIden();
                        },
                        onFail: function (err) {
                            //logger.e('authcode fail: ' + JSON.stringify(err));
                            alert(JSON.stringify(err))
                        }
                    });

    -------------------------

    Repc端jsAPI,获取code显示“reasonapi not existcode404”
    已经解决了,是没有验证这个接口造成的问题
    2016-01-25 19:59:32
    赞同 展开评论 打赏
  • Repc端jsAPI,获取code显示“reasonapi not existcode404”
    请把具体的调用接口发出来。

    -------------------------

    Repc端jsAPI,获取code显示“reasonapi not existcode404”
    好的,这个问题已经转给相应的同学,多谢
    2016-01-25 19:07:24
    赞同 展开评论 打赏
问答分类:
API
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载