传递的oauth_token无效或已过期

时间:2012-11-24 14:58:42

标签: xml vimeo

我正在尝试将vimeo getByTag添加到我的rma应用程序中。

vimeo.com/api/rest/v2?format=xml&method=vimeo.test.login&oauth_consumer_key=456b2fecee2080ed734a1357467e0fd9d9e1e2bb&oauth_nonce=35bf1a696da9e26ac8f9dbcf866fc938&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1352889238&oauth_token=08387a1bfa80277c6e7f79436bf57113&oauth_signature=kvuC%2Fp8jxgcyRHAkjNN7q%2FOVldI%3D&oauth_version=1.0

当我将上方链接粘贴到我的网址栏时,我收到以下错误:

The oauth_token passed was either not valid or has expired
or
The oauth_nonce passed has already been used

您可以在尝试使用该方法时看到XML结果,而不是XML结果。

1 个答案:

答案 0 :(得分:0)

您无法重复使用OAuth网址 - 如果可以的话,可能会有重播攻击。正如错误所说:“传递的oauth_nonce已被使用”

您需要阅读一下OAuth,然后阅读:http://zinclabs.com/VimeoAPIforPHP.html

如果您不使用PHP,则需要使用社区开发的API包装器之一执行相同的步骤。