Files
Dalan/config/initializers/kavenegar-ruby_initializer.rb
2026-08-13 19:56:46 +03:30

19 lines
863 B
Ruby

KaveRestApi.configure do |config|
# To completely ignore debug mode events(No Errors) uncomment this line *optional
# config.debugmode = false #by default it's true
# It is recommended that you pull your API keys from environment settings. *required
config.api_key = ENV.fetch("KAVENEGAR_API_KEY", 'changeme')
# Default response format is json (you can use xml too). *optional
config.format = 'json'
#If you don't set your sender number in your request, this is the default number used instead *required
config.default_sender = ENV.fetch("KAVENEGAR_SENDER", 'changeme')
# You can remove problematic emojis (like android emojis) and replace with standard emojis listed here:(https://www.webpagefx.com/tools/emoji-cheat-sheet/)
# config.strip_emoji = 'false' # can include false , true and matcher
end