| Build | NuGet |
|---|---|
NuGet install:
dotnet add package smms Create a Smms object and set the api token
using Sm.ms
var smms = new Smms("xxx");And you can generate the api token form https://sm.ms/home/apitoken
And then you can upload the image and receive the result string
var file = new FileInfo(@"F:\lindexi\logo.png");
Console.WriteLine(await smms.UploadImage(file.OpenRead(), file.Name));