Adding Contact to InfusionSoft DB Fails using Ruby Gem -
I am using Infusionsoft Ruby API wrapper. I put
gem 'Infusionoft'
in my Gmail.
I added the environment variable to your API key and URL are loaded into an initializer:
Infusionsoft.configure do | Config | Config.api_url = ENV [ 'INFUSIONSOFT_URL'] # example infused.infusionsoft.com config.api_key = ENV [ 'INFUSIONSOFT_API_KEY'] config.api_logger = Lkdharakni ( "# {Rails.root} /log/infusionsoft_api.log") # optional Lojr file end
but when I tested Add your rail then I get the error:
socket error: getaddrinfo : Nodnames and neither pronouns have been provided, or / user / jasts /. Arbiaan / Versions / 2.1 / lib / ruby / 2.1.0 / net / http.rb: 879: In the 'Start'
is not known Does anyone have a fix for it is aware of?
/ root / config / initializers / Infusionsoft.rb
Infusionsoft .configure do Config | Config.api_url = 'xyz.infusionsoft.com' config.api_key = '6rytrt7c4035aeeee7895d2c45fe4595' config.api_logger = Lkdharakni ( "# {Rails.root} /log/infusionsoft_api.log") # Optional logger file end
Comments
Post a Comment