@@ -3,24 +3,28 @@ Update or append the data to Google Sheet, or get the data on Google Sheet.
33By using HTTP to execute the Google Apps Script API.
44Compatible with ESP32 and ESP8266.
55
6+ # Getting Started
7+ - [ Installation] ( https://github.com/PerfecXX/MicroPython-GoogleSheet/blob/main/doc/md/installation.md )
8+ - [ How to get your google credential] ( https://github.com/PerfecXX/MicroPython-GoogleSheet/blob/main/doc/md/get_google_credential.md )
9+
610# Quick Example
711``` python
812# Import Library
913from ggsheet import MicroGoogleSheet
1014from network import WLAN ,STA_IF
1115
1216# Network Creadential
13- ssid = " Change SSID "
14- password = " Change Password "
17+ ssid = " Change_SSID "
18+ password = " Change_Password "
1519
1620# Connect to Network
1721sta_if = WLAN(STA_IF )
1822sta_if.active(True )
1923if not sta_if.isconnected():
20- print (" Connecting to wifi: " , ssid)
21- sta_if.connect(ssid, password)
22- while not sta_if.isconnected():
23- pass
24+ print (" Connecting to wifi: " , ssid)
25+ sta_if.connect(ssid, password)
26+ while not sta_if.isconnected():
27+ pass
2428print (" Connection successful" )
2529
2630# Google Sheet Credential
@@ -35,20 +39,36 @@ ggsheet.set_DeploymentID(google_app_deployment_id)
3539# create the Google App Script file (not necessary if it already exists).
3640ggsheet.gen_scriptFile()
3741
38- # Update the cell (single data into a single cell)
42+ # Update the data to a specific cell (Row,Column,Data )
3943ggsheet.updateCell(1 ,1 ," Hello this is my first data" )
4044
41- # Get the data from specific cell
45+ # Get the data from a specific cell (Row,Column)
4246print (ggsheet.getCell(1 ,1 ))
4347
44- # Append the row (many data into a single row )
45- ggsheet.updateRow (1 ,[ 1 , 2 , 3 , " Hello " , " สวัสดีครับ " ] )
48+ # Delete the data from a specific cell (Row,Column )
49+ ggsheet.deleteCell (1 ,1 )
4650
47- # Get all the data from a specific row
48- print (ggsheet.getRow(1 ))
49- ```
51+ # Append the data to a specific row (Row, Data List)
52+ ggsheet.appendRow(1 ,[1 ,2 ,3 ," Row 1 Appended!" ])
5053
51- # Getting Started
52- - [ Installation] ( https://github.com/PerfecXX/MicroPython-GoogleSheet/blob/main/doc/md/installation.md )
53- - [ How to get your google credential] ( https://github.com/PerfecXX/MicroPython-GoogleSheet/blob/main/doc/md/get_google_credential.md )
54- - [ Example] ( )
54+ # Update the data in a specific row (Row, Data List)
55+ ggsheet.updateRow(1 ,[3 ,2 ,1 ," Row 1 Updated!" ])
56+
57+ # Get all of the data from a specific row (Row)
58+ ggsheet.getRow(1 )
59+
60+ # Delete the data in a specific row (Row)
61+ ggsheet.deleteRow(1 )
62+
63+ # Append the data to a specific column (Column, Data List)
64+ ggsheet.appendColumn(1 ,[1 ,2 ,3 ," Column 1 Appended!" ])
65+
66+ # Update the data to a specific column (Column, Data List)
67+ ggsheet.updateColumn(1 ,[3 ,2 ,1 ," Column 1 Updated!" ])
68+
69+ # Get all of the data from a specific column (Column)
70+ ggsheet.getColumn(1 )
71+
72+ # Delete the data in a specific column (Column)
73+ ggsheet.deleteColumn(1 )
74+ ```
0 commit comments