diff --git a/lib/dingtalk/api/sns.rb b/lib/dingtalk/api/sns.rb new file mode 100644 index 0000000..b537dad --- /dev/null +++ b/lib/dingtalk/api/sns.rb @@ -0,0 +1,10 @@ +module Dingtalk + module Api + class Sns + def initialize + @app_id = Dingtalk.sns_app_id + @app_secret = Dingtalk.sns_app_secret + end + end + end +end diff --git a/lib/dingtalk/config.rb b/lib/dingtalk/config.rb index b7d8c7f..6f90d3f 100644 --- a/lib/dingtalk/config.rb +++ b/lib/dingtalk/config.rb @@ -26,9 +26,17 @@ module Dingtalk def suite_token @suite_token ||= config.suite_token end + + def sns_app_id + @sns_app_id ||= config.sns_app_id + end + + def sns_app_secret + @sns_app_secret ||= config.sns_app_secret + end end class Config - attr_accessor :redis, :redis_options, :suite_key, :suite_secret, :suite_aes_key, :suite_token + attr_accessor :redis, :redis_options, :suite_key, :suite_secret, :suite_aes_key, :suite_token, :sns_app_id, :sns_app_secret end end -- libgit2 0.21.0