Skip to content

Commit e7b426e

Browse files
committed
fix quotes and parenthesis consistency
1 parent 0b97071 commit e7b426e

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ $ gem install serpapi
3131

3232
```ruby
3333
require 'serpapi'
34-
client = SerpApi::Client.new api_key: "serpapi_api_key"
35-
results = client.search q: "coffee", engine: "google"
34+
client = SerpApi::Client.new(api_key: "serpapi_api_key")
35+
results = client.search(q: "coffee", engine: "google")
3636
pp results
3737
```
3838

@@ -45,7 +45,7 @@ This example runs a search for "coffee" on Google. It then returns the results a
4545
require 'serpapi'
4646

4747
# serpapi client created with default parameters
48-
client = SerpApi::Client.new(api_key: "secret_key", engine: "google")
48+
client = SerpApi::Client.new(engine: 'google', api_key: 'secret_key')
4949

5050
# We recommend that you keep your keys safe.
5151
# At least, don't commit them in plain text.
@@ -84,7 +84,7 @@ results = client.search(params)
8484
raw_html = client.html(parameter)
8585
```
8686

87-
[Google search documentation](https://serpapi.com/search-api).
87+
[SerpApi documentation](https://serpapi.com/search-api).
8888
More hands on examples are available below.
8989

9090
#### Documentations
@@ -131,14 +131,15 @@ This API allows retrieving previous search results.
131131
To fetch earlier results from the search_id.
132132

133133
First, you need to run a search and save the search id.
134+
134135
```ruby
135136
require 'serpapi'
136-
client = SerpApi::Client.new(api_key: 'secret_api_key', engine: 'google')
137+
client = SerpApi::Client.new(engine: 'google', api_key: 'secret_api_key')
137138
results = client.search(q: "Coffee", location: "Portland")
138139
search_id = results[:search_metadata][:id]
139140
```
140141

141-
Now let's retrieve the previous search results from the archive.
142+
Now we can retrieve the previous search results from the archive (free)
142143

143144
```ruby
144145
require 'serpapi'

README.md.erb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ $ gem install serpapi
5050

5151
```ruby
5252
require 'serpapi'
53-
client = SerpApi::Client.new api_key: "serpapi_api_key"
54-
results = client.search q: "coffee", engine: "google"
53+
client = SerpApi::Client.new(api_key: "serpapi_api_key")
54+
results = client.search(q: "coffee", engine: "google")
5555
pp results
5656
```
5757

@@ -64,7 +64,7 @@ This example runs a search for "coffee" on Google. It then returns the results a
6464
require 'serpapi'
6565

6666
# serpapi client created with default parameters
67-
client = SerpApi::Client.new(api_key: "secret_key", engine: "google")
67+
client = SerpApi::Client.new(engine: 'google', api_key: 'secret_key')
6868

6969
# We recommend that you keep your keys safe.
7070
# At least, don't commit them in plain text.
@@ -103,7 +103,7 @@ results = client.search(params)
103103
raw_html = client.html(parameter)
104104
```
105105

106-
[Google search documentation](https://serpapi.com/search-api).
106+
[SerpApi documentation](https://serpapi.com/search-api).
107107
More hands on examples are available below.
108108

109109
#### Documentations
@@ -150,14 +150,15 @@ This API allows retrieving previous search results.
150150
To fetch earlier results from the search_id.
151151

152152
First, you need to run a search and save the search id.
153+
153154
```ruby
154155
require 'serpapi'
155-
client = SerpApi::Client.new(api_key: 'secret_api_key', engine: 'google')
156+
client = SerpApi::Client.new(engine: 'google', api_key: 'secret_api_key')
156157
results = client.search(q: "Coffee", location: "Portland")
157158
search_id = results[:search_metadata][:id]
158159
```
159160

160-
Now let's retrieve the previous search results from the archive.
161+
Now we can retrieve the previous search results from the archive (free)
161162

162163
```ruby
163164
require 'serpapi'

0 commit comments

Comments
 (0)