Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
XP is just a number
 
PerlMonks  

Re: Perl + vimeo | Getting error in authenticating advanced API's

by moritz (Cardinal)
on May 02, 2012 at 13:30 UTC ( #968451=note: print w/ replies, xml ) Need Help??


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?


Comment on Re: Perl + vimeo | Getting error in authenticating advanced API's
Select or Download Code
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).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968451]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2013-05-20 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (404 votes), past polls