Skip to content

Commit

Permalink
Get CLIENT_ID from .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
thijskuilman committed Apr 9, 2018
1 parent cfde3fb commit be9f22e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/gmail-api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Client ID and API key from the Developer Console
var CLIENT_ID = '770552470354-ocbk9lp6g67ejmgkafugn2tev284rqkb.apps.googleusercontent.com';
var CLIENT_ID = '';
fetch('.env').then(response => response.text()).then(clientId => CLIENT_ID = clientId.trim());

// Array of API discovery doc URLs for APIs used by the quickstart
var DISCOVERY_DOCS = ["https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest"];
Expand Down

0 comments on commit be9f22e

Please sign in to comment.