EridanSharp 1.0.2.5
dotnet add package EridanSharp --version 1.0.2.5
NuGet\Install-Package EridanSharp -Version 1.0.2.5
<PackageReference Include="EridanSharp" Version="1.0.2.5" />
<PackageVersion Include="EridanSharp" Version="1.0.2.5" />
<PackageReference Include="EridanSharp" />
paket add EridanSharp --version 1.0.2.5
#r "nuget: EridanSharp, 1.0.2.5"
#addin nuget:?package=EridanSharp&version=1.0.2.5
#tool nuget:?package=EridanSharp&version=1.0.2.5
Download |
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
- Microsoft.Office.Interop.Word (>= 15.0.4797.1004)
- Newtonsoft.Json (>= 13.0.1)
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 |