0
如果将API请求作为应用程序进行身份验证,是否有任何获取工作空间名称和URL的方法?在podio api中获取工作区详细信息
Podio::authenticate_with_app($app_id, $app_token);
PodioSpace::get($space_id);
上面的代码返回PodioForbiddenError
如果将API请求作为应用程序进行身份验证,是否有任何获取工作空间名称和URL的方法?在podio api中获取工作区详细信息
Podio::authenticate_with_app($app_id, $app_token);
PodioSpace::get($space_id);
上面的代码返回PodioForbiddenError
对不起,但我不认为这是允许的范围层次结构中。
请参考https://developers.podio.com/authentication/scopes
但是,如果你只需要空间名称,ID,URL和其他几个小细节,你仍然可以通过使用fields
参数得到它。这在这里描述:https://developers.podio.com/index/api(向下滚动到页面的结尾)。
这里是我如何与红宝石调试它:
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']