-
2 months agoPat McFaul commented on OAuth Guide typosAs I was walking through the steps of the OAuth Guide (http://www.vimeo.com/api/docs/oauth), I found what appear to be typos so thought I'd post them: 1 - Extra encoded '/' at end of the URL in base string In the doc under "Authenticating a User" under "2 Get an Unauthorized Request Token" the base string is listed as: GET&http%3A%2F%2Fvimeo.com%2Foauth%2Frequest_token%2F& ... however since the URL is http://vimeo.com/oauth/request_token and not http://vimeo.com/oauth/request_token/ the base string should be: GET&http%3A%2F%2Fvimeo.com%2Foauth%2Frequest_token& ... without the extra %2F. 2 - Extra encoded '&' at beginning 'HTTP Request Parameter String' in the base string Again in the doc under "Authenticating a User" under "2 Get an Unauthorized Request Token" the base string is listed as: ... %26oauth_consumer_key%3DYourConsumerKey %26oauth_nonce%3Dabcdefghijk %26oauth_signature_method%3DHMAC-SHA1 %26oauth_timestamp%3D1234567890 %26oauth_version%3D1.0 however since these are the query parameters there is no leading '&' needed and should be: ... oauth_consumer_key%3DYourConsumerKey %26oauth_nonce%3Dabcdefghijk %26oauth_signature_method%3DHMAC-SHA1 %26oauth_timestamp%3D1234567890 %26oauth_version%3D1.0 without the extra %26. 3 - Missing the oauth_token parameter In the doc under "Authenticating a User" under "4 Exchange Request Token for an Access Token" the base string and URL are listed as: GET&http%3A%2F%2Fvimeo.com%2Foauth%2Faccess_token%2F& %26oauth_consumer_key%3DYourConsumerKey %26oauth_nonce%3Dabcdefghijk %26oauth_signature_method%3DHMAC-SHA1 %26oauth_timestamp%3D1234567890 %26oauth_verifier%3DYourVerifier %26oauth_version%3D1.0 http://vimeo.com/oauth/access_token ?oauth_consumer_key=YourConsumerKey &oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1234567890 &oauth_nonce=abcdefghijk &oauth_verifier=YourVerifier &oauth_version=1.0 &oauth_signature=YourSignature however both are missing the oauth_token. With the same corrections from above and adding the oauth_token, they should be: GET&http%3A%2F%2Fvimeo.com%2Foauth%2Faccess_token& oauth_consumer_key%3DYourConsumerKey %26oauth_nonce%3Dabcdefghijk %26oauth_signature_method%3DHMAC-SHA1 %26oauth_timestamp%3D1234567890 %26 oauth_token %3DYourAuthToken %26oauth_verifier%3DYourVerifier %26oauth_version%3D1.0 http://vimeo.com/oauth/access_token ?oauth_consumer_key=YourConsumerKey &oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1234567890 & oauth_token =YourAuthToken &oauth_nonce=abcdefghijk &oauth_verifier=YourVerifier &oauth_version=1.0 &oauth_signature=YourSignature Hope this helps! Pat
Pat McFaul
Joined October 2009
Pat McFaul
has
not updated
the profile yet.
Sorry, Pat McFaul doesn't have any videos yet.
Pat McFaul
has no contacts yet.
-
Vimeo: About / Blog / Developers / Jobs / Community Guidelines / Community Forums / Help Center / Site Map / Merchandise
/ Get Vimeo
