【发布时间】:2016-11-24 06:48:20
【问题描述】:
如果 API 请求被认证为应用程序,是否有任何方法可以获取工作空间名称和 URL。
Podio::authenticate_with_app($app_id, $app_token);
PodioSpace::get($space_id);
以上代码返回 PodioForbiddenError
【问题讨论】:
标签: podio
如果 API 请求被认证为应用程序,是否有任何方法可以获取工作空间名称和 URL。
Podio::authenticate_with_app($app_id, $app_token);
PodioSpace::get($space_id);
以上代码返回 PodioForbiddenError
【问题讨论】:
标签: podio
抱歉,我认为这在范围层次结构中是不允许的。
请参考https://developers.podio.com/authentication/scopes
但是,如果您只需要空间名称、id、url 和其他一些小细节,您仍然可以使用fields 参数来获取它。此处对此进行了描述:https://developers.podio.com/index/api(向下滚动到页面末尾)。
这是我使用 Ruby 调试它的方法:
Podio.client.authenticate_with_app(<app_id>, <app_token>)
app = Podio::Application.find(app_id, {'fields' => 'space.view(full)'})
puts app['space']['name']
puts app['space']['space_id']
puts app['space']['url']
【讨论】: