- converted save and setStatus method of Newsletters endpoint - updated pause/resume mixin for notification & welcome listings - use 'newsletter_id' instead of 'id' in SendingQueue endpoint (less confusing) - added NOT_FOUND constant to APIError - fixed unit test for Newsletters endpoint save and added test for setStatus
16 lines
295 B
PHP
16 lines
295 B
PHP
<?php
|
|
namespace MailPoet\API;
|
|
|
|
if(!defined('ABSPATH')) exit;
|
|
|
|
final class Error {
|
|
const UNKNOWN = 'unknown';
|
|
const BAD_REQUEST = 'bad_request';
|
|
const UNAUTHORIZED = 'unauthorized';
|
|
const FORBIDDEN = 'forbidden';
|
|
const NOT_FOUND = 'not_found';
|
|
|
|
private function __construct() {
|
|
|
|
}
|
|
} |