unickq / 10MinuteMail

C# API for 10MinuteMail.net

Home Page:https://10minutemail.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

10MinuteMail.net API client

Build status Test status NuGet

Code example:

public class Example
{
    public void Sync()
    {
        var t = new TenMinuteMailNet();
        Console.WriteLine(t.EmailAddress); //Your current email address
        Console.WriteLine(t.LastEmail); //Last email in inbox
        t.GenerateNewEmailAddress(); //Generate new inbox
        Console.WriteLine(t.SecondsLeft); //Seconds left to use email
        t.Reset10Minutes(); //Reset email - add 10 minutes
        t.Reset100Minutes(); //Reset email - add 100 minutes
    }

    public async Task Async()
    {
        var t = new TenMinuteMailNet();
        Console.WriteLine(await t.GetEmailAddressAsync()); //Your current email address
        Console.WriteLine(await t.GetLastEmailAsync()); //Last email in inbox
        await t.GenerateNewEmailAddressAsync(); //Generate new inbox
        Console.WriteLine(await t.GetSecondsLeftAsync()); //Seconds left to use email
        await t.Reset10MinutesAsync(); //Reset email - add 10 minutes
        await t.Reset100MinutesAsync(); //Reset email - add 100 minutes
    }
}

About

C# API for 10MinuteMail.net

https://10minutemail.net

License:MIT License


Languages

Language:C# 100.0%