English | 繁體中文
This is a LIFF application for surveying that utilizes Google Sheets for data storage.
- Google Sheets API
- LIFF API
- jQuery
- Bootstrap
- Font Awesome
- Flaticon
survey-liff/
├── js/
│ └── liff.js
├── index.php
└── googleSheetsAPI.php
Follow the instructions to set up the project locally.
- Apache
- PHP 7.2
- JavaScript ES6
- Clone the repo
git clone https://github.com/hqn21/survey-liff.git
- Install Google Client Library
composer require google/apiclient:^2.0
- Enter your LIFF Information in
js/liff.js
const defaultLiffId = "LIFF_ID";
- Enter your Google Client auth file location in
googleSheetsAPI.php
$client->setAuthConfig('AUTH_FILE_LOCATION');
- Enter your spreadsheet id in
googleSheetsAPI.php
$spreadsheetId = "SPREAD_SHEET_ID";
- Enter your spreadsheet name in
googleSheetsAPI.php
$range = "first";
- Set your application name in
googleSheetsAPI.php
(optional)$client->setApplicationName('haoquan');
Distributed under the MIT License. See LICENSE for more information.
劉顥權 Haoquan Liu - contact@haoquan.me
Project Link: https://github.com/hqn21/survey-liff/