Skip to content

Commit 6784967

Browse files
committed
Updated README
1 parent c196d5c commit 6784967

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

README.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
* [Introduction](#introduction)
77
* [Installation](#installation)
88
* [Bootstrapping](#bootstrapping)
9-
* [Retrieving a list of spreadsheets](#retrieving-a-list-of-spreadsheets)
10-
* [Retrieving a public spreadsheet](#retrieving-a-public-spreadsheet)
11-
* [Retrieving a list of worksheets](#retrieving-a-list-of-worksheets)
12-
* [Adding a worksheet](#adding-a-worksheet)
13-
* [Adding headers to anew worksheet](#adding-headers-to-a-new-worksheet)
14-
* [Deleting a worksheet](#deleting-a-worksheet)
15-
* [List feed](#working-with-list-feeds)
9+
* [Spreadsheet](#spreadsheet)
10+
* [Retrieving a list of spreadsheets](#retrieving-a-list-of-spreadsheets)
11+
* [Retrieving a public spreadsheet](#retrieving-a-public-spreadsheet)
12+
* [Worksheet](#worksheet)
13+
* [Retrieving a list of worksheets](#retrieving-a-list-of-worksheets)
14+
* [Adding a worksheet](#adding-a-worksheet)
15+
* [Adding headers to anew worksheet](#adding-headers-to-a-new-worksheet)
16+
* [Deleting a worksheet](#deleting-a-worksheet)
17+
* [List feed](#list-feed)
1618
* [Retrieving a list feed](#retrieving-a-list-feed)
1719
* [Adding a list row](#adding-a-list-row)
1820
* [Updating a list row](#updating-a-list-row)
19-
* [Cell feed](#working-with-cell-based-feeds)
21+
* [Cell feed](#cell-feed)
2022
* [Retrieving a cell feed](#retrieving-a-cell-feed)
2123
* [Updating a cell](#updating-a-cell)
2224
* [Batch request](#updating-multiple-cells-with-a-batch-request)
@@ -81,7 +83,9 @@ ServiceRequestFactory::setInstance($serviceRequest);
8183

8284
> Note: For Windows users, you can disable the ssl verification by '$serviceRequest->setSslVerifyPeer(false)'
8385
84-
## Retrieving a list of spreadsheets
86+
## Spreadsheet
87+
88+
### Retrieving a list of spreadsheets
8589

8690
```php
8791
$spreadsheetService = new Google\Spreadsheet\SpreadsheetService();
@@ -96,7 +100,7 @@ $spreadsheet = $spreadsheetFeed->getByTitle('MySpreadsheet');
96100

97101
> Note: The 'getByTitle' method will return the first spreadsheet found with that title if you have more than one spreadsheet with the same name.
98102
99-
## Retrieving a public spreadsheet
103+
### Retrieving a public spreadsheet
100104

101105
A public spreadsheet is one that has been "published to the web". This does not require authentication. e.g.
102106

@@ -110,7 +114,9 @@ $worksheetFeed = $spreadsheetService->getPublicSpreadsheet("spreadsheet-id");
110114

111115
The spreadsheet id can be copied from the url of the acual spreadsheet in Google Drive.
112116

113-
## Retrieving a list of worksheets
117+
## Workshsheet
118+
119+
### Retrieving a list of worksheets
114120

115121
You can retrieve a list of worksheets from a spreadsheet by calling the getWorksheets() method.
116122

@@ -125,7 +131,7 @@ You can loop over each worksheet using 'getEntries()' or retrieve a single works
125131
$worksheet = $worksheetFeed->getByTitle('Sheet1');
126132
```
127133

128-
## Adding a worksheet
134+
### Adding a worksheet
129135

130136
To create a new worksheet simply use the 'addWorksheet()' method. This takes 3 arguments:
131137
- Worksheet name
@@ -150,15 +156,15 @@ $cellFeed->editCell(1,2, "Row1Col2Header");
150156

151157
The only required parameter is the worksheet name, The row and column count are optional. The default value for rows is 100 and columns is 10.
152158

153-
## Deleting a worksheet
159+
### Deleting a worksheet
154160

155161
It's also possible to delete a worksheet.
156162

157163
```php
158164
$worksheet->delete();
159165
```
160166

161-
## Working with list feeds
167+
## List feed
162168

163169
List feeds work at the row level. Each entry will contain the data for a specific row.
164170

@@ -210,7 +216,7 @@ $values["name"] = "Joe";
210216
$listEntry->update($values);
211217
```
212218

213-
## Working with cell-based feeds
219+
## Cell feed
214220

215221
Cell feed deals with individual cells. A cell feed is a collection of cells (of type CellEntry)
216222

0 commit comments

Comments
 (0)