EridanSharp 1.0.2.5

dotnet add package EridanSharp --version 1.0.2.5
NuGet\Install-Package EridanSharp -Version 1.0.2.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EridanSharp" Version="1.0.2.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EridanSharp --version 1.0.2.5
#r "nuget: EridanSharp, 1.0.2.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EridanSharp as a Cake Addin
#addin nuget:?package=EridanSharp&version=1.0.2.5

// Install EridanSharp as a Cake Tool
#tool nuget:?package=EridanSharp&version=1.0.2.5

EridanSharpTitleLogo

Download alternate text is missing from this package README image

Firstly EridanSharp can help with authenticate in Google service.

Documentation

Support formats: aac, abw, arc, avi, azw, bin, bmp, bz, bz2, csh, css, csv, doc, docx, eot, epub, gz, gif, html, ico, ics, jar, jpeg, jpg, js, json, jsonld, mjs, mp3, mpeg, mpkg, odp, ods, odt, oga, ogv, ogx, opus, otf, png, pdf, php, ppt, pptx, rar, rtf, sh, svg, swf, tar, tif, tiff, ts, ttf, txt, vsd, wav, weba, webm, webp, woff, woff2, xhtml, xls, xlsx, xml, xul, zip, 3gp, 7z.

If you did not find the required file format, then it will be interpreted as base binary data type.

Examples

Send email via gmail (OAuth2) (Use the latest version of NuGet Package)

static int Main(string[] args)
{
    const string clientId = "YOUR_CLIENT_ID";
    const string clientSecret = "YOUR_CLIENT_SECRET";
    const string pathSuccessPage = "success_page.html";
    const string pathUnsuccessPage = "unsuccess_page.html";
    string pathToken = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\\data\\token.json";

    Gmail gmail = new Gmail(clientId, clientSecret, pathSuccessPage, pathUnsuccessPage, pathToken);

    bool existToken = gmail.CheckExistToken();

    if (!existToken)
    {
        gmail.Authentication();
    }

    Console.WriteLine("Email: " + gmail.GetProfile().EmailAddress);
    Console.WriteLine("Message total: " + gmail.GetProfile().MessagesTotal);
    Console.WriteLine("Threads total: " + gmail.GetProfile().ThreadsTotal);
    Console.WriteLine("History id: " + gmail.GetProfile().HistoryId);

    MimeMessage message = new MimeMessage();
    message.FromName = "FROM_NAME";
    message.FromEmail = "FROM_EMAIL";
    message.ToName = "TO_NAME";
    message.ToEmail = "TO_EMAIL";
    message.Subject = "SUBJECT";
    message.BodyText = "BODY_TEXT";
    message.AddAttachment("file.docx");

    gmail.Send(message);

    Console.ReadLine();
    return 0;
}

Support

EridanSharp is an open-source project with a single mainteiner. If you want to solve any problem related to EridanSharp, you will have to do it yourself. Fork the repository and submit a pull request.

License: MIT

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2.5 426 7/21/2022
1.0.2.4 401 7/11/2022
1.0.2.3 380 7/11/2022
1.0.2.2 380 7/11/2022
1.0.2.1 386 7/10/2022
1.0.2 387 7/9/2022
1.0.1.9 389 7/9/2022
1.0.1.8 395 7/9/2022
1.0.1.7 372 7/9/2022
1.0.1.6 362 7/8/2022
1.0.1.5 359 7/8/2022
1.0.1.4 359 7/8/2022
1.0.1.3 366 7/6/2022
1.0.1.2 399 7/6/2022
1.0.1.1 380 7/5/2022
1.0.1 389 7/5/2022