locked this topic on Aug 14, 2015 because This thread was posted before the launch of our new and improved API. Please start a new thread if you’re having a similar issue.
sonal agrawal 4 years ago
how to get vimeo oauth_signature in perl
4 years ago
Looks like there is a Perl OAuth library available on the OAuth site: oauth.net/code/
Please note that we can't really help you with OAuth unless it is a specific problem with Vimeo's implementation or in regards to our API. There are lots of OAuth resources available on the internet that will do a better job than I can anyway.
Thanks for reply Brad, but still I am not able to get the videos.
here is my code:
my $key = XXXXXXXX ;
my $method = "vimeo.videos.search" ;
my $oauth_nonce = rand (9999999999999999 ) ;
my $timestamp = time ;
my $query = "nike" ;
my $secret = YYYYYYYY ;
my $url = "vimeo.com/api/rest/v2/" ;
my $str ="method=$method&oauth_consumer_key=$key&oauth_nonce=$oauth_nonce&oauth_signature_method=HMAC-SHA1&oauth_timestamp=$timestamp&oauth_version=1.0&query=$query";
$str = uri_escape( $str) ;
$url = uri_escape( $url) ;
my $base_str = "GET"."&".$url."&".$str ;
my $secret_key = $secret."&" ;
my $hmac = Digest::HMAC_SHA1->new( $secret_key ) ;
$oauth_signature = $hmac->b64digest ;
which generates the signature as : Std2IYZywe1D/y6YXpBM6k3EZIY
after encoding signature is : Std2IYZywe1D%2Fy6YXpBM6k3EZIY
my call url is:"vimeo.com/api/rest/v2?format=xml&method=vimeo.videos.search&query=nike&oauth_consumer_key=XXXXXXXXXXX&oauth_nonce=&oauth_signature_method=HMAC-7.26231416761042e%2B15SHA1&oauth_timestamp=1335524065&oauth_version=1.0&oauth_signature=Std2IYZywe1D%2Fy6YXpBM6k3EZIY"
but I am getting the error says:
expl="The oauth_signature passed was not valid." msg="Invalid signature"
Please let me know where am I doing wrong.
I have also tried with oauth.net/code/
my $request = Net::OAuth->request('consumer')->new(
consumer_key => $key,
consumer_secret => $secret,
request_url => 'vimeo.com/api/rest/v2';,
request_method => 'GET',
signature_method => 'HMAC-SHA1',
timestamp => $timestamp,
nonce => $oauth_nonce,
my $oauth_signature =$request->sign ;
which gives the signature as: ZBFl7jXD4BFGTexcZ4Cj2edf3Zw=
after encoding signature is :ZBFl7jXD4BFGTexcZ4Cj2edf3Zw%3D
and my request url is :
here also I am getting the same error msg saying : expl="The oauth_signature passed was not valid." msg="Invalid signature"
can you tell me what's wrong with my url below, I got same error
Aoc Vimeo 3 years ago
This conversation is missing your voice. Please join Vimeo or log in.
Cameras and Editing
Festivals and Contests
Wanted and Offered
Even if you disagree with someone, keep it civil.
If it’s not relevant, leave it out or start a new thread.
Re-re-re-re-posts drive us crazy.
We were members once, just like you.
We’re here to help 10AM to 6PM US Eastern Time, Monday to Friday.