title: Retrofit -u username:password fields and scopes array
body: <p>I am using Retrofit to build a Android Github app but I am having troubles retrieving the token from <a href="https://api.github.com/authorizations" rel="nofollow">https://api.github.com/authorizations</a> </p>
  
  <p>I know how to do the request with curl with the command:</p>
  
  <pre><code>curl -X POST -H "Accept: Application/json" -u "username:password" -d '{"scopes": ["user","repo","gist","notifications","repo","repo:status"],"note":"GithubViewer Android App","client_id":"xxx","client_secret":"yyyy"}' "https://api.github.com/authorizations"
  </code></pre>
  
  <p>I am having troubles knowing how to set up the Scopes array and the -u authentication field. I've tried in the command line using "Authentication: Basic username:password" but that does not work either :(</p>
  
  <p>Here is a sample of what I am trying to do: </p>
  
  <pre><code>RequestInterceptor interceptor = new RequestInterceptor() {
          @Override
          public void intercept(RequestFacade request) {
                     request.addHeader("Authentication", "Basic " + username + ":" + password);
             }
          };
  
   RestAdapter restAdapter = new RestAdapter.Builder()
           .setEndpoint(GithubClient.API_URL)
            .setRequestInterceptor(interceptor)
            .build();
  </code></pre>
  
  <p>Any suggestions? </p>
  
  <p>Thank you!</p>