Permalink
Browse files

set GOOGLE_API_BROWSER_APPLICATION_KEY in config.jsenv

  • Loading branch information...
chenhan1218 committed Apr 2, 2014
1 parent 104873e commit 2de4dc4164d401d0212b663b4871bde7b956faec
Showing with 4 additions and 6 deletions.
  1. +0 −1 .gitignore
  2. +1 −1 README.md
  3. +2 −1 app/config.jsenv
  4. +0 −1 app/developer-key.ls.example
  5. +1 −2 app/init.ls
View
@@ -8,7 +8,6 @@ build.xml
.idea/*
app/assets/*html
app/404.static.jade
app/developer-key.ls
_public
node_modules/*
View
@@ -63,7 +63,7 @@ After `vagrant up`, browse http://localhost:6987/ in your favorite browser. You
# Google API key
To use the google APIs client to query YouTube Data API and check live status of Youtube videos, you need to apply Google API Key for browser applications at [https://code.google.com/apis/console#:access](https://code.google.com/apis/console#:access). After getting your API key, you have to create app/developer-key.ls. See app/developer-key.ls.example as an example.
To use the google APIs client to query YouTube Data API and check live status of Youtube videos, you need to apply your own Google API Key for browser applications at [https://code.google.com/apis/console#:access](https://code.google.com/apis/console#:access). After getting your API key, commit it into app/config.jsenv
# CC0 1.0 Universal
View
@@ -24,5 +24,6 @@
{"class": "btn-success", "name": "專業類", "tags": ["法律", "設計", "文字", "程式", "新聞", "行銷", "廣告", "繪圖","攝影" ]},
{"class": "btn-info", "name": "特殊技能類", "tags": ["手沖咖啡", "3D printing"]},
{"class": "btn-warning", "name": "以技能分類", "tags": ["爬資料", "轉換資料"]}
]
],
"GOOGLE_API_BROWSER_APPLICATION_KEY": "AIzaSyDN3lT4KenTRpKGvoD1Cbw5yqMxR2iKBes"
}
@@ -1 +0,0 @@
this.GOOGLE_API_BROWSER_APPLICATION_KEY = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
View
@@ -1,6 +1,5 @@
this.googleOnLoadCallback = ->
this.GOOGLE_API_BROWSER_APPLICATION_KEY ?= ''
gapi.client.setApiKey(this.GOOGLE_API_BROWSER_APPLICATION_KEY)
gapi.client.setApiKey(window.global.config.GOOGLE_API_BROWSER_APPLICATION_KEY)
gapi.client.load('youtube', 'v3', ->
angular.element document .ready ->
angular.bootstrap document, <[app]>

0 comments on commit 2de4dc4

Please sign in to comment.