
內容簡介
此為WordPress外掛,可將聯絡表單7的功能與Google電子試算表結合(也支援私人試算表)。
使用方法:
影片教學:https://www.youtube.com/watch?v=ZgZRBByY4fc
影片教學(舊版):https://www.youtube.com/watch?v=5ICWr5MMo7E
API設定
前往開發人員控制台API
建立新專案(或選擇現有專案)
點選「啟用API及服務」或點選「程式庫」標籤
在列表中找到「Google Sheets API」,並點選「啟用」
前往「憑證」標籤,點選「建立憑證」。 在下拉式清單中選擇「服務帳戶憑證」。 在下一個視窗中選擇您的服務帳戶,並將「金鑰類型」選擇為「JSON」。
儲存JSON文件
在外掛程式的第二個標籤頁面上上傳JSON文件
創建表格
前往Google電子試算表,建立新表格(或打開現有表格)
複製試算表的URL和ID。例如://docs.google.com/spreadsheets/d/1yhzO1Q6ikYysfg8LCHqegPM/edit#gid=0,此表格的URL是:1yhzO1Q6ikYysfg8LCHqegPM,ID是:0(參數gid)。
如果您是擁有私人試算表,您需要在試算表中直接向您所創建的服務帳戶授予編輯權限。在上傳JSON文件後,您可以在您的網站管理員面板中查找服務帳戶電子郵件。
在外掛選項頁面中貼上試算表的URL和ID,上傳JSON文件,然後選擇其他選項。
使用 Contact form 7 創建表單,然後使用它。
外掛標籤
開發者團隊
原文外掛簡介
WordPress plugin that merge Contact form 7 functional with google spreadsheets (also works with private spreadsheet).
How to use:
Video instruction: https://www.youtube.com/watch?v=ZgZRBByY4fc
Video instruction (OLD versions): https://www.youtube.com/watch?v=5ICWr5MMo7E
Prepare API
Go to the Console Developers API
Create new project (or choose existing one)
Click “enable API and services”, or click on “library” tab
Find in list “Google sheets API” and click “Enable”
Go to Credentials tab and click create credentials. In dropdown list choose Service account key. In next window select you service account, and Key type to JSON.
Save the JSON document
Upload JSON document on plugin page (second tab).
Create a table
Go to the Google Spreadsheets and create new table (or open exists table)
Copy table URL and ID. For example: //docs.google.com/spreadsheets/d/1yhzO1Q6ikYysfg8LCHqegPM/edit#gid=0 in this table URL is: 1yhzO1Q6ikYysfg8LCHqegPM, and ID is: 0(parameter gid).
If you have private spreadsheet – you should grant edit rights to your service account (that we create earlier) directly in spreadsheet. You could find service account email in your website admin panel after uploading JSON file.
Paste the spreadsheet URL and ID in plugin options page, upload JSON file, and choose other options.
Create usual form in Contact form 7 and use it.
