-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
What are your thoughts on changing this:
find = InfoconnectWrapper::FindCompany.new
key = '' #your api key..."
find.init(key)
company = find.find_by_name('Infogroup', 'Papillion', 'NE', 'Enhanced')To this:
# config/initializers/infoconnect.rb
InfoconnectWrapper.api_key = "YOUR_API_KEY"# inside your app
company = InfoconnectWrapper::FindCompany.new.find_by_name("Infogroup", "Papillion", "NE", "Enhanced")Unless you've got the need to change the key each request, I'd propose setting it up this way. Happy to do a PR for it as well.
Metadata
Metadata
Assignees
Labels
No labels