fuc/vendor/mailchimp/transactional/lib/Api/RejectsApi.php
2025-02-23 13:30:57 +08:00

79 lines
2.4 KiB
PHP
Executable File

<?php
/**
* RejectsApi
* PHP version 5
*
* @category Class
* @package MailchimpTransactional
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Mailchimp Transactional API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.59
* Contact: apihelp@mailchimp.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.12
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace MailchimpTransactional\Api;
use MailchimpTransactional\ApiException;
use MailchimpTransactional\Configuration;
use MailchimpTransactional\HeaderSelector;
use MailchimpTransactional\ObjectSerializer;
/**
* RejectsApi Class Doc Comment
*
* @category Class
* @package MailchimpTransactional
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class RejectsApi
{
protected $config;
public function __construct(Configuration $config = null)
{
$this->config = $config ?: new Configuration();
}
/**
* Add email to denylist
* Adds an email to your email rejection denylist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your denylist. Attempting to denylist an address that has been added to the allowlist will have no effect.
*/
public function add($body = [])
{
return $this->config->post('/rejects/add', $body);
}
/**
* Delete email from denylist
* Deletes an email rejection. There is no limit to how many rejections you can remove from your denylist, but keep in mind that each deletion has an affect on your reputation.
*/
public function delete($body = [])
{
return $this->config->post('/rejects/delete', $body);
}
/**
* List denylisted emails
* Retrieves your email rejection denylist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them.
*/
public function list($body = [])
{
return $this->config->post('/rejects/list', $body);
}
}