gSearch: Nehme API-Keys von Redis

This commit is contained in:
Andreas Bielawski 2016-06-11 14:52:06 +02:00
parent a4d7c40ad9
commit b35163a4aa

View File

@ -18,8 +18,8 @@ end
function gSearch:googlethat(query, config)
local BASE_URL = 'https://www.googleapis.com/customsearch/v1'
local apikey = config.google_api_key
local cseid = config.google_cse_key
local apikey = cred_data.google_apikey
local cseid = cred_data.google_cse_id
local number = 5 -- Set number of results
local api = BASE_URL.."/?key="..apikey.."&cx="..cseid.."&gl=de&num="..number.."&safe=medium&fields=searchInformation%28formattedSearchTime,formattedTotalResults%29,items%28title,link,displayLink%29&"