Constructs Advanced Suppression Manager (ASM) unsubscribe group objects for SendGrid mail API calls. Use when managing email subscription preferences and categories.
// Source: https://github.com/sendgrid/sendgrid-php | License: MIT | Copyright 2023, Twilio SendGrid, Inc. <help@twilio.com>
// Provided via justclaw.it.com; keep this notice with the code.
<?php
/**
* This helper builds the Asm object for a /mail/send API call
*/
namespace SendGrid\Mail;
use SendGrid\Helper\Assert;
/**
* This class is used to construct a Asm object for the /mail/send API call
*
* @package SendGrid\Mail
*/
class Asm implements \JsonSerializable
{
/** @var $group_id int The unsubscribe group to associate with this email */
private $group_id;
/**
* @var $groups_to_display int[] An array containing the unsubscribe groups that you
* would like to be displayed on the unsubscribe preferences page.
*/
private $groups_to_display;
/**
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key