尝试 运行 一个简单的 Yammer Api

Trying to run a simple Yammer Api

我正在尝试获得一个简单的 Yammer REST api 运行,特别是这个:

https://www.yammer.com/api/v1/topics/:Topic_ID.json

https://api.yammer.com/api/v1/topics/:Topic_ID.json

(来自 https://developer.yammer.com/docs/topicsidjson

对我来说,即使在页面上使用 "try out" 工具,它也会 returns 出现 404 错误。 我知道我的令牌有效,因为它适用于一些 YammerAPI,只有少数无效,而我需要。

目前我正在使用 ajax/js 调用 REST 端点,我收到 "No Access-Control-Allow-Origin" header 错误

XMLHttpRequest cannot load https://api.yammer.com/api/v1/messages/about_topic/:769359386.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://mydomain.sharepoint.com' is therefore not allowed access. The response had HTTP status code 404.

有什么想法吗?

https://api.yammer.com/api/v1/messages/about_topic/:769359386.json

删除主题 ID 前的 :。应该是:

https://api.yammer.com/api/v1/messages/about_topic/769359386.json