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.
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.