我是 oauth 的新手,我正在尝试连接到 Vimeo Advanced API。我有几个问题要问你,我希望它们很容易解决。
首先,使用 oauth 连接会导致提示还是静音?我正在尝试从私人视频中获取信息,vimeo 告诉我我需要 oauth 身份验证才能这样做。
其次,我看过...
http://vimeo.com/api/docs/oauth
和...
http://vimeo.com/api/docs/authentication
我已经根据 oauth 指南中的说明创建了基本字符串,但现在我不知道该怎么做。
这是我到目前为止的代码(出于安全目的,变量数据被省略了):
$http_request_string = "method=" . $oauth_method . "&oauth_consumer_key=" . $oauth_key . "&oauth_nonce=" . $oauth_nonce . "&oauth_signature_method=" . $oauth_signature_method . "&oauth_timestamp=" . $oauth_timestamp . "&oauth_version=" . $oauth_version . "&user_id=" . $oauth_user_id;
$base_string = $oauth_method . "&" . urlencode($oauth_method) . "&" . urlencode($http_request_string);
$key = $oauth_key . "&" . $oauth_secret;
有人可以为我提供建议或指南,让我知道如何通过 PHP 连接吗?或者让我知道如果没有提示就不能这样做?
非常感谢,一如既往:)