【发布时间】:2017-08-11 08:14:53
【问题描述】:
我想通过canvas API从我们学院正在做的一门moodle课程中获取数据。我浏览了文档,并按照API documentation 中的建议生成了访问令牌。但现在我不知道该怎么做。
我在 chrome 浏览器控制台中尝试了不同的示例。
例如:获取 https:///login/oauth2/auth? client_id=XXX&response_type=code&redirect_uri=https://example.com/oauth_complete&state=YYY
但它没有给我任何结果。相反,我得到了诸如“Uncaught SyntaxError: Unexpected identifier”之类的错误。
谁能告诉我应该从哪里开始?
非常感谢。
【问题讨论】:
-
能否提供一些示例代码或演示页面?
-
我在关注 API 文档。 canvas.instructure.com/doc/api/index.html
标签: canvas-lms