Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="https://apis.google.com/js/api.js"></script>
- <script>
- function start() {
- // Initializes the client with the API key and the Translate API.
- gapi.client.init({
- 'apiKey': '_h2dLb-RmM1M88-eEuFRRSJW',
- 'clientId': '544328034016-nllev30o0su0eqpm16co0btvq2i8uur0.apps.googleusercontent.com',
- 'scope': 'https://www.googleapis.com/auth/drive.metadata.readonly',
- 'discoveryDocs': ['https://www.googleapis.com/discovery/v1/apis/drive/v3/rest'],
- }).then(function() {
- GoogleAuth = gapi.auth2.getAuthInstance();
- // Listen for sign-in state changes.
- GoogleAuth.isSignedIn.listen(updateSigninStatus);
- })
- };
- // Loads the JavaScript client library and invokes `start` afterwards.
- gapi.load('client', start);
- </script>
- </head>
- <body>
- <div id="results"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement