title: Vimeo OAuth2 Authorization
body: <p>I'm currently working on an app that needs to integrate Vimeo. I'm therefore adapting my working OAuth2 client to allow authorization to Vimeo it's new beta API.</p>
  
  <p>However, there are some things that are unclear to me, and the <a href="https://developer.vimeo.com/api/authentication" rel="nofollow">documentation</a> is a bit vague on the matter.</p>
  
  <ol>
  <li>Should I get the client authorized before authentication?</li>
  <li>The user authentication url is <code>https://api.vimeo.com/oauth/authorize</code>, should I send a <code>GET</code> or <code>POST</code> request to this URL with the required parameters? </li>
  <li>Should I send a basic authorization header (<code>Authorization : basic base64(client_id:client_secret)</code> along with authentication or should it be unauthenticated authorization header (<code>Authorization : Bearer unauthenticated_access_token</code>)? </li>
  <li>Should I handle the authentication dialog through a UIWebView or through Safari?</li>
  </ol>
  
  <p><del>Furthermore, I seem to get the error: <code>{ "error": "An unknown error has occured. Please let us know!"}</code> when handling authentication through Safari. Does anyone have a clue on what actually went wrong or provide a way to find out?</del> (Seems Vimeo improved their error displaying overnight ;))</p>
  
  <p>The actual error I get is that the <code>redirect_uri</code> and <code>client_id</code> are missing, but I'm reasonably sure they get provided in the request body when doing a <code>POST</code>, or in the parameters when doing a <code>GET</code>. Any pointers?</p>