2018年5月7日 星期一
google fusion table 的應用
1.須有一 google 帳號。
2.將一資料檔用excel存成,csv格式,再用筆記本存成UTF-8編碼 (注意不可有空白行跟字元)
3.將雲端硬碟中應用程式找到fusion tables 設定連結。
4.用fusion tables 將準備好的csv檔匯入。
5.share 設定權限,設定公開在網路上並儲存。
6. 新增google API
由 https://console.developers.google.com 開啟一 google APIs網頁
建立一個專案,搜尋並啟用專案 [特定的]fusion table APIs
7.建立一組 Android API key
即程式使用fusion tables 的API key
8.建立服務帳戶並取得P12 金鑰檔。(身分選取 App Engine default service account)
(此時可下載一副檔名為P12的金鑰檔,儲存起來以供使用)
9.在fusion table 裡使用share 加入擁有存取權限的電子郵件地址。
10. 程式中設定
需取得
1. 服務帳戶ID
2.API keys
3.P12 加密金鑰檔
4.fusion table ID
ps.需注意 SELECT*FROM 與 fusion tables ID 間需空一格,才能正確執行語法。
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言