NAME

WebService::SendGrid::Newsletter::Categories

VERSION

version 0.02

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 the new category.

add

Assigns a category to an existing newsletter.

Parameters:

  • category

    (Required) The name of the category to be added to the newsletter.

  • name

    (Required) The name of the newsletter to add the category to.

list

Lists all categories or check if a specific category exists.

Parameters:

  • category

    The name of the category to check.

remove

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

Parameters:

  • name

    (Required) The name of the newsletter to remove categories from.

  • category

    The name of the category to be removed. If not 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.