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.
<PackageVersion Include="EridanSharp" Version="1.0.2.5" />
                    
Directory.Packages.props
<PackageReference Include="EridanSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#addin nuget:?package=EridanSharp&version=1.0.2.5
                    
Install EridanSharp as a Cake Addin
#tool nuget:?package=EridanSharp&version=1.0.2.5
                    
Install EridanSharp as a Cake Tool

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 487 7/21/2022
1.0.2.4 455 7/11/2022
1.0.2.3 428 7/11/2022
1.0.2.2 432 7/11/2022
1.0.2.1 439 7/10/2022
1.0.2 438 7/9/2022
1.0.1.9 439 7/9/2022
1.0.1.8 446 7/9/2022
1.0.1.7 418 7/9/2022
1.0.1.6 411 7/8/2022
1.0.1.5 407 7/8/2022
1.0.1.4 406 7/8/2022
1.0.1.3 415 7/6/2022
1.0.1.2 447 7/6/2022
1.0.1.1 431 7/5/2022
1.0.1 439 7/5/2022