Class: MailchimpTransactional::UsersApi
- Inherits:
-
Object
- Object
- MailchimpTransactional::UsersApi
- Defined in:
- lib/MailchimpTransactional/api/users_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#info(body = {}) ⇒ Array<(InlineResponse20072, Fixnum, Hash)>
Get user info Return the information about the API-connected user.
-
#initialize(api_client = ApiClient.default) ⇒ UsersApi
constructor
A new instance of UsersApi.
-
#ping(body = {}) ⇒ Array<(String, Fixnum, Hash)>
Ping Validate an API key and respond to a ping.
-
#ping2(body = {}) ⇒ Array<(InlineResponse20073, Fixnum, Hash)>
Ping 2 Validate an API key and respond to a ping (JSON parser version).
-
#senders(body = {}) ⇒ Array<(Array<InlineResponse20043>, Fixnum, Hash)>
List account senders Return the senders that have tried to use this account, both verified and unverified.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/MailchimpTransactional/api/users_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#info(body = {}) ⇒ Array<(InlineResponse20072, Fixnum, Hash)>
Get user info Return the information about the API-connected user.
28 29 30 31 |
# File 'lib/MailchimpTransactional/api/users_api.rb', line 28 def info(body = {}) data = @api_client.call_api(:POST, '/users/info', body) data end |
#ping(body = {}) ⇒ Array<(String, Fixnum, Hash)>
Ping Validate an API key and respond to a ping.
38 39 40 41 |
# File 'lib/MailchimpTransactional/api/users_api.rb', line 38 def ping(body = {}) data = @api_client.call_api(:POST, '/users/ping', body) data end |
#ping2(body = {}) ⇒ Array<(InlineResponse20073, Fixnum, Hash)>
Ping 2 Validate an API key and respond to a ping (JSON parser version).
48 49 50 51 |
# File 'lib/MailchimpTransactional/api/users_api.rb', line 48 def ping2(body = {}) data = @api_client.call_api(:POST, '/users/ping2', body) data end |
#senders(body = {}) ⇒ Array<(Array<InlineResponse20043>, Fixnum, Hash)>
List account senders Return the senders that have tried to use this account, both verified and unverified.
58 59 60 61 |
# File 'lib/MailchimpTransactional/api/users_api.rb', line 58 def senders(body = {}) data = @api_client.call_api(:POST, '/users/senders', body) data end |