in reply to Perl + vimeo | Getting error in authenticating advanced API's

Does $request->to_url produce the same output as what you are doing manually? And do you have some other way of checking if the key is valid?
$str = uri_escape( $str) ;

This looks rather dubious to me. You are also URL-escaping the & separators, even though you probably shouldn't do that. Instead URI-escape each parameter individually.

my $v_search_url = "http://vimeo.com/api/rest/v2? method=$method...";

Are you sure there needs to be a spasce after the question mark?

Replies are listed 'Best First'.
Re^2: Perl + vimeo | Getting error in authenticating advanced API's
by singh.ashwini (Initiate) on May 03, 2012 at 13:52 UTC

    request->to_url is similar to the url string manually created in the first approach.

    As specified on vimeo oauth guide link (http://vimeo.com/api/docs/oauth), The base string should be like below:-

    GET&http%3A%2F%2Fvimeo.com%2Fapi%2Frest%2Fv2%2F&method%3Dvimeo.people.getInfo%26oauth_consumer_key%3Dabcdef0123456%26oauth_nonce%3Dr4nd0m1234%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1336052658%26oauth_version%3D1.0%26user_id%3Dbrad

    There is no space in $v_search_url its a typo. (may occured when I had paste the code).