Class: SendGridWebApi::Modules::Profile
Instance Attribute Summary
Attributes inherited from Base
#api_key
Instance Method Summary
collapse
Methods inherited from Client
#base_url
#apikey, #blocks, #bounces, #event_notification, #invalid_emails, #mail, #parse_email, #profile, #spam, #stats, #sub_user, #unsubscribes
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
#get(options = {}) ⇒ Object
3
4
5
6
|
# File 'lib/web_api/profile.rb', line 3
def get options = {}
profile_get_url = "profile.get.json"
query_api(profile_get_url, options)
end
|
#set(options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/web_api/profile.rb', line 8
def set options = {}
profile_set_url = "profile.set.json"
query_api(profile_set_url, options)
end
|
#set_email(options = {}) ⇒ Object
23
24
25
26
|
# File 'lib/web_api/profile.rb', line 23
def set_email options = {}
profile_set_email_url = "profile.setEmail.json"
query_api(profile_set_email_url, options)
end
|
#set_password(options = {}) ⇒ Object
13
14
15
16
|
# File 'lib/web_api/profile.rb', line 13
def set_password options = {}
profile_set_password_url = "password.set.json"
query_api(profile_set_password_url, options)
end
|
#set_username(options = {}) ⇒ Object
18
19
20
21
|
# File 'lib/web_api/profile.rb', line 18
def set_username options = {}
profile_set_username_url = "profile.setUsername.json"
query_api(profile_set_username_url, options)
end
|