Advertisement
zero_shubham1

googleAPI

Mar 7th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.93 KB | None | 0 0
  1. <html>
  2.   <head>
  3.     <script src="https://apis.google.com/js/api.js"></script>
  4.     <script>
  5.       function start() {
  6.         // Initializes the client with the API key and the Translate API.
  7.         gapi.client.init({
  8.           'apiKey': '_h2dLb-RmM1M88-eEuFRRSJW',
  9.           'clientId': '544328034016-nllev30o0su0eqpm16co0btvq2i8uur0.apps.googleusercontent.com',
  10.           'scope': 'https://www.googleapis.com/auth/drive.metadata.readonly',
  11.           'discoveryDocs': ['https://www.googleapis.com/discovery/v1/apis/drive/v3/rest'],
  12.         }).then(function() {
  13.           GoogleAuth = gapi.auth2.getAuthInstance();
  14.  
  15.       // Listen for sign-in state changes.
  16.       GoogleAuth.isSignedIn.listen(updateSigninStatus);
  17.           })
  18.       };
  19.  
  20.       // Loads the JavaScript client library and invokes `start` afterwards.
  21.       gapi.load('client', start);
  22.     </script>
  23.   </head>
  24.   <body>
  25.     <div id="results"></div>
  26.   </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement