NAME

WebService::SendGrid::Newsletter::Categories

VERSION

version 0.01

METHODS

new

Creates a new instance of WebService::SendGrid::Newsletter::Categories.

my $lists = WebService::SendGrid::Newsletter::Categories->new(sgn => $sgn);

Parameters:

  • sgn

    An instance of WebService::SendGrid::Newsletter.

create

Creates a new category.

Parameters:

  • category

    (Required) The name of new category.

add

Assigns a category to an existing newsletter.

Parameters:

  • category

    (Required) The existing category to be added to newsletter.

  • name

    (Required) The existing newsletter to which the categories will be added to.

list

Lists all categories or check whether the specific category exists.

Parameters:

  • category

    (Required) The existing category to check.

remove

Removes a specific category, or all categories from a newsletter.

Parameters:

  • name

    (Required) The existing that will have category(ies) unassigned from it.

  • category

    (Required) The specific category to be unassigned from the news letter. If the category is no specified all categories will be removed.

AUTHOR

Michal Wojciechowski <odyniec@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Michal Wojciechowski.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.