MailSlurp::MissedEmailControllerApi

Load the API package

use MailSlurp::Object::MissedEmailControllerApi;

All URIs are relative to https://api.mailslurp.com

MethodHTTP requestDescription
get_all_missed_emailsGET /missed-emailsGet all MissedEmails in paginated format
get_missed_emailGET /missed-emails/{MissedEmailId}Get MissedEmail

get_all_missed_emails

PageMissedEmailProjection get_all_missed_emails(page => $page, size => $size, sort => $sort)

Get all MissedEmails in paginated format

Example

use Data::Dumper;
use MailSlurp::MissedEmailControllerApi;
my $api_instance = MailSlurp::MissedEmailControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $page = 0; # int | Optional page  in inbox list pagination
my $size = 20; # int | Optional page size in inbox list pagination
my $sort = 'ASC'; # string | Optional createdAt sort direction ASC or DESC

eval { 
    my $result = $api_instance->get_all_missed_emails(page => $page, size => $size, sort => $sort);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MissedEmailControllerApi->get_all_missed_emails: $@n";
}

Parameters

NameTypeDescriptionNotes
pageintOptional page in inbox list pagination[optional] [default to 0]
sizeintOptional page size in inbox list pagination[optional] [default to 20]
sortstringOptional createdAt sort direction ASC or DESC[optional] [default to ‘ASC’]

Return type

PageMissedEmailProjection

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to ]

get_missed_email

MissedEmail get_missed_email(missed_email_id => $missed_email_id)

Get MissedEmail

Example

use Data::Dumper;
use MailSlurp::MissedEmailControllerApi;
my $api_instance = MailSlurp::MissedEmailControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $missed_email_id = null; # string | MissedEmailId

eval { 
    my $result = $api_instance->get_missed_email(missed_email_id => $missed_email_id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MissedEmailControllerApi->get_missed_email: $@n";
}

Parameters

NameTypeDescriptionNotes
missed_email_idstringMissedEmailId

Return type

MissedEmail

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to ]