Class: SendGridWebApi::SubUserModules::App
Constant Summary
collapse
- APP_URL =
"apiv2/customer.apps.json"
Instance Attribute Summary
Attributes inherited from Base
#api_key
Instance Method Summary
collapse
#base_url
#apps, #auth, #bounces, #event_notification, #iframe, #invalid_emails, #ip_management, #limits, #management, #monitor_records, #parse_email, #spam, #stats, #unsubscribes, #white_label
Methods inherited from Base
#builder_options, #initialize, #make_request_url, #query_api, #query_delete_api, #query_patch_api, #query_post_api, #query_post_json_api, #session, #to_query
Instance Method Details
#activate(options = {}) ⇒ Object
10
11
12
13
|
# File 'lib/sub_user/apps.rb', line 10
def activate options = {}
options.merge!({:task => "activate"}) unless options[:task]
query_api(APP_URL, options)
end
|
#current_settings(options = {}) ⇒ Object
20
21
22
23
|
# File 'lib/sub_user/apps.rb', line 20
def current_settings options = {}
options.merge!({:task => "getsettings"}) unless options[:task]
query_api(APP_URL, options)
end
|
#customize(options = {}) ⇒ Object
25
26
27
28
|
# File 'lib/sub_user/apps.rb', line 25
def customize options = {}
options.merge!({:task => "setup"}) unless options[:task]
query_post_api(APP_URL, options)
end
|
#deactivate(options = {}) ⇒ Object
15
16
17
18
|
# File 'lib/sub_user/apps.rb', line 15
def deactivate options = {}
options.merge!({:task => "deactivate"}) unless options[:task]
query_api(APP_URL, options)
end
|
#list(options = {}) ⇒ Object
5
6
7
8
|
# File 'lib/sub_user/apps.rb', line 5
def list options = {}
options.merge!({:task => "getavailable"}) unless options[:task]
query_api(APP_URL, options)
end
|