Class: MailchimpTransactional::TagsApi
- Inherits:
-
Object
- Object
- MailchimpTransactional::TagsApi
- Defined in:
- lib/MailchimpTransactional/api/tags_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#all_time_series(body = {}) ⇒ Array<(Array<InlineResponse20031>, Fixnum, Hash)>
View all tags history Return the recent history (hourly stats for the last 30 days) for all tags.
-
#delete(body = {}) ⇒ Array<(InlineResponse20058, Fixnum, Hash)>
Delete tag Deletes a tag permanently.
-
#info(body = {}) ⇒ Array<(InlineResponse20059, Fixnum, Hash)>
Get tag info Return more detailed information about a single tag, including aggregates of recent stats.
-
#initialize(api_client = ApiClient.default) ⇒ TagsApi
constructor
A new instance of TagsApi.
-
#list(body = {}) ⇒ Array<(Array<InlineResponse20057>, Fixnum, Hash)>
List tags Return all of the user-defined tag information.
-
#time_series(body = {}) ⇒ Array<(Array<InlineResponse20031>, Fixnum, Hash)>
View tag history Return the recent history (hourly stats for the last 30 days) for a tag.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/MailchimpTransactional/api/tags_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#all_time_series(body = {}) ⇒ Array<(Array<InlineResponse20031>, Fixnum, Hash)>
View all tags history Return the recent history (hourly stats for the last 30 days) for all tags.
28 29 30 31 |
# File 'lib/MailchimpTransactional/api/tags_api.rb', line 28 def all_time_series(body = {}) data = @api_client.call_api(:POST, '/tags/all-time-series', body) data end |
#delete(body = {}) ⇒ Array<(InlineResponse20058, Fixnum, Hash)>
Delete tag Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this operation, so use it carefully.
38 39 40 41 |
# File 'lib/MailchimpTransactional/api/tags_api.rb', line 38 def delete(body = {}) data = @api_client.call_api(:POST, '/tags/delete', body) data end |
#info(body = {}) ⇒ Array<(InlineResponse20059, Fixnum, Hash)>
Get tag info Return more detailed information about a single tag, including aggregates of recent stats.
48 49 50 51 |
# File 'lib/MailchimpTransactional/api/tags_api.rb', line 48 def info(body = {}) data = @api_client.call_api(:POST, '/tags/info', body) data end |
#list(body = {}) ⇒ Array<(Array<InlineResponse20057>, Fixnum, Hash)>
List tags Return all of the user-defined tag information.
58 59 60 61 |
# File 'lib/MailchimpTransactional/api/tags_api.rb', line 58 def list(body = {}) data = @api_client.call_api(:POST, '/tags/list', body) data end |
#time_series(body = {}) ⇒ Array<(Array<InlineResponse20031>, Fixnum, Hash)>
View tag history Return the recent history (hourly stats for the last 30 days) for a tag.
68 69 70 71 |
# File 'lib/MailchimpTransactional/api/tags_api.rb', line 68 def time_series(body = {}) data = @api_client.call_api(:POST, '/tags/time-series', body) data end |