Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do we require a developer key? #47

Open
prashilCeloxis opened this issue Apr 20, 2023 · 4 comments
Open

Why do we require a developer key? #47

prashilCeloxis opened this issue Apr 20, 2023 · 4 comments

Comments

@prashilCeloxis
Copy link

Previously, we used to fetch files from Google Drive using the below code, which, as we can see, doesn't require a developer key. But since we are moving to React, we are using your library, which requires a developer key. Can you please tell me why I need a developer key?

gapi.load('auth', {'callback': function() {
      window.gapi.auth.authorize(
      { 
        'client_id': clientId,
        'scope': scope,
        'immediate': false
      },
      function(authResult) {
        if (authResult && !authResult.error) {
          oauthToken = authResult.access_token;
        }
        gapi.load('picker', {'callback': function() {
          ....
          }
        });
      })
  }});

@prashilCeloxis
Copy link
Author

Can you give an update on the above issue ?

@longlong7211
Copy link

the developer key is api key

@vegardok
Copy link

The key should not be required if a token is provided. Setting it to an empty string "fixes" the issue.

@wayneschuller
Copy link

The key should not be required if a token is provided. Setting it to an empty string "fixes" the issue.

Wow - you are correct.

So the docs are incorrect when they say an API key is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants