matthooks / vimeo

A full featured Ruby implementation of the Vimeo API
http://blackholeinthemidwest.com/
MIT License
331 stars 85 forks source link

Vimeo::Advanced::RequestFailed: 301: Invalid consumer key, explanation: The consumer key passed was not valid #38

Open santoshw opened 12 years ago

santoshw commented 12 years ago

I have saved the proper consumer key, consumer secrete and access token, access secret on my machine.

Through rails console, I tried to upload video to the PRO account but I'm getting the error, Vimeo::Advanced::RequestFailed: 301: Invalid consumer key, explanation: The consumer key passed was not valid

what I'm doing here is, upload = Vimeo::Advanced::Upload.new(CONSUMER_KEY, CONSUMER_SECRET, :token => vc.token, :secret => vc.secret)

and then upload.upload("#{Rails.root}/app/vimeo-test/video_for_testing.mov") getting above error.

But when I try person = Vimeo::Advanced::Person.new(CONSUMER_KEY, CONSUMER_SECRET, :token => vc.token, :secret => vc.secret) person.get_info("user11524060")

I get proper result. {"generated_in"=>"0.0479", "stat"=>"ok", "person"=>{"created_on"=>"2012-05-01 04:11:59", "id"=>"11524060", "is_contact"=>"0", "is_plus"=>"0", "is_pro"=>"1", ....... }}

Here consumer key looks valid.

Then what is the problem with upload method.

santoshw commented 12 years ago

Waiting for your reply...

santoshw commented 12 years ago

Hey that above error gone. Not getting this error, while uploading...

Vimeo::Advanced::SimpleUpload::UploadError: Validation of chunks failed.

How to solve this? (I'm trying to upload video through rails console)

Has Vimeo API changed? Because I'm seeing UI changes from last two weeks and some more information are required to create/register new app on the Vimeo site.