Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@ or
Google only returns 10 results at a time and a maximum of 100 results. The easiest way to page through results if to use `:page`. Paging is 1 based (1-10). The default page is 1

```
results = GoogleCustomerSearchApi.search("poker", page: 2)
results = GoogleCustomSearchApi.search("poker", page: 2)
results.pages == 10
results.current_page == 2
results.next_page == 3
results.previous_page == 1

results = GoogleCustomerSearchApi.search("poker", page: 1)
results = GoogleCustomSearchApi.search("poker", page: 1)
results.pages == 10
results.current_page == 1
results.next_page == 2
results.previous_page == nil

results = GoogleCustomerSearchApi.search("poker", page: 10)
results = GoogleCustomSearchApi.search("poker", page: 10)
results.pages == 10
results.current_page == 10
results.next_page == nil
Expand All @@ -98,7 +98,7 @@ You can also use `:start` - which can be any number between 1 and 99. The `:page
Example: get results 13-23

```
results = GoogleCustomerSearchApi.search('poker', start: 13)
results = GoogleCustomSearchApi.search('poker', start: 13)
```

See [Custom Search](http://code.google.com/apis/customsearch/v1/using_rest.html) documentation for an explanation of all fields available.
Expand Down