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']