title: AuthorizationCodeInstalledApp
body: <p>I am trying to use google drive.api I ran</p>
  <pre class="lang-java prettyprint-override"><code>private static Credential authorize() throws Exception {
      // load client secrets
      InputStream in = new FileInputStream(&quot;C:\\Users\\orion\\OneDrive\\Documents\\GitHub\\teachervoiceorganization\\JavaProject\\client_id.json&quot;);
      GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY,
              new InputStreamReader(in));
      if (clientSecrets.getDetails().getClientId().startsWith(&quot;515427348790&quot;)
              || clientSecrets.getDetails().getClientSecret().startsWith(&quot;i50nkSMoqVegC0UdkD1W8g3Y&quot;)) {
          System.out.println(
                  &quot;Enter Client ID and Secret from https://code.google.com/apis/console/?api=drive &quot;
                          + &quot;into drive-cmdline-sample/src/main/resources/client_secrets.json&quot;);
      }
      // set up authorization code flow
      GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(
              httpTransport, JSON_FACTORY, clientSecrets,
              Collections.singleton(DriveScopes.DRIVE_FILE)).setDataStoreFactory(dataStoreFactory)
              .build();
      // authorize
      return new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize(&quot;user&quot;);
  }
  </code></pre>
  <p>I get the issue with</p>
  <pre class="lang-java prettyprint-override"><code>return new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize(&quot;user&quot;);
  </code></pre>
  <p>Where is the user id located? I have looked on the <a href="https://console.developers.google.com" rel="nofollow noreferrer">https://console.developers.google.com</a> and there is no luck. anything will help.</p>