跑道限速降低
Podio Rate Limit decreased
你知道为什么 RateLimit 是 60 吗?
如果文档说 "The general limit is 1,000 API calls per hour"。
一周前限制还不错,但最近发生了变化。
我正在从 podio-php
创建工作区,每个工作区默认有 4 个应用程序,每个应用程序都有挂钩,问题是当我尝试验证挂钩时。
所以,这是我调用 API 的全局函数:
function initPodio()
{
Podio::setup(CLIENT_ID, CLIENT_SECRET, array(
"session_manager" => "PodioBrowserSession"
));
if (!Podio::is_authenticated()) {
try {
Podio::authenticate_with_password(USER, PASSWORD);
} catch (PodioError $e) {
// Something went wrong. Examine $e->body['error_description'] for a description of the error.
}
}
}
我每次需要使用跑道库时都会调用,例如:当我创建一个工作区时:
initPodio();
$podio_space = PodioSpace::create($attributes);
或者当我需要创建一个应用项目时。
我认为您从 Podio 身份验证端点收到速率限制错误。请用完整的请求和回复更新您的问题,这肯定有助于理解您的案例。
为避免身份验证速率限制,请存储并重复使用 access_token
和 refresh_token
(它们在首次登录后可用)。无需对每个请求重新进行身份验证。这在此处有更详细的解释:https://developers.podio.com/authentication
为不同的跑道客户端实现会话管理的例子可以在这里找到:
你知道为什么 RateLimit 是 60 吗?
如果文档说 "The general limit is 1,000 API calls per hour"。
一周前限制还不错,但最近发生了变化。
我正在从 podio-php
创建工作区,每个工作区默认有 4 个应用程序,每个应用程序都有挂钩,问题是当我尝试验证挂钩时。
所以,这是我调用 API 的全局函数:
function initPodio()
{
Podio::setup(CLIENT_ID, CLIENT_SECRET, array(
"session_manager" => "PodioBrowserSession"
));
if (!Podio::is_authenticated()) {
try {
Podio::authenticate_with_password(USER, PASSWORD);
} catch (PodioError $e) {
// Something went wrong. Examine $e->body['error_description'] for a description of the error.
}
}
}
我每次需要使用跑道库时都会调用,例如:当我创建一个工作区时:
initPodio();
$podio_space = PodioSpace::create($attributes);
或者当我需要创建一个应用项目时。
我认为您从 Podio 身份验证端点收到速率限制错误。请用完整的请求和回复更新您的问题,这肯定有助于理解您的案例。
为避免身份验证速率限制,请存储并重复使用 access_token
和 refresh_token
(它们在首次登录后可用)。无需对每个请求重新进行身份验证。这在此处有更详细的解释:https://developers.podio.com/authentication
为不同的跑道客户端实现会话管理的例子可以在这里找到: