Error while getting security token from FrobId through API.

Apr 13, 2010 at 5:54 AM
Edited Apr 15, 2010 at 5:47 AM

Hi,

I am trying to use Vimeo Advanced API .NET Wrapper.

for more details please find below code that I am using :

****************************************************************************************

VimeoAPI.Objects.Authentication _Auth = new VimeoAPI.Objects.Authentication(Utilities.API_KEY, Utilities.SECRET_KEY);
                
                VimeoAPI.Methods _Vimeo = new VimeoAPI.Methods(_Auth);

                // This method will get you a URL so the user can link the application to Vimeo.
                string loginURI = _Vimeo.GetApplicationLinkUrl();

****************************************************************************************

 

Here, I have provide my API key and Secret Key in Authentication.


After that ,while first time of my metod call to Call Method function my method name is : vimeo.auth.getFrob.

instead of getting frob id in response I am getting error like following :

<?xml version="1.0" encoding="utf-8" ?>
- <rsp generated_in="0.0024" stat="fail">
<err code="307" expl="A required parameter was missing: oauth_consumer_key" msg="Missing required parameter" />
</rsp>

Please let me know from where I need to set that parameters..

Thanks in advance,

Nilesh Upadhyay

Apr 13, 2010 at 6:45 AM

Hi,

 

I got that working by changing the API URL from version 2 to version 1

Now I got another problem.

I got frob id and I m trying to generate token but the response says that invalid frob id.

I am providing the same id that I am getting from URL.

 

Can any one help me out?

 

Thanks,

Nilesh

 

Apr 15, 2010 at 5:49 AM
Edited Apr 15, 2010 at 5:51 AM

I am not able to get Security Token.

Does any one have idea why I am getting response as  forb id is InValid ?

Need help as soon as possible.

 

 

Thanks,

Nilesh

Coordinator
Apr 26, 2010 at 12:20 PM

Hi Niles,

Sorry for the late reply!

To get the token, use the below code:

------------------

// Call constructor with no token.
VimeoAPI.Authentication _Auth = new VimeoAPI.Authentication(APIKey, SecretKey);
VimeoAPI.Methods _Vimeo = new VimeoAPI.Methods(_Auth);

// This method will get you a URL so the user can link the application to Vimeo.
string loginURI = _Vimeo.GetApplicationLinkUrl();

//Open the browser / redirect the user to the Vimeo account linking page.

// The return URL bound to the Vimeo's API key will include the frob id, use the frob id to get a token with the below method.
string token = _Vimeo.GetApplicationUserLinkToken(frob);

--------------------

Make a breakpoint in the string token, when the application breaks, paste the URL from the loginURI and into the browser and authenticate your application.

You can now resume the code.

The token should be in the token variable.

Cheers,

Bernard.

Apr 26, 2010 at 12:28 PM

Hi Bernard,

Thanks for your reply.

I was able to manage your code and get my frob id and token before I get your reply.

Now I am using API for V2 so no need of frob id there.

Thanks for your help.

Nilesh.

 

 

Coordinator
Apr 26, 2010 at 12:32 PM

Great :)

Again, sorry for the late reply...

Jul 16, 2010 at 5:30 AM

Hi,

I m using following code

       // Call constructor with no token.
        VimeoAPI.Objects.Authentication _Auth = new VimeoAPI.Objects.Authentication("Api key", "Secret key");
        VimeoAPI.Methods _Vimeo = new VimeoAPI.Methods(_Auth);
        
        // This method will get you a URL so the user can link the application to Vimeo.
        string loginURI = _Vimeo.GetApplicationLinkUrl();

        //Open the browser / redirect the user to the Vimeo account linking page.

        // The return URL bound to the Vimeo's API key will include the frob id, use the frob id to get a token with the below method.
        string token = _Vimeo.GetApplicationUserLinkToken(frob);

Can any one please tell me how to get Frobid for using in line to get token

Thanks.

Sachin

Coordinator
Jul 16, 2010 at 1:38 PM
Edited Jul 19, 2010 at 7:36 AM

Hi Sachin,

put a breakpoint on string token = .... 

visit the loginURI from your own browser and link the app to your account, when you do that you will have the frob id (should be in the url or somewhere else).

put that frobid inside the frob variable to get the token, once you have the token you will never need to do that whole procedure again (if you only plan to use it for that account only).

Cheers,

Bernard.

Jul 29, 2010 at 12:32 AM
how can you toggle between version 1 and 2 I cant seem to do it by just referencing the DLL . ? thanks
Mar 22, 2011 at 3:35 AM

Hi,

I am trying to use Vimeo Advanced API .NET Wrapper for uploading videos to Vimeo through .Net.

code that I am using :

****************************************************************************************

VimeoAPI.Objects.Authentication _Auth = new VimeoAPI.Objects.Authentication(Utilities.API_KEY, Utilities.SECRET_KEY);
                
                VimeoAPI.Methods _Vimeo = new VimeoAPI.Methods(_Auth);

                // This method will get you a URL so the user can link the application to Vimeo.
                string loginURI = _Vimeo.GetApplicationLinkUrl();

After submitting the APIKey(Consumer Key) and Secret Key I am getting error as:

------------------------------------------------------------------------------------------------------------------

 

I am getting error as:

Error calling method vimeo.auth.getFrob - <err code="307" expl="A required parameter was missing: oauth_consumer_key" msg="Missing required parameter" />

 

Please hep me.....

Jun 5, 2012 at 9:06 AM

Hi Team,

I'm Created an API over Here, "https://developer.vimeo.com/apps"

VimeoAPI.Objects.Authentication _Auth = new VimeoAPI.Objects.Authentication(APIKeyTextBox,SecretKeyTextBox);

VimeoAPI.Methods vimeo = new VimeoAPI.Methods(_Auth);

 string loginURI = vimeo.GetApplicationLinkUrl();

// Error calling method vimeo.auth.getFrob - <err code="401" expl="The consumer key passed was not valid." msg="Invalid consumer key" />

I'm facing the above error, how to face that. 

 

Thanks

Vinoth Xavier 

Sep 27, 2012 at 10:14 PM

Hi,

If you fixed this error:

// Error calling method vimeo.auth.getFrob - <err code="401" expl="The consumer key passed was not valid." msg="Invalid consumer key" />

 

PLEASE LET ME KNOW!

Im facing the same error.

Thanks in advance.

Coordinator
Sep 28, 2012 at 8:24 AM

Hey,

Did you have a look at the example code I provided here?

http://dl.dropbox.com/u/1920761/Vimeo%20API/Video%20Uploader.zip

The consumer key will be passed as a parameter through the URL, maybe that's why you are missing it.

Bernard.

Sep 29, 2012 at 4:52 PM

Sorry, i dont understand. How do you mean im missing it? 

How can i fix this? Have you face this error before using this api?

// Error calling method vimeo.auth.getFrob - <err code="401" expl="The consumer key passed was not valid." msg="Invalid consumer key" />