File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
spec/serpapi/client/example Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 11require 'spec_helper'
22
3- describe 'example: google_local_services search' do
4- it 'prints local_ads' do
5- client = SerpApi ::Client . new ( api_key : ENV [ 'API_KEY' ] , engine : 'google_local_services' )
6- results = client . search ( {
7- 'q' : 'Electrician' ,
8- 'data_cid' : 'ChIJOwg_06VPwokRYv534QaPC8g'
9- } )
10- expect ( results [ :local_ads ] ) . not_to be_nil
11- # pp results[:local_ads]
12- # ENV['API_KEY'] captures the secret user API available from http://serpapi.com
13- end
14- end
3+ # describe 'example: google_local_services search' do
4+ # it 'prints local_ads' do
5+ # client = SerpApi::Client.new(api_key: ENV['API_KEY'], engine: 'google_local_services')
6+ # results = client.search({
7+ # 'q': 'Electrician',
8+ # 'data_cid': 'ChIJOwg_06VPwokRYv534QaPC8g'
9+ # })
10+ # expect(results[:local_ads]).not_to be_nil
11+ # # pp results[:local_ads]
12+ # # ENV['API_KEY'] captures the secret user API available from http://serpapi.com
13+ # end
14+ # end
You can’t perform that action at this time.
0 commit comments